Class AuthenticationContextManagedObjectSource<A,AC extends Serializable,C,O extends Enum<O>,F extends Enum<F>>
java.lang.Object
net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<O,F>
net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows>
net.officefloor.web.security.impl.AuthenticationContextManagedObjectSource<A,AC,C,O,F>
- All Implemented Interfaces:
ManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows>
@PrivateSource
public class AuthenticationContextManagedObjectSource<A,AC extends Serializable,C,O extends Enum<O>,F extends Enum<F>>
extends AbstractManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows>
ManagedObjectSource for the custom authentication.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDependency keys.static enumFlow keys.Nested classes/interfaces inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
AbstractAsyncManagedObjectSource.DependencyLabeller<K extends Enum<K>>, AbstractAsyncManagedObjectSource.ExecutionLabeller, AbstractAsyncManagedObjectSource.Labeller<K extends Enum<K>>, AbstractAsyncManagedObjectSource.MetaDataContext<O extends Enum<O>,F extends Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationContextManagedObjectSource(String qualifier, HttpSecurity<A, AC, C, O, F> httpSecurity) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionprotected ManagedObjectSynchronously obtains theManagedObject.static StringgetQualifiedAttributeName(String qualifier, String attributeName) Obtains the qualified attribute name.protected voidloadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<AuthenticationContextManagedObjectSource.Dependencies, AuthenticationContextManagedObjectSource.Flows> context) Overridden to load meta-data.protected voidOverridden to load specifications.voidCalled once afterManagedObjectSource.init(ManagedObjectSourceContext)to indicate thisManagedObjectSourceshould start execution.Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource
sourceManagedObjectMethods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
getSpecification, init, stop
-
Constructor Details
-
AuthenticationContextManagedObjectSource
public AuthenticationContextManagedObjectSource(String qualifier, HttpSecurity<A, AC, C, O, F> httpSecurity) Instantiate.- Parameters:
qualifier- Qualifier for theHttpSecurity.httpSecurity-HttpSecurity.
-
-
Method Details
-
getQualifiedAttributeName
Obtains the qualified attribute name.- Parameters:
qualifier-HttpSecurityqualifier.attributeName- Attribute name.- Returns:
- Qualified attribute name.
-
loadSpecification
Description copied from class:AbstractAsyncManagedObjectSourceOverridden to load specifications.- Specified by:
loadSpecificationin classAbstractAsyncManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows> - Parameters:
context- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<AuthenticationContextManagedObjectSource.Dependencies, AuthenticationContextManagedObjectSource.Flows> context) throws ExceptionDescription copied from class:AbstractAsyncManagedObjectSourceOverridden to load meta-data.- Specified by:
loadMetaDatain classAbstractAsyncManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows> - Parameters:
context- Meta-data.- Throws:
Exception- If fails to load the meta-data.
-
start
public void start(ManagedObjectExecuteContext<AuthenticationContextManagedObjectSource.Flows> context) throws Exception Description copied from interface:ManagedObjectSourceCalled once after
ManagedObjectSource.init(ManagedObjectSourceContext)to indicate thisManagedObjectSourceshould start execution.On invocation of this method,
ProcessStateinstances may be invoked via theManagedObjectExecuteContext.- Specified by:
startin interfaceManagedObjectSource<A,AC extends Serializable> - Overrides:
startin classAbstractAsyncManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows> - Parameters:
context-ManagedObjectExecuteContextto use in starting thisManagedObjectSource.- Throws:
Exception- Should theManagedObjectSourcefail to start execution.
-
getManagedObject
Description copied from class:AbstractManagedObjectSourceSynchronously obtains theManagedObject.- Specified by:
getManagedObjectin classAbstractManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows> - Returns:
ManagedObject.- Throws:
Throwable- If fails to obtain theManagedObject.
-