Packageorg.servebox.toolbox.acl
Classpublic class ACLGrid
InheritanceACLGrid Inheritance BasicObject

ACLGrid contain a collection of ACLEntry



Public Properties
 PropertyDefined by
  application : AccessControlApplication
ACLGrid
  entries : ArrayCollection
ACLGrid
 InheritedinternalInstanceId : uint
The internal instance id of the object.
BasicObject
  user : AccessRequestUser
ACLGrid
Protected Properties
 PropertyDefined by
  logger : ILogger
[static] The class logger.
ACLGrid
Public Methods
 MethodDefined by
  
Constructor if No ACLMANAGER where specified set a default manager
ACLGrid
  
addAcoElementsTodTmpAco(arAco:Array):void
Add the queue of finded ACO elements To sssssthe Temp DictionnaryTable
ACLGrid
  
addEntry(entry:ACLEntry):void
ACLGrid
  
convertDirectiveToBoolean(directive:String):Boolean
Convert ALLOW Directive to true Convert DENY Directive to false
ACLGrid
 Inherited
equals(value:IBasicObject):Boolean
Object comparison mechanism.
BasicObject
  
Find ACLEntry in _entries concerning Current ACO and his ancestors
ACLGrid
  
findAcoUidInArray(acoUid:String, arrayToSearch:ArrayCollection, criteria:String = "getUid"):Boolean
Search a AcoUid in a Array of ACO
ACLGrid
  
ACLGrid
  
ACLGrid
  
ACLGrid
  
getAcoRecurs(aco:AccessControlObject, accessControlObjectUid:String, arAcoFound:Array):Array
Starting from an ACO, try to find his parent ACOGroup or/And AccessControlApplication
ACLGrid
 Inherited
Generates a unique unsigned integer id at instanciation
BasicObject
  
getParentsACOsForACO(accessControlObjectUid:String):Array
Créer une tableau temporaire des ACO filtré sur la resource ACO concernée
ACLGrid
 Inherited
hashCode():int
Returns the hashcode of the object.
BasicObject
  
isAllowed(accessControlObjectUid:String, action:String):Boolean
check if the given ACO acces is allowed form the given ACTION
ACLGrid
  
merge(grid:ACLGrid):void
Merges the internal ACL credentials grid with another.
ACLGrid
  
parseSubACLGrid(aclGrid:ACLGrid, action:String):Boolean
Resolve acl on a specific ACLGrid for a given ACO, resolve priority between GROUP and USER TO DO: Gerer les diférente CONFLICT_RESOLVING_POLICY : INTERSECTION AND UNION
ACLGrid
  
resolveAction(entryAction:String, askedAction:String):Boolean
ACLGrid
  
ACLGrid
  
setACLManager(aclManager:ACLManager):void
ACLGrid
  
ACLGrid
 Inherited
toString():String
Returns the string representation of the specified object.
BasicObject
Property detail
applicationproperty
application:AccessControlApplication  [read-write]Implementation
    public function get application():AccessControlApplication
    public function set application(value:AccessControlApplication):void
entriesproperty 
entries:ArrayCollection  [read-write]Implementation
    public function get entries():ArrayCollection
    public function set entries(value:ArrayCollection):void
loggerproperty 
protected static var logger:ILogger

The class logger.

userproperty 
user:AccessRequestUser  [read-write]Implementation
    public function get user():AccessRequestUser
    public function set user(value:AccessRequestUser):void
Constructor detail
ACLGrid()constructor
public function ACLGrid()

Constructor if No ACLMANAGER where specified set a default manager

Method detail
addAcoElementsTodTmpAco()method
public function addAcoElementsTodTmpAco(arAco:Array):void

Add the queue of finded ACO elements To sssssthe Temp DictionnaryTable

Parameters
arAco:Array
addEntry()method 
public function addEntry(entry:ACLEntry):voidParameters
entry:ACLEntry
convertDirectiveToBoolean()method 
public function convertDirectiveToBoolean(directive:String):Boolean

Convert ALLOW Directive to true Convert DENY Directive to false

Parameters
directive:String

Returns
Boolean
extractSubACLGrid()method 
public function extractSubACLGrid():ACLGrid

Find ACLEntry in _entries concerning Current ACO and his ancestors

Returns
ACLGrid
findAcoUidInArray()method 
public function findAcoUidInArray(acoUid:String, arrayToSearch:ArrayCollection, criteria:String = "getUid"):Boolean

Search a AcoUid in a Array of ACO

Parameters
acoUid:String
 
arrayToSearch:ArrayCollection
 
criteria:String (default = "getUid")

Returns
Boolean
getAccesControlApplication()method 
public function getAccesControlApplication():AccessControlApplication

Returns
AccessControlApplication
getAccessRequestUser()method 
public function getAccessRequestUser():AccessRequestUser

Returns
AccessRequestUser
getACLManager()method 
public function getACLManager():ACLManager

Returns
ACLManager
getAcoRecurs()method 
public function getAcoRecurs(aco:AccessControlObject, accessControlObjectUid:String, arAcoFound:Array):Array

Starting from an ACO, try to find his parent ACOGroup or/And AccessControlApplication

Parameters
aco:AccessControlObject
 
accessControlObjectUid:String
 
arAcoFound:Array

Returns
Array
getParentsACOsForACO()method 
public function getParentsACOsForACO(accessControlObjectUid:String):Array

Créer une tableau temporaire des ACO filtré sur la resource ACO concernée

Parameters
accessControlObjectUid:String

Returns
Array
isAllowed()method 
public function isAllowed(accessControlObjectUid:String, action:String):Boolean

check if the given ACO acces is allowed form the given ACTION

Parameters
accessControlObjectUid:String
 
action:String

Returns
Boolean
merge()method 
public function merge(grid:ACLGrid):void

Merges the internal ACL credentials grid with another. in fact merge entries from the first grid with the second

Parameters
grid:ACLGrid — TO DO
parseSubACLGrid()method 
public function parseSubACLGrid(aclGrid:ACLGrid, action:String):Boolean

Resolve acl on a specific ACLGrid for a given ACO, resolve priority between GROUP and USER TO DO: Gerer les diférente CONFLICT_RESOLVING_POLICY : INTERSECTION AND UNION

Parameters
aclGrid:ACLGrid
 
action:String

Returns
Boolean
resolveAction()method 
public function resolveAction(entryAction:String, askedAction:String):BooleanParameters
entryAction:String
 
askedAction:String

Returns
Boolean
setAccessControlApplication()method 
public function setAccessControlApplication(application:AccessControlApplication):voidParameters
application:AccessControlApplication
setACLManager()method 
public function setACLManager(aclManager:ACLManager):voidParameters
aclManager:ACLManager
setRequestAccessUser()method 
public function setRequestAccessUser(user:AccessRequestUser):voidParameters
user:AccessRequestUser