Class HttpSecurityLoaderImpl
- java.lang.Object
-
- net.officefloor.web.security.type.HttpSecurityLoaderImpl
-
- All Implemented Interfaces:
OfficeFloorCompilerRunnable<HttpSecurityLoader>
,HttpSecurityLoader
public class HttpSecurityLoaderImpl extends java.lang.Object implements HttpSecurityLoader, OfficeFloorCompilerRunnable<HttpSecurityLoader>
HttpSecurityLoader
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description HttpSecurityLoaderImpl()
Instantiate forOfficeFloorCompilerRunnable
.HttpSecurityLoaderImpl(OfficeFloorCompiler compiler)
Initiate.HttpSecurityLoaderImpl(OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext, java.lang.String managedObjectSourceName)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>,S extends HttpSecuritySource<A,AC,C,O,F>>
HttpSecurityType<A,AC,C,O,F>loadHttpSecurityType(java.lang.Class<S> httpSecuritySourceClass, PropertyList propertyList)
Loads and returns theHttpSecurityType
for theHttpSecuritySource
.<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
HttpSecurityType<A,AC,C,O,F>loadHttpSecurityType(HttpSecuritySource<A,AC,C,O,F> httpSecuritySource, PropertyList propertyList)
Loads and returns theHttpSecurityType
for theHttpSecuritySource
.<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>,S extends HttpSecuritySource<A,AC,C,O,F>>
PropertyListloadSpecification(java.lang.Class<S> httpSecuritySourceClass)
Loads and returns thePropertyList
from theHttpSecuritySourceSpecification
for theHttpSecuritySource
.<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
PropertyListloadSpecification(HttpSecuritySource<A,AC,C,O,F> httpSecuritySource)
Loads and returns thePropertyList
from theHttpSecuritySourceSpecification
for theHttpSecuritySource
.HttpSecurityLoader
run(OfficeFloorCompiler compiler, java.lang.Object[] parameters)
Contains the runnable functionality.
-
-
-
Constructor Detail
-
HttpSecurityLoaderImpl
public HttpSecurityLoaderImpl()
Instantiate forOfficeFloorCompilerRunnable
.
-
HttpSecurityLoaderImpl
public HttpSecurityLoaderImpl(OfficeFloorCompiler compiler)
Initiate.- Parameters:
compiler
-OfficeFloorCompiler
.
-
HttpSecurityLoaderImpl
public HttpSecurityLoaderImpl(OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext, java.lang.String managedObjectSourceName)
Initiate.- Parameters:
officeArchitect
-OfficeArchitect
.officeSourceContext
-OfficeFloorSourceContext
.managedObjectSourceName
- Name of theManagedObjectSource
.
-
-
Method Detail
-
run
public HttpSecurityLoader run(OfficeFloorCompiler compiler, java.lang.Object[] parameters) throws java.lang.Exception
Description copied from interface:OfficeFloorCompilerRunnable
Contains the runnable functionality.- Specified by:
run
in interfaceOfficeFloorCompilerRunnable<HttpSecurityLoader>
- Parameters:
compiler
-OfficeFloorCompiler
loaded with theClassLoader
.parameters
- Parameters. AsProxy
instances are used to bridgeClass
compatibility issues of using differentClassLoader
instances, parameters should only be referenced by their implementing interfaces.- Returns:
- Result from runnable.
- Throws:
java.lang.Exception
- If failure in running.
-
loadSpecification
public <A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>,S extends HttpSecuritySource<A,AC,C,O,F>> PropertyList loadSpecification(java.lang.Class<S> httpSecuritySourceClass)
Description copied from interface:HttpSecurityLoader
Loads and returns thePropertyList
from theHttpSecuritySourceSpecification
for theHttpSecuritySource
.- Specified by:
loadSpecification
in interfaceHttpSecurityLoader
- Type Parameters:
A
- Authentication type.AC
- Access control type.C
- Credentials type.O
- Dependency keys type.F
-Flow
keys type.S
-HttpSecuritySource
type.- Parameters:
httpSecuritySourceClass
-HttpSecuritySource
Class
.- Returns:
PropertyList
of theHttpSecuritySourceProperty
instances of theHttpSecuritySourceSpecification
ornull
if issue, which is reported to theCompilerIssues
.
-
loadSpecification
public <A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>> PropertyList loadSpecification(HttpSecuritySource<A,AC,C,O,F> httpSecuritySource)
Description copied from interface:HttpSecurityLoader
Loads and returns thePropertyList
from theHttpSecuritySourceSpecification
for theHttpSecuritySource
.- Specified by:
loadSpecification
in interfaceHttpSecurityLoader
- Type Parameters:
A
- Authentication type.AC
- Access control type.C
- Credentials type.O
- Dependency keys type.F
-Flow
keys type.- Parameters:
httpSecuritySource
-HttpSecuritySource
.- Returns:
PropertyList
of theHttpSecuritySourceProperty
instances of theHttpSecuritySourceSpecification
ornull
if issue, which is reported to theCompilerIssues
.
-
loadHttpSecurityType
public <A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>,S extends HttpSecuritySource<A,AC,C,O,F>> HttpSecurityType<A,AC,C,O,F> loadHttpSecurityType(java.lang.Class<S> httpSecuritySourceClass, PropertyList propertyList)
Description copied from interface:HttpSecurityLoader
Loads and returns the
HttpSecurityType
for theHttpSecuritySource
.This method will also initialise the
HttpSecuritySource
.- Specified by:
loadHttpSecurityType
in interfaceHttpSecurityLoader
- Type Parameters:
A
- Authentication type.AC
- Access control type.C
- Credentials type.O
- Dependency keys type.F
-Flow
keys type.S
-HttpSecuritySource
type.- Parameters:
httpSecuritySourceClass
-HttpSecuritySource
Class
.propertyList
-PropertyList
containing the properties to source theHttpSecurityType
.- Returns:
HttpSecurityType
ornull
if issues, which are reported to theCompilerIssues
.
-
loadHttpSecurityType
public <A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>> HttpSecurityType<A,AC,C,O,F> loadHttpSecurityType(HttpSecuritySource<A,AC,C,O,F> httpSecuritySource, PropertyList propertyList)
Description copied from interface:HttpSecurityLoader
Loads and returns the
HttpSecurityType
for theHttpSecuritySource
.This method will also initialise the
HttpSecuritySource
.- Specified by:
loadHttpSecurityType
in interfaceHttpSecurityLoader
- Type Parameters:
A
- Authentication type.AC
- Access control type.C
- Credentials type.O
- Dependency keys type.F
-Flow
keys type.- Parameters:
httpSecuritySource
-HttpSecuritySource
.propertyList
-PropertyList
containing the properties to source theHttpSecurityType
.- Returns:
HttpSecurityType
ornull
if issues, which are reported to theCompilerIssues
.
-
-