用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: 正在从服务器检索数据...
正在从服务器检索数据...
com.adobe.livecycle.assetmanager.client.handler 

PermissionBasedAssetHandler  - AS3 Asset Manager

com.adobe.livecycle.assetmanager.client.handler
public class PermissionBasedAssetHandler
继承PermissionBasedAssetHandler Inheritance EventDispatcher Inheritance Object
实现 IAssetHandler
不推荐使用: Deprecated

语言版本: ActionScript 3.0
产品版本: Asset Manager Building Block 9.5
运行时版本: AIR 1.0, Flash Player 9, Flash Player 10

A wrapper for AssetHandlers that enforces permissions that are associated with asset actions.



公共属性
 属性由以下参数定义
  assetActions : IList
Specifies the list of actions that are associated with the asset that is handled by this handler.
PermissionBasedAssetHandler
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
  selectedAssets : Array
Specifies the array of currently selected assets.
PermissionBasedAssetHandler
  target : IAssetHandler
Specifies the target asset handler that is wrapped by this instance.
PermissionBasedAssetHandler
  userPermissions : IList
[静态] Specifies a list of permissions that is associated with the current logged-in user.
PermissionBasedAssetHandler
  userPermissionsPrefixMap : Object
[静态] Specifies a map of asset permissions prefixes using the format {assetType1:prefix1, assetType2:prefix2}.
PermissionBasedAssetHandler
公共方法
 方法由以下参数定义
  
Constructor.
PermissionBasedAssetHandler
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。
EventDispatcher
 Inherited
将事件调度到事件流中。
EventDispatcher
  
Returns the asset type associated with the asset.
PermissionBasedAssetHandler
  
Called when a user clicks an action associated with an asset type.
PermissionBasedAssetHandler
 Inherited
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
EventDispatcher
 Inherited
表示对象是否已经定义了指定的属性。
Object
  
Initializes the handler.
PermissionBasedAssetHandler
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
从 EventDispatcher 对象中删除侦听器。
EventDispatcher
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
 Inherited
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。
EventDispatcher
事件
 事件 摘要 由以下参数定义
 Inherited[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。EventDispatcher
 Inherited[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。EventDispatcher
属性详细信息

assetActions

属性
assetActions:IList

语言版本: ActionScript 3.0
产品版本: Asset Manager Building Block 9.5
运行时版本: AIR 1.0, Flash Player 9, Flash Player 10

Specifies the list of actions that are associated with the asset that is handled by this handler.



实现
    public function get assetActions():IList
    public function set assetActions(value:IList):void

selectedAssets

属性 
selectedAssets:Array

语言版本: ActionScript 3.0
产品版本: Asset Manager Building Block 9.5
运行时版本: AIR 1.0, Flash Player 9, Flash Player 10

Specifies the array of currently selected assets.



实现
    public function get selectedAssets():Array
    public function set selectedAssets(value:Array):void

target

属性 
public var target:IAssetHandler

语言版本: ActionScript 3.0
产品版本: Asset Manager Building Block 9.5
运行时版本: AIR 1.0, Flash Player 9, Flash Player 10

Specifies the target asset handler that is wrapped by this instance.

userPermissions

属性 
userPermissions:IList

语言版本: ActionScript 3.0
产品版本: Asset Manager Building Block 9.5
运行时版本: AIR 1.0, Flash Player 9, Flash Player 10

Specifies a list of permissions that is associated with the current logged-in user.



实现
    public static function get userPermissions():IList
    public static function set userPermissions(value:IList):void

userPermissionsPrefixMap

属性 
public static var userPermissionsPrefixMap:Object

语言版本: ActionScript 3.0
产品版本: Asset Manager Building Block 9.5
运行时版本: AIR 1.0, Flash Player 9, Flash Player 10

Specifies a map of asset permissions prefixes using the format {assetType1:prefix1, assetType2:prefix2}.

构造函数详细信息

PermissionBasedAssetHandler

()构造函数
public function PermissionBasedAssetHandler(targetHandler:IAssetHandler)

语言版本: ActionScript 3.0
产品版本: Asset Manager Building Block 9.5
运行时版本: AIR 1.0, Flash Player 9, Flash Player 10

Constructor.

参数
targetHandler:IAssetHandler — The AssetHandler instance that is associated with this object.
方法详细信息

getAssetType

()方法
public function getAssetType():String

语言版本: ActionScript 3.0
产品版本: Asset Manager Building Block 9.5
运行时版本: AIR 1.0, Flash Player 9, Flash Player 10

Returns the asset type associated with the asset.

返回
String — An asset type string.

handleAction

()方法 
public function handleAction(actionEvent:AssetActionEvent):void

语言版本: ActionScript 3.0
产品版本: Asset Manager Building Block 9.5
运行时版本: AIR 1.0, Flash Player 9, Flash Player 10

Called when a user clicks an action associated with an asset type.

参数

actionEvent:AssetActionEvent — The event that is thrown when the user clicks an action associated with an asset type.

initialize

()方法 
public function initialize():void

语言版本: ActionScript 3.0
产品版本: Asset Manager Building Block 9.5
运行时版本: AIR 1.0, Flash Player 9, Flash Player 10

Initializes the handler. Called when AssetHandlerRegistry starts.





[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。