Changeset 3368 for ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/BrowserService.as
- Timestamp:
- 08/13/13 11:42:09 (11 years ago)
- Location:
- ComponentRegistry/trunk/ComponentBrowserGui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui
- Property svn:ignore
-
old new 8 8 .flexConfig.xml 9 9 .metadata 10 11 libs 12 13 .FlexUnitSettings
-
- Property svn:ignore
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/BrowserService.as
r3131 r3368 1 1 package clarin.cmdi.componentregistry.services { 2 import c larin.cmdi.componentregistry.common.ItemDescription;2 import com.adobe.net.URI; 3 3 4 import com.adobe.net.URI;5 import mx.collections.ArrayCollection;6 import mx.rpc.events.ResultEvent;4 import mx.collections.ArrayCollection; 5 6 import clarin.cmdi.componentregistry.common.ItemDescription; 7 7 8 8 public class BrowserService extends ComponentRegistryService { … … 15 15 public var itemDescriptions:ArrayCollection; 16 16 17 // Not bindable needed for lookups over the whole collections of itemDescriptions 18 protected var userSpace:Boolean; 19 20 public function BrowserService(restUrl:String, userSpace:Boolean) { 21 super(restUrl); 17 public function BrowserService(successEvent:String, restUrl:URI, userSpace:Boolean) { 18 super(successEvent, restUrl); 22 19 this.userSpace = userSpace; 23 20 } 24 21 25 override protected function initServiceUrl(url:URI):void{22 override protected function dispatchRequest(url:URI):void { 26 23 if (userSpace) { 27 24 url.setQueryValue(Config.PARAM_USERSPACE, "true"); 28 25 } 26 super.dispatchRequest(url); 29 27 } 30 28 31 /**32 * Override in concrete subclasses33 */34 override protected function result(resultEvent:ResultEvent):void {35 }36 37 38 39 29 public function findDescription(id:String):ItemDescription { 40 30 for each (var item:ItemDescription in itemDescriptions) {
Note: See TracChangeset
for help on using the changeset viewer.