Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 590BC18DD6 for ; Tue, 4 Aug 2015 09:51:47 +0000 (UTC) Received: (qmail 27561 invoked by uid 500); 4 Aug 2015 09:51:41 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 27503 invoked by uid 500); 4 Aug 2015 09:51:41 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 25858 invoked by uid 99); 4 Aug 2015 09:51:39 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2015 09:51:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A419EE35D0; Tue, 4 Aug 2015 09:51:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cdutz@apache.org To: commits@flex.apache.org Date: Tue, 04 Aug 2015 09:52:08 -0000 Message-Id: <8208cb57eb5e4d77b7796dd4ef0503b7@git.apache.org> In-Reply-To: <28a952e270454f25ab877306f062e0a4@git.apache.org> References: <28a952e270454f25ab877306f062e0a4@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [30/51] [partial] flex-blazeds git commit: - Moved old stuff to an "attic" directory - Changed the directory structure to comply to a default maven directory structure http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml b/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml deleted file mode 100755 index fb5da7d..0000000 --- a/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/catalog.jsp ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/catalog.jsp b/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/catalog.jsp deleted file mode 100755 index eb86d2b..0000000 --- a/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/catalog.jsp +++ /dev/null @@ -1,42 +0,0 @@ - -<%@page import="flex.samples.product.ProductService, - flex.samples.product.Product, - java.util.List"%> - - -<% - ProductService srv = new ProductService(); - List list = null; - list = srv.getProducts(); - Product product; - for (int i=0; i - - <%= product.getName() %> - <%= product.getDescription() %> - <%= product.getPrice() %> - <%= product.getImage() %> - <%= product.getCategory() %> - <%= product.getQtyInStock() %> - -<% - } -%> - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/main.mxml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/main.mxml b/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/main.mxml deleted file mode 100755 index 609130b..0000000 --- a/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/main.mxml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml b/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml deleted file mode 100755 index 198f89f..0000000 --- a/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/src/main.mxml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/src/main.mxml b/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/src/main.mxml deleted file mode 100755 index 43d8fb6..0000000 --- a/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/src/main.mxml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml b/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml deleted file mode 100755 index 540070c..0000000 --- a/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/testdrive-update/src/Product.as ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/testdrive-update/src/Product.as b/apps/samples/WEB-INF/flex-src/testdrive-update/src/Product.as deleted file mode 100755 index abd704b..0000000 --- a/apps/samples/WEB-INF/flex-src/testdrive-update/src/Product.as +++ /dev/null @@ -1,44 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//////////////////////////////////////////////////////////////////////////////// -package -{ - [Bindable] - [RemoteClass(alias="flex.samples.product.Product")] - public class Product - { - public function Product() - { - } - - public var productId:int; - - public var name:String; - - public var description:String; - - public var image:String; - - public var category:String; - - public var price:Number; - - public var qtyInStock:int; - - } -} http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/testdrive-update/src/ProductForm.mxml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/testdrive-update/src/ProductForm.mxml b/apps/samples/WEB-INF/flex-src/testdrive-update/src/ProductForm.mxml deleted file mode 100755 index 911e2e8..0000000 --- a/apps/samples/WEB-INF/flex-src/testdrive-update/src/ProductForm.mxml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/testdrive-update/src/main.mxml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/testdrive-update/src/main.mxml b/apps/samples/WEB-INF/flex-src/testdrive-update/src/main.mxml deleted file mode 100755 index 5096478..0000000 --- a/apps/samples/WEB-INF/flex-src/testdrive-update/src/main.mxml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/testdrive-webservice/build.xml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/testdrive-webservice/build.xml b/apps/samples/WEB-INF/flex-src/testdrive-webservice/build.xml deleted file mode 100755 index 8f08dfa..0000000 --- a/apps/samples/WEB-INF/flex-src/testdrive-webservice/build.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/testdrive-webservice/src/main.mxml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/testdrive-webservice/src/main.mxml b/apps/samples/WEB-INF/flex-src/testdrive-webservice/src/main.mxml deleted file mode 100755 index 4208a96..0000000 --- a/apps/samples/WEB-INF/flex-src/testdrive-webservice/src/main.mxml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/traderdesktop/build.xml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/traderdesktop/build.xml b/apps/samples/WEB-INF/flex-src/traderdesktop/build.xml deleted file mode 100755 index b27bf96..0000000 --- a/apps/samples/WEB-INF/flex-src/traderdesktop/build.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/traderdesktop/src/BackgroundColorRenderer.as ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/traderdesktop/src/BackgroundColorRenderer.as b/apps/samples/WEB-INF/flex-src/traderdesktop/src/BackgroundColorRenderer.as deleted file mode 100755 index d6245f7..0000000 --- a/apps/samples/WEB-INF/flex-src/traderdesktop/src/BackgroundColorRenderer.as +++ /dev/null @@ -1,55 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//////////////////////////////////////////////////////////////////////////////// -package { - - import mx.controls.Label; - import flash.display.Graphics; - - public class BackgroundColorRenderer extends Label { - - public static var symbol:String; - - override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void - { - super.updateDisplayList(unscaledWidth, unscaledHeight); - - var g:Graphics = graphics; - - g.clear(); - - if (data && data.date && data.symbol == symbol) - { - if( data.change && data.change >= 0 ) - { - g.beginFill(0x009900, 0.5); - g.drawRect(0, 0, unscaledWidth, unscaledHeight); - g.endFill(); - } - else - { - g.beginFill(0xFF0000, 0.5); - g.drawRect(0, 0, unscaledWidth, unscaledHeight); - g.endFill(); - } - } - - } - } - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/traderdesktop/src/ColorRenderer.as ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/traderdesktop/src/ColorRenderer.as b/apps/samples/WEB-INF/flex-src/traderdesktop/src/ColorRenderer.as deleted file mode 100755 index 93a6553..0000000 --- a/apps/samples/WEB-INF/flex-src/traderdesktop/src/ColorRenderer.as +++ /dev/null @@ -1,40 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//////////////////////////////////////////////////////////////////////////////// -package { - - import mx.controls.Label; - import mx.controls.dataGridClasses.*; - - public class ColorRenderer extends Label { - - override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void - { - super.updateDisplayList(unscaledWidth, unscaledHeight); - if (data && listData && data[DataGridListData(listData).dataField] < 0) - { - setStyle("color", 0xFF0000); - } - else - { - setStyle("color", 0x009900); - } - } - } - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/traderdesktop/src/main.css ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/traderdesktop/src/main.css b/apps/samples/WEB-INF/flex-src/traderdesktop/src/main.css deleted file mode 100755 index fe9b240..0000000 --- a/apps/samples/WEB-INF/flex-src/traderdesktop/src/main.css +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@namespace mx "library://ns.adobe.com/flex/mx"; - -mx|Application { - padding-top: 16; - padding-bottom: 16; - padding-left: 16; - padding-right: 16; - vertical-gap: 4; -} -mx|Panel -{ - borderColor: #006699; - borderAlpha: 0.6; -} http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/traderdesktop/src/samples/portfolio/Stock.as ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/traderdesktop/src/samples/portfolio/Stock.as b/apps/samples/WEB-INF/flex-src/traderdesktop/src/samples/portfolio/Stock.as deleted file mode 100755 index 6950d95..0000000 --- a/apps/samples/WEB-INF/flex-src/traderdesktop/src/samples/portfolio/Stock.as +++ /dev/null @@ -1,35 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Licensed to the Apache Software Foundation (ASF) under one or more -// contributor license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright ownership. -// The ASF licenses this file to You under the Apache License, Version 2.0 -// (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//////////////////////////////////////////////////////////////////////////////// -package samples.portfolio -{ - [RemoteClass(alias="flex.samples.marketdata.Stock")] - [Bindable] - public class Stock - { - public var symbol:String; - public var name:String; - public var low:Number; - public var high:Number; - public var open:Number; - public var last:Number; - public var change:Number = 0; - public var date:Date; - } - -} http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/traderdesktop/src/startfeed.jsp ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/traderdesktop/src/startfeed.jsp b/apps/samples/WEB-INF/flex-src/traderdesktop/src/startfeed.jsp deleted file mode 100755 index 07547ab..0000000 --- a/apps/samples/WEB-INF/flex-src/traderdesktop/src/startfeed.jsp +++ /dev/null @@ -1,26 +0,0 @@ - -<%@page import="flex.samples.marketdata.Feed"%> -<% - try { - Feed feed = new Feed(); - feed.start(); - out.println("Feed Started"); - } catch (Exception e) { - out.println("A problem occured while starting the feed: "+e.getMessage()); - } -%> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/traderdesktop/src/stopfeed.jsp ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/traderdesktop/src/stopfeed.jsp b/apps/samples/WEB-INF/flex-src/traderdesktop/src/stopfeed.jsp deleted file mode 100755 index 300aaf8..0000000 --- a/apps/samples/WEB-INF/flex-src/traderdesktop/src/stopfeed.jsp +++ /dev/null @@ -1,26 +0,0 @@ - -<%@page import="flex.samples.marketdata.Feed"%> -<% - try { - Feed feed = new Feed(); - feed.stop(); - out.println("Feed Stopped"); - } catch (Exception e) { - out.println("A problem occured while stopping the feed: "+e.getMessage()); - } -%> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex-src/traderdesktop/src/traderdesktop.mxml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex-src/traderdesktop/src/traderdesktop.mxml b/apps/samples/WEB-INF/flex-src/traderdesktop/src/traderdesktop.mxml deleted file mode 100755 index b2a9b9c..0000000 --- a/apps/samples/WEB-INF/flex-src/traderdesktop/src/traderdesktop.mxml +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - - - = 0; - } - - private function messageHandler(event:MessageEvent):void - { - var changedStock:Stock = event.message.body as Stock; - var stock:Stock = stockMap[changedStock.symbol]; - - BackgroundColorRenderer.symbol = changedStock.symbol; - - if (stock) - { - stock.open = changedStock.open; - stock.change = changedStock.change; - stock.last = changedStock.last; - stock.high = changedStock.high; - stock.low = changedStock.low; - stock.date = changedStock.date; - } - } - - private function formatNumber(item:Object, column:DataGridColumn):String - { - return nf.format(item[column.dataField]); - } - - // Only used for the per-client-qos channels - private function setDelay():void - { - configSrv.setAttribute("market-data-delay", delay.text); - } - - - ]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex/messaging-config.xml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex/messaging-config.xml b/apps/samples/WEB-INF/flex/messaging-config.xml deleted file mode 100755 index 31422b0..0000000 --- a/apps/samples/WEB-INF/flex/messaging-config.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - true - .s - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex/proxy-config.xml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex/proxy-config.xml b/apps/samples/WEB-INF/flex/proxy-config.xml deleted file mode 100755 index 34324da..0000000 --- a/apps/samples/WEB-INF/flex/proxy-config.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - 100 - 2 - - - true - - - - - - - - - - - - - - - - - - - - /{context.root}/testdrive-httpservice/catalog.jsp - - - - - - http://feeds.adobe.com/webservices/mxna2.cfc?wsdl - http://feeds.adobe.com/webservices/mxna2.cfc - - - - - http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex/remoting-config.xml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex/remoting-config.xml b/apps/samples/WEB-INF/flex/remoting-config.xml deleted file mode 100755 index acee9e3..0000000 --- a/apps/samples/WEB-INF/flex/remoting-config.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - flex.samples.product.ProductService - - - - - - flex.samples.dcd.product.ProductService - - - - - - flex.samples.runtimeconfig.ChatRoomService - application - - - - - - flex.samples.qos.FlexClientConfigService - - - - http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/flex/services-config.xml ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/flex/services-config.xml b/apps/samples/WEB-INF/flex/services-config.xml deleted file mode 100755 index c8b7d15..0000000 --- a/apps/samples/WEB-INF/flex/services-config.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - Custom - - sampleusers - - - - - - - - - - - - - - - - - false - - - - - - - false - - - - - - - true - 4 - - - - - - - - - - - false - - - - - - - true - 500 - - - 5000 - - - - - - - - - - - - [BlazeDS] - false - false - true - false - - - Endpoint.* - Service.* - Configuration - - - - - - - true - 20 - {context.root}/WEB-INF/flex/services-config.xml - {context.root}/WEB-INF/flex/proxy-config.xml - {context.root}/WEB-INF/flex/remoting-config.xml - {context.root}/WEB-INF/flex/messaging-config.xml - {context.root}/WEB-INF/web.xml - - - - http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/src/flex/samples/ConnectionHelper.java ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/src/flex/samples/ConnectionHelper.java b/apps/samples/WEB-INF/src/flex/samples/ConnectionHelper.java deleted file mode 100755 index 67f2abc..0000000 --- a/apps/samples/WEB-INF/src/flex/samples/ConnectionHelper.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package flex.samples; - -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.SQLException; - -public class ConnectionHelper -{ - private String url; - private static ConnectionHelper instance; - - private ConnectionHelper() - { - try { - Class.forName("org.hsqldb.jdbcDriver"); - url = "jdbc:hsqldb:hsql://localhost:9002/flexdemodb"; - } catch (Exception e) { - e.printStackTrace(); - } - } - - public static Connection getConnection() throws SQLException { - if (instance == null) { - instance = new ConnectionHelper(); - } - try { - return DriverManager.getConnection(instance.url); - } catch (SQLException e) { - throw e; - } - } - - public static void close(Connection connection) - { - try { - if (connection != null) { - connection.close(); - } - } catch (SQLException e) { - e.printStackTrace(); - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/src/flex/samples/DAOException.java ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/src/flex/samples/DAOException.java b/apps/samples/WEB-INF/src/flex/samples/DAOException.java deleted file mode 100755 index 4a06b6b..0000000 --- a/apps/samples/WEB-INF/src/flex/samples/DAOException.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package flex.samples; - -public class DAOException extends RuntimeException -{ - static final long serialVersionUID = -1881205326938716446L; - - public DAOException(String message) - { - super(message); - } - - public DAOException(Throwable cause) - { - super(cause); - } - - public DAOException(String message, Throwable cause) - { - super(message, cause); - } - -} http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/src/flex/samples/DatabaseCheckService.java ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/src/flex/samples/DatabaseCheckService.java b/apps/samples/WEB-INF/src/flex/samples/DatabaseCheckService.java deleted file mode 100755 index 936ed85..0000000 --- a/apps/samples/WEB-INF/src/flex/samples/DatabaseCheckService.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package flex.samples; - -import java.sql.Connection; -import java.sql.SQLException; - -import flex.messaging.config.ConfigMap; -import flex.messaging.services.AbstractBootstrapService; - -public class DatabaseCheckService extends AbstractBootstrapService -{ - public void initialize(String id, ConfigMap properties) - { - Connection c = null; - try - { - // Check that the database is running... - c = ConnectionHelper.getConnection(); - // ... if yes return - return; - } - catch (SQLException e) - { - System.out.println("******************************************************************************"); - System.out.println("* *"); - System.out.println("* Unable to connect to the samples database. *"); - System.out.println("* You must start the samples database before you can run the samples. *"); - System.out.println("* To start the samples database: *"); - System.out.println("* 1. Open a command prompt and go to the {install-dir}/sampledb dir *"); - System.out.println("* 2. Run startdb.bat (Windows) or startdb.sh (Unix-based systems) *"); - System.out.println("* *"); - System.out.println("******************************************************************************"); - } - finally - { - ConnectionHelper.close(c); - } - - } - - public void start() - { - } - - - public void stop() - { - } - -} http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/src/flex/samples/crm/ConcurrencyException.java ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/src/flex/samples/crm/ConcurrencyException.java b/apps/samples/WEB-INF/src/flex/samples/crm/ConcurrencyException.java deleted file mode 100755 index cdfc2af..0000000 --- a/apps/samples/WEB-INF/src/flex/samples/crm/ConcurrencyException.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package flex.samples.crm; - -public class ConcurrencyException extends Exception -{ - private static final long serialVersionUID = -6405818907028247079L; - - public ConcurrencyException(String message) - { - super(message); - } - - public ConcurrencyException(Throwable cause) - { - super(cause); - } - - public ConcurrencyException(String message, Throwable cause) - { - super(message, cause); - } -} http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/src/flex/samples/crm/DAOException.java ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/src/flex/samples/crm/DAOException.java b/apps/samples/WEB-INF/src/flex/samples/crm/DAOException.java deleted file mode 100755 index a0a6f2d..0000000 --- a/apps/samples/WEB-INF/src/flex/samples/crm/DAOException.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package flex.samples.crm; - -public class DAOException extends RuntimeException -{ - private static final long serialVersionUID = -8852593974738250673L; - - public DAOException(String message) - { - super(message); - } - - public DAOException(Throwable cause) - { - super(cause); - } - - public DAOException(String message, Throwable cause) - { - super(message, cause); - } - -} http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/src/flex/samples/crm/company/Company.java ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/src/flex/samples/crm/company/Company.java b/apps/samples/WEB-INF/src/flex/samples/crm/company/Company.java deleted file mode 100755 index 5881851..0000000 --- a/apps/samples/WEB-INF/src/flex/samples/crm/company/Company.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package flex.samples.crm.company; - -public class Company -{ - private int companyId; - - private String name; - - private String address; - - private String city; - - private String zip; - - private String state; - - private String industry; - - public String getAddress() - { - return address; - } - - public void setAddress(String address) - { - this.address = address; - } - - public String getCity() - { - return city; - } - - public void setCity(String city) - { - this.city = city; - } - - public int getCompanyId() - { - return companyId; - } - - public void setCompanyId(int companyId) - { - this.companyId = companyId; - } - - public String getName() - { - return name; - } - - public void setName(String name) - { - this.name = name; - } - - public String getState() - { - return state; - } - - public void setState(String state) - { - this.state = state; - } - - public String getZip() - { - return zip; - } - - public void setZip(String zip) - { - this.zip = zip; - } - - public String getIndustry() - { - return this.industry; - } - - public void setIndustry(String industry) - { - this.industry = industry; - } - -} http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/apps/samples/WEB-INF/src/flex/samples/crm/company/CompanyDAO.java ---------------------------------------------------------------------- diff --git a/apps/samples/WEB-INF/src/flex/samples/crm/company/CompanyDAO.java b/apps/samples/WEB-INF/src/flex/samples/crm/company/CompanyDAO.java deleted file mode 100755 index 3126504..0000000 --- a/apps/samples/WEB-INF/src/flex/samples/crm/company/CompanyDAO.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package flex.samples.crm.company; - -import java.sql.Connection; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Statement; -import java.util.ArrayList; -import java.util.List; - -import flex.samples.ConnectionHelper; -import flex.samples.crm.ConcurrencyException; -import flex.samples.crm.DAOException; - -public class CompanyDAO -{ - public List findCompanies(String name, String industry) throws DAOException - { - List list = new ArrayList(); - Connection c = null; - try - { - String sql = "SELECT * FROM company"; - if (industry != null && industry != "All") - sql += " WHERE industry = ?"; - if (name != null) - { - if (industry == null) - sql += " WHERE company.name LIKE ?"; - else - sql += " AND company.name LIKE ?"; - } - sql += " ORDER BY company.name"; - - c = ConnectionHelper.getConnection(); - - PreparedStatement ps = c.prepareStatement(sql); - ps.setString(1, industry); - ps.setString(1, "%" + name + "%"); - ResultSet rs = ps.executeQuery(); - Company company; - while (rs.next()) - { - company = new Company(); - company.setCompanyId(rs.getInt("company_id")); - company.setName(rs.getString("name")); - company.setAddress(rs.getString("address")); - company.setCity(rs.getString("city")); - company.setZip(rs.getString("zip")); - company.setState(rs.getString("state")); - company.setIndustry(rs.getString("industry")); - list.add(company); - } - rs.close(); - ps.close(); - } - catch (SQLException e) - { - e.printStackTrace(); - throw new DAOException(e); - } - finally - { - ConnectionHelper.close(c); - } - return list; - } - - public Company getCompany(int companyId) throws DAOException - { - Company company = null; - Connection c = null; - try - { - c = ConnectionHelper.getConnection(); - PreparedStatement ps = c.prepareStatement("SELECT * FROM company WHERE company_id= ?"); - ps.setInt(1, companyId); - ResultSet rs = ps.executeQuery(); - if (rs.next()) - { - company = new Company(); - company.setCompanyId(rs.getInt("company_id")); - company.setName(rs.getString("name")); - company.setAddress(rs.getString("address")); - company.setCity(rs.getString("city")); - company.setZip(rs.getString("zip")); - company.setState(rs.getString("state")); - company.setIndustry(rs.getString("industry")); - } - rs.close(); - ps.close(); - } - catch (SQLException e) - { - e.printStackTrace(); - throw new DAOException(e); - } - finally - { - ConnectionHelper.close(c); - } - return company; - } - - public Company create(Company company) throws DAOException - { - Connection c = null; - PreparedStatement ps = null; - try - { - c = ConnectionHelper.getConnection(); - ps = c.prepareStatement("INSERT INTO company (name, address, city, zip, state, industry) VALUES (?, ?, ?, ?, ?, ?)"); - ps.setString(1, company.getName()); - ps.setString(2, company.getAddress()); - ps.setString(3, company.getCity()); - ps.setString(4, company.getZip()); - ps.setString(5, company.getState()); - ps.setString(6, company.getIndustry()); - ps.execute(); - ps.close(); - ps = null; - Statement s = c.createStatement(); - // HSQLDB Syntax to get the identity (company_id) of inserted row - ResultSet rs = s.executeQuery("CALL IDENTITY()"); - rs.next(); - - // Update the id in the returned object. This is important as this - // value must get returned to the client. - company.setCompanyId(rs.getInt(1)); - - } - catch (SQLException e) - { - e.printStackTrace(); - throw new DAOException(e); - } - finally - { - ConnectionHelper.close(c); - } - return company; - } - - public void update(Company newVersion, Company previousVersion, List changes) throws DAOException, ConcurrencyException - { - Connection c = null; - PreparedStatement ps = null; - try - { - c = ConnectionHelper.getConnection(); - ps = c.prepareStatement("UPDATE company SET name=?, address=?, city=?, zip=?, state=?, industry=? WHERE company_id=? AND name=? AND address=? AND city=? AND zip=? AND state=?" ); - ps.setString(1, newVersion.getName()); - ps.setString(2, newVersion.getAddress()); - ps.setString(3, newVersion.getCity()); - ps.setString(4, newVersion.getZip()); - ps.setString(5, newVersion.getState()); - ps.setString(6, newVersion.getIndustry()); - ps.setInt(7, newVersion.getCompanyId()); - ps.setString(8, previousVersion.getName()); - ps.setString(9, previousVersion.getAddress()); - ps.setString(10, previousVersion.getCity()); - ps.setString(11, previousVersion.getZip()); - ps.setString(12, previousVersion.getState()); - if (ps.executeUpdate() == 0) - { - throw new ConcurrencyException("Item not found"); - } - ps.close(); - ps = null; - } - catch (SQLException e) - { - e.printStackTrace(); - throw new DAOException(e); - } - finally - { - ConnectionHelper.close(c); - } - } - - public void delete(Company company) throws DAOException, ConcurrencyException - { - Connection c = null; - PreparedStatement ps = null; - try - { - c = ConnectionHelper.getConnection(); - - ps = c.prepareStatement("DELETE FROM company WHERE company_id=? AND name=? AND address=? AND city=? AND zip=? AND state=?"); - ps.setInt(1, company.getCompanyId()); - ps.setString(2, company.getName()); - ps.setString(3, company.getAddress()); - ps.setString(4, company.getCity()); - ps.setString(5, company.getZip()); - ps.setString(6, company.getState()); - if (ps.executeUpdate() == 0) - { - throw new ConcurrencyException("Item not found"); - } - } - catch (SQLException e) - { - e.printStackTrace(); - throw new DAOException(e); - } - finally - { - ConnectionHelper.close(c); - } - } -} \ No newline at end of file