Class HttpSecurityLoaderImpl
java.lang.Object
net.officefloor.web.security.type.HttpSecurityLoaderImpl
- All Implemented Interfaces:
OfficeFloorCompilerRunnable<HttpSecurityLoader>,HttpSecurityLoader
public class HttpSecurityLoaderImpl
extends Object
implements HttpSecurityLoader, OfficeFloorCompilerRunnable<HttpSecurityLoader>
HttpSecurityLoader implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate forOfficeFloorCompilerRunnable.HttpSecurityLoaderImpl(OfficeFloorCompiler compiler) Initiate.HttpSecurityLoaderImpl(OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext, String managedObjectSourceName) Initiate. -
Method Summary
Modifier and TypeMethodDescription<A,AC extends Serializable, C, O extends Enum<O>, F extends Enum<F>, S extends HttpSecuritySource<A, AC, C, O, F>>
HttpSecurityType<A,AC, C, O, F> loadHttpSecurityType(Class<S> httpSecuritySourceClass, PropertyList propertyList) Loads and returns theHttpSecurityTypefor theHttpSecuritySource.<A,AC extends Serializable, C, O extends Enum<O>, F extends Enum<F>>
HttpSecurityType<A,AC, C, O, F> loadHttpSecurityType(HttpSecuritySource<A, AC, C, O, F> httpSecuritySource, PropertyList propertyList) Loads and returns theHttpSecurityTypefor theHttpSecuritySource.<A,AC extends Serializable, C, O extends Enum<O>, F extends Enum<F>, S extends HttpSecuritySource<A, AC, C, O, F>>
PropertyListloadSpecification(Class<S> httpSecuritySourceClass) Loads and returns thePropertyListfrom theHttpSecuritySourceSpecificationfor theHttpSecuritySource.<A,AC extends Serializable, C, O extends Enum<O>, F extends Enum<F>>
PropertyListloadSpecification(HttpSecuritySource<A, AC, C, O, F> httpSecuritySource) Loads and returns thePropertyListfrom theHttpSecuritySourceSpecificationfor theHttpSecuritySource.run(OfficeFloorCompiler compiler, Object[] parameters) Contains the runnable functionality.
-
Constructor Details
-
HttpSecurityLoaderImpl
public HttpSecurityLoaderImpl()Instantiate forOfficeFloorCompilerRunnable. -
HttpSecurityLoaderImpl
Initiate.- Parameters:
compiler-OfficeFloorCompiler.
-
HttpSecurityLoaderImpl
public HttpSecurityLoaderImpl(OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext, String managedObjectSourceName) Initiate.- Parameters:
officeArchitect-OfficeArchitect.officeSourceContext-OfficeFloorSourceContext.managedObjectSourceName- Name of theManagedObjectSource.
-
-
Method Details
-
run
Description copied from interface:OfficeFloorCompilerRunnableContains the runnable functionality.- Specified by:
runin interfaceOfficeFloorCompilerRunnable<HttpSecurityLoader>- Parameters:
compiler-OfficeFloorCompilerloaded with theClassLoader.parameters- Parameters. AsProxyinstances are used to bridgeClasscompatibility issues of using differentClassLoaderinstances, parameters should only be referenced by their implementing interfaces.- Returns:
- Result from runnable.
- Throws:
Exception- If failure in running.
-
loadSpecification
public <A,AC extends Serializable, PropertyList loadSpecificationC, O extends Enum<O>, F extends Enum<F>, S extends HttpSecuritySource<A, AC, C, O, F>> (Class<S> httpSecuritySourceClass) Description copied from interface:HttpSecurityLoaderLoads and returns thePropertyListfrom theHttpSecuritySourceSpecificationfor theHttpSecuritySource.- Specified by:
loadSpecificationin interfaceHttpSecurityLoader- Type Parameters:
A- Authentication type.AC- Access control type.C- Credentials type.O- Dependency keys type.F-Flowkeys type.S-HttpSecuritySourcetype.- Parameters:
httpSecuritySourceClass-HttpSecuritySourceClass.- Returns:
PropertyListof theHttpSecuritySourcePropertyinstances of theHttpSecuritySourceSpecificationornullif issue, which is reported to theCompilerIssues.
-
loadSpecification
public <A,AC extends Serializable, PropertyList loadSpecificationC, O extends Enum<O>, F extends Enum<F>> (HttpSecuritySource<A, AC, C, O, F> httpSecuritySource) Description copied from interface:HttpSecurityLoaderLoads and returns thePropertyListfrom theHttpSecuritySourceSpecificationfor theHttpSecuritySource.- Specified by:
loadSpecificationin interfaceHttpSecurityLoader- Type Parameters:
A- Authentication type.AC- Access control type.C- Credentials type.O- Dependency keys type.F-Flowkeys type.- Parameters:
httpSecuritySource-HttpSecuritySource.- Returns:
PropertyListof theHttpSecuritySourcePropertyinstances of theHttpSecuritySourceSpecificationornullif issue, which is reported to theCompilerIssues.
-
loadHttpSecurityType
public <A,AC extends Serializable, HttpSecurityType<A,C, O extends Enum<O>, F extends Enum<F>, S extends HttpSecuritySource<A, AC, C, O, F>> AC, loadHttpSecurityTypeC, O, F> (Class<S> httpSecuritySourceClass, PropertyList propertyList) Description copied from interface:HttpSecurityLoaderLoads and returns the
HttpSecurityTypefor theHttpSecuritySource.This method will also initialise the
HttpSecuritySource.- Specified by:
loadHttpSecurityTypein interfaceHttpSecurityLoader- Type Parameters:
A- Authentication type.AC- Access control type.C- Credentials type.O- Dependency keys type.F-Flowkeys type.S-HttpSecuritySourcetype.- Parameters:
httpSecuritySourceClass-HttpSecuritySourceClass.propertyList-PropertyListcontaining the properties to source theHttpSecurityType.- Returns:
HttpSecurityTypeornullif issues, which are reported to theCompilerIssues.
-
loadHttpSecurityType
public <A,AC extends Serializable, HttpSecurityType<A,C, O extends Enum<O>, F extends Enum<F>> AC, loadHttpSecurityTypeC, O, F> (HttpSecuritySource<A, AC, C, O, F> httpSecuritySource, PropertyList propertyList) Description copied from interface:HttpSecurityLoaderLoads and returns the
HttpSecurityTypefor theHttpSecuritySource.This method will also initialise the
HttpSecuritySource.- Specified by:
loadHttpSecurityTypein interfaceHttpSecurityLoader- Type Parameters:
A- Authentication type.AC- Access control type.C- Credentials type.O- Dependency keys type.F-Flowkeys type.- Parameters:
httpSecuritySource-HttpSecuritySource.propertyList-PropertyListcontaining the properties to source theHttpSecurityType.- Returns:
HttpSecurityTypeornullif issues, which are reported to theCompilerIssues.
-