ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.livecycle.assetmanager.client.handler 

PermissionBasedAssetHandler  - AS3 Asset Manager

Packagecom.adobe.livecycle.assetmanager.client.handler
Classpublic class PermissionBasedAssetHandler
InheritancePermissionBasedAssetHandler Inheritance EventDispatcher Inheritance Object
Implements IAssetHandler
Deprecated: Deprecated

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

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



Public Properties
 PropertyDefined By
  assetActions : IList
Specifies the list of actions that are associated with the asset that is handled by this handler.
PermissionBasedAssetHandler
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
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
[static] Specifies a list of permissions that is associated with the current logged-in user.
PermissionBasedAssetHandler
  userPermissionsPrefixMap : Object
[static] Specifies a map of asset permissions prefixes using the format {assetType1:prefix1, assetType2:prefix2}.
PermissionBasedAssetHandler
Public Methods
 MethodDefined By
  
Constructor.
PermissionBasedAssetHandler
 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
  
Returns the asset type associated with the asset.
PermissionBasedAssetHandler
  
Called when a user clicks an action associated with an asset type.
PermissionBasedAssetHandler
 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
  
Initializes the handler.
PermissionBasedAssetHandler
 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
 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
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive.EventDispatcher
Property Detail

assetActions

property
assetActions:IList

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: 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.



Implementation
    public function get assetActions():IList
    public function set assetActions(value:IList):void

selectedAssets

property 
selectedAssets:Array

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Specifies the array of currently selected assets.



Implementation
    public function get selectedAssets():Array
    public function set selectedAssets(value:Array):void

target

property 
public var target:IAssetHandler

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

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

userPermissions

property 
userPermissions:IList

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

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



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

userPermissionsPrefixMap

property 
public static var userPermissionsPrefixMap:Object

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

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

Constructor Detail

PermissionBasedAssetHandler

()Constructor
public function PermissionBasedAssetHandler(targetHandler:IAssetHandler)

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Constructor.

Parameters
targetHandler:IAssetHandler — The AssetHandler instance that is associated with this object.
Method Detail

getAssetType

()method
public function getAssetType():String

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Returns the asset type associated with the asset.

Returns
String — An asset type string.

handleAction

()method 
public function handleAction(actionEvent:AssetActionEvent):void

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

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

Parameters

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

initialize

()method 
public function initialize():void

Language Version: ActionScript 3.0
Product Version: Asset Manager Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Initializes the handler. Called when AssetHandlerRegistry starts.