Packageorg.springextensions.actionscript.security
SVN browsingISecurityManagerFactory.as
FisheyeISecurityManagerFactory.as
Interfacepublic interface ISecurityManagerFactory
ImplementorsSimpleSecurityManagerFactory

Describes an object that can manage a list of membership data and based on that can create ISecurityManager instances for arbitrary objects.



Documentation reference: the simplesecuritystageprocessor class

Sample project: security (source)


Public Properties
 PropertyDefined by
  membershipOwner : IMembershipOwner

IMembershipOwner instance that will be monitored and whose changes will be used to let the ISecurityManagers evaluate access to the objects they manage.

Typically an ISecurityManagerFactory will call the checkMembership() method on each ISecurityManager it created when this property changes.

ISecurityManagerFactory
Public Methods
 MethodDefined by
  
Creates a new ISecurityManager for the specified object when possible, returns the newly created instance or null.
ISecurityManagerFactory
  
hasAccess(objectId:String):Boolean
Returns true if the current membershipOwner has access to the object with the specifed id.
ISecurityManagerFactory
Property detail
membershipOwnerproperty
membershipOwner:IMembershipOwner  [read-write]

IMembershipOwner instance that will be monitored and whose changes will be used to let the ISecurityManagers evaluate access to the objects they manage.

Typically an ISecurityManagerFactory will call the checkMembership() method on each ISecurityManager it created when this property changes.

Implementation
    public function get membershipOwner():IMembershipOwner
    public function set membershipOwner(value:IMembershipOwner):void

See also

Method detail
createInstance()method
public function createInstance(object:Object):ISecurityManager

Creates a new ISecurityManager for the specified object when possible, returns the newly created instance or null.

Parameters
object:Object — The specified object for which an ISecurityManager might be created.

Returns
ISecurityManager — A new ISecurityManager instance or null.
hasAccess()method 
public function hasAccess(objectId:String):Boolean

Returns true if the current membershipOwner has access to the object with the specifed id.

Parameters
objectId:String — The id of the object.

Returns
Booleantrue if the current membershipOwner has access.