ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.icc.editors.managers 

ContentSearchManager  - AS3 Asset Composer

Packagecom.adobe.icc.editors.managers
Classpublic class ContentSearchManager
InheritanceContentSearchManager Inheritance EventDispatcher Inheritance Object

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

The ContentSearchManager lets you search for content in the system by name.

ContentSearchManager abstracts the query required to search for data modules by their name. This can be used for simple and frequent content searches. In case, a more complex search is required, the search APIs and the associated Query objects must be used instead.

Similar to flex's HTTPService, this class has a lastResult bindable property which can be conveniently used to display the result of the last search made on the UI.

Related API Elements



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  lastResult : ListCollectionView
The list of ModuleModel objects reflecting the result of the last search query executed.
ContentSearchManager
  lastSearchString : String
The last query string that was used to invoke search on ContentSearchManager.
ContentSearchManager
Public Methods
 MethodDefined By
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
EventDispatcher
 Inherited
Dispatches an event into the event flow.
EventDispatcher
  
Re-executes the last search in order to refresh the results.
ContentSearchManager
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
  
search(searchString:String):void
Searches the server for asset matching the passed name.
ContentSearchManager
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Events
 Event Summary Defined By
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active.EventDispatcher
  Dispatched when a search invoked on the ContentSearchManager completes successfully.ContentSearchManager
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive.EventDispatcher
  Dispatched when a search invoked on the ContentSearchManager fails.ContentSearchManager
Property Detail

lastResult

property
public var lastResult:ListCollectionView

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

The list of ModuleModel objects reflecting the result of the last search query executed. The list holds objects of type ModuleModel which is a super class representing the various modules in the system viz. Texts, Images, Lists and Conditions.

This property can be used as the source for data binding. When this property is modified, it dispatches the complete event.

lastSearchString

property 
lastSearchString:String

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

The last query string that was used to invoke search on ContentSearchManager.

This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.



Implementation
    public function get lastSearchString():String
    public function set lastSearchString(value:String):void
Method Detail

executeLastSearch

()method
public function executeLastSearch():void

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Re-executes the last search in order to refresh the results.

search

()method 
public function search(searchString:String):void

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Searches the server for asset matching the passed name. The type of asset searched for includes Texts, Images, Lists and Conditions.

By default, the search mode is "like", wherein all assets with names containing the search string are returned. An "exact" search can however be invoked by including the search param within quotes e.g. "myasset01"

Parameters

searchString:String — The name (or part of it) of the asset that needs to be searched. Could be null or empty which amounts to retrieving everything as search result.
Event Detail

complete

Event
Event Object Type: flash.events.Event
property Event.type = flash.events.Event

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Dispatched when a search invoked on the ContentSearchManager completes successfully.

This event is dispatched in an asynchronous manner when the server responds for the search requested via the ContentSearchManager successfully.

fault

Event  
Event Object Type: mx.rpc.events.FaultEvent
property FaultEvent.type = mx.rpc.events.FaultEvent

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Dispatched when a search invoked on the ContentSearchManager fails.

This event is dispatched in an asynchronous manner when the server errors out for the search requested via the ContentSearchManager.