Class AccessControlManagedObjectSource.AccessControlManagedObject
- java.lang.Object
-
- net.officefloor.web.security.impl.AccessControlManagedObjectSource.AccessControlManagedObject
-
- All Implemented Interfaces:
AsynchronousManagedObject
,CoordinatingManagedObject<AccessControlManagedObjectSource.Dependencies>
,ManagedObject
,AccessControlListener<AC>
- Enclosing class:
- AccessControlManagedObjectSource<AC extends java.io.Serializable,C>
public class AccessControlManagedObjectSource.AccessControlManagedObject extends java.lang.Object implements AsynchronousManagedObject, CoordinatingManagedObject<AccessControlManagedObjectSource.Dependencies>, AccessControlListener<AC>
ManagedObject
for the access control.
-
-
Constructor Summary
Constructors Constructor Description AccessControlManagedObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accessControlChange(AC accessControl, java.lang.Throwable escalation)
Notified of a change to access control.java.lang.Object
getObject()
Obtains the object being managed.void
loadObjects(ObjectRegistry<AccessControlManagedObjectSource.Dependencies> registry)
Loads the Objects of theManagedObject
instances to be referenced by thisCoordinatingManagedObject
.void
setAsynchronousContext(AsynchronousContext asynchronousContext)
Provides theAsynchronousContext
to theAsynchronousManagedObject
to enable call back to notify state and completion of asynchronous processing.
-
-
-
Method Detail
-
accessControlChange
public void accessControlChange(AC accessControl, java.lang.Throwable escalation)
Description copied from interface:AccessControlListener
Notified of a change to access control.- Specified by:
accessControlChange
in interfaceAccessControlListener<AC extends java.io.Serializable>
- Parameters:
accessControl
- Access control. May benull
if- logging out
- failure in authenticating
escalation
- PossibleEscalation
. Will benull
if successfully obtain access control or logout.
-
setAsynchronousContext
public void setAsynchronousContext(AsynchronousContext asynchronousContext)
Description copied from interface:AsynchronousManagedObject
Provides theAsynchronousContext
to theAsynchronousManagedObject
to enable call back to notify state and completion of asynchronous processing.- Specified by:
setAsynchronousContext
in interfaceAsynchronousManagedObject
- Parameters:
asynchronousContext
-AsynchronousContext
.
-
loadObjects
public void loadObjects(ObjectRegistry<AccessControlManagedObjectSource.Dependencies> registry) throws java.lang.Throwable
Description copied from interface:CoordinatingManagedObject
Loads the Objects of the
ManagedObject
instances to be referenced by thisCoordinatingManagedObject
.References to the loaded Objects must be released on recycling the
ManagedObject
.- Specified by:
loadObjects
in interfaceCoordinatingManagedObject<AccessControlManagedObjectSource.Dependencies>
- Parameters:
registry
- Registry of the Objects for theManagedObject
instances.- Throws:
java.lang.Throwable
- Should thisCoordinatingManagedObject
fail to load theManagedObject
.
-
getObject
public java.lang.Object getObject() throws java.lang.Throwable
Description copied from interface:ManagedObject
Obtains the object being managed.- Specified by:
getObject
in interfaceManagedObject
- Returns:
- Object being managed.
- Throws:
java.lang.Throwable
- Indicating failed to obtain the object for use.
-
-