Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.data 
AccessPrivileges 
Packagemx.data
Classpublic class AccessPrivileges
InheritanceAccessPrivileges Inheritance Object

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services 3
Runtime Versions: Flash Player 9, AIR 1.1

Encapsulates the allowed privileges and provides access to simple descriptions of what operations are allowed. This class is immutable, which means that once it is constructed with privileges, the privileges cannot be changed for this instance.



Public Properties
 PropertyDefined By
  canAdd : Boolean
[read-only] Indicates whether add operations are permitted.
AccessPrivileges
  canModify : Boolean
[read-only] Indicates whether any modification operation can be performed.
AccessPrivileges
  canRemove : Boolean
[read-only] Indicates whether remove operations are permitted.
AccessPrivileges
  canUpdate : Boolean
[read-only] Indicates whether updates are permitted.
AccessPrivileges
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined By
  
AccessPrivileges(privileges:uint = 14)
Constructs an instance with the specified privileges.
AccessPrivileges
 Inherited
Indicates whether an object has a specified property defined.
Object
 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
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
Public Constants
 ConstantDefined By
  ADD : uint = 2
[static] Indicates that add operations are allowed.
AccessPrivileges
  ALL : uint = 14
[static] Indicates that no restrictions are imposed.
AccessPrivileges
  NONE : uint = 0
[static] Indicates read-only access.
AccessPrivileges
  REMOVE : uint = 8
[static] Indicates that remove operations are allowed.
AccessPrivileges
  UPDATE : uint = 4
[static] Indicates that update operations are allowed.
AccessPrivileges
Property Detail

canAdd

property
canAdd:Boolean  [read-only]

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services 3
Runtime Versions: Flash Player 9, AIR 1.1

Indicates whether add operations are permitted.



Implementation
    public function get canAdd():Boolean

canModify

property 
canModify:Boolean  [read-only]

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services 3
Runtime Versions: Flash Player 9, AIR 1.1

Indicates whether any modification operation can be performed.



Implementation
    public function get canModify():Boolean

canRemove

property 
canRemove:Boolean  [read-only]

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services 3
Runtime Versions: Flash Player 9, AIR 1.1

Indicates whether remove operations are permitted.



Implementation
    public function get canRemove():Boolean

canUpdate

property 
canUpdate:Boolean  [read-only]

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services 3
Runtime Versions: Flash Player 9, AIR 1.1

Indicates whether updates are permitted.



Implementation
    public function get canUpdate():Boolean
Constructor Detail

AccessPrivileges

()Constructor
public function AccessPrivileges(privileges:uint = 14)

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services 3
Runtime Versions: Flash Player 9, AIR 1.1

Constructs an instance with the specified privileges.

Parameters
privileges:uint (default = 14) — bitmap representing access privileges. Starting with the smallest order bit: First bit - not used - should always be zero; read-only access when value is 0. Second bit - on when add operations are allowed Third bit - on when update operations are allowed Fourth bit - on when remove operations are allowed
Constant Detail

ADD

Constant
public static const ADD:uint = 2

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services 3
Runtime Versions: Flash Player 9, AIR 1.1

Indicates that add operations are allowed.

ALL

Constant 
public static const ALL:uint = 14

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services 3
Runtime Versions: Flash Player 9, AIR 1.1

Indicates that no restrictions are imposed. All mutation operations, add, update, and remove are allowed.

NONE

Constant 
public static const NONE:uint = 0

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services 3
Runtime Versions: Flash Player 9, AIR 1.1

Indicates read-only access.

REMOVE

Constant 
public static const REMOVE:uint = 8

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services 3
Runtime Versions: Flash Player 9, AIR 1.1

Indicates that remove operations are allowed.

UPDATE

Constant 
public static const UPDATE:uint = 4

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services 3
Runtime Versions: Flash Player 9, AIR 1.1

Indicates that update operations are allowed.