Packagecom.adobe.portfolio.api
Interfacepublic interface IPermissions

Language Version : ActionScript 3.0
Product Version : Portfolio 9.0
Runtime Versions : Flash Player 10.1, AIR 2.0

This interface can be used to check whether specific permissions have been granted.



Public Methods
 MethodDefined By
  
check(category:String, permission:String):Boolean
Determines whether the category/permission pair has been granted within this collection (for the owner of this IPermissions instance).
IPermissions
Method Detail
check()method
public function check(category:String, permission:String):Boolean

Language Version : ActionScript 3.0
Product Version : Portfolio 9.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Determines whether the category/permission pair has been granted within this collection (for the owner of this IPermissions instance).

Parameters

category:String — One of the following strings: "Document", "EmbeddedFile", or "Form".
 
permission:String — one of the following strings: "Import", "Create", "Delete", "Modify".

Returns
Booleantrue if the category/permission pair has been granted within this collection. Also returns false if the specified permission is not recognized.

See also