| 套件 | 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):voidexecuteLastSearch | () | 方法 |
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, 03:47 PM Z
隱藏繼承公用屬性
顯示繼承公用屬性