包 | com.adobe.icc.editors.managers |
类 | public class ContentSearchManager |
继承 | ContentSearchManager EventDispatcher Object |
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
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.
相关 API 元素
com.adobe.livecycle.assetmanager.client.service.search.cms.ICMSQueryService
属性 | 由以下参数定义 | ||
---|---|---|---|
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | 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 |
方法 | 由以下参数定义 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
将事件调度到事件流中。 | EventDispatcher | ||
Re-executes the last search in order to refresh the results. | ContentSearchManager | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
Searches the server for asset matching the passed name. | ContentSearchManager | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
事件 | 摘要 | 由以下参数定义 | ||
---|---|---|---|---|
[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。 | EventDispatcher | |||
Dispatched when a search invoked on the ContentSearchManager completes successfully. | ContentSearchManager | |||
[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。 | EventDispatcher | |||
Dispatched when a search invoked on the ContentSearchManager fails. | ContentSearchManager |
lastResult | 属性 |
public var lastResult:ListCollectionView
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | 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.
此属性可用作数据绑定的源。修改此属性后,将调度 complete
事件。
lastSearchString | 属性 |
lastSearchString:String
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The last query string that was used to invoke search on ContentSearchManager
.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get lastSearchString():String
public function set lastSearchString(value:String):void
executeLastSearch | () | 方法 |
public function executeLastSearch():void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Re-executes the last search in order to refresh the results.
search | () | 方法 |
public function search(searchString:String):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | 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"
参数
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.
|
complete | 事件 |
flash.events.Event
属性 Event.type =
flash.events.Event
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | 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 | 事件 |
mx.rpc.events.FaultEvent
属性 FaultEvent.type =
mx.rpc.events.FaultEvent
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | 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
.
Tue Jun 12 2018, 11:04 AM Z