mx.data

# AccessPrivileges - AS3 ADEP Data Services

Package | mx.data
Class | public class AccessPrivileges
Inheritance | AccessPrivileges Object

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Data Services for Java EE 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
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined 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
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | AccessPrivileges(privileges:uint = 14) Constructs an instance with the specified privileges. | AccessPrivileges
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Public Constants

| Constant | Defined 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: | Adobe Digital Enterprise Platform Data Services for Java EE 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: | Adobe Digital Enterprise Platform Data Services for Java EE 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: | Adobe Digital Enterprise Platform Data Services for Java EE 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: | Adobe Digital Enterprise Platform Data Services for Java EE 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: | Adobe Digital Enterprise Platform Data Services for Java EE 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: | Adobe Digital Enterprise Platform Data Services for Java EE 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: | Adobe Digital Enterprise Platform Data Services for Java EE 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: | Adobe Digital Enterprise Platform Data Services for Java EE 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: | Adobe Digital Enterprise Platform Data Services for Java EE 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: | Adobe Digital Enterprise Platform Data Services for Java EE 3

Runtime Versions: | Flash Player 9, AIR 1.1

Indicates that update operations are allowed.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00