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 Serializable,
C>
public class AccessControlManagedObjectSource.AccessControlManagedObject
extends Object
implements AsynchronousManagedObject, CoordinatingManagedObject<AccessControlManagedObjectSource.Dependencies>, AccessControlListener<AC>
ManagedObject for the access control.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccessControlChange(AC accessControl, Throwable escalation) Notified of a change to access control.Obtains the object being managed.voidLoads the Objects of theManagedObjectinstances to be referenced by thisCoordinatingManagedObject.voidsetAsynchronousContext(AsynchronousContext asynchronousContext) Provides theAsynchronousContextto theAsynchronousManagedObjectto enable call back to notify state and completion of asynchronous processing.
-
Constructor Details
-
AccessControlManagedObject
public AccessControlManagedObject()
-
-
Method Details
-
accessControlChange
Description copied from interface:AccessControlListenerNotified of a change to access control.- Specified by:
accessControlChangein interfaceAccessControlListener<AC extends Serializable>- Parameters:
accessControl- Access control. May benullif- logging out
- failure in authenticating
escalation- PossibleEscalation. Will benullif successfully obtain access control or logout.
-
setAsynchronousContext
Description copied from interface:AsynchronousManagedObjectProvides theAsynchronousContextto theAsynchronousManagedObjectto enable call back to notify state and completion of asynchronous processing.- Specified by:
setAsynchronousContextin interfaceAsynchronousManagedObject- Parameters:
asynchronousContext-AsynchronousContext.
-
loadObjects
public void loadObjects(ObjectRegistry<AccessControlManagedObjectSource.Dependencies> registry) throws Throwable Description copied from interface:CoordinatingManagedObjectLoads the Objects of the
ManagedObjectinstances to be referenced by thisCoordinatingManagedObject.References to the loaded Objects must be released on recycling the
ManagedObject.- Specified by:
loadObjectsin interfaceCoordinatingManagedObject<AccessControlManagedObjectSource.Dependencies>- Parameters:
registry- Registry of the Objects for theManagedObjectinstances.- Throws:
Throwable- Should thisCoordinatingManagedObjectfail to load theManagedObject.
-
getObject
Description copied from interface:ManagedObjectObtains the object being managed.- Specified by:
getObjectin interfaceManagedObject- Returns:
- Object being managed.
- Throws:
Throwable- Indicating failed to obtain the object for use.
-