Class HttpSecuritySupportingManagedObjectImpl<O extends java.lang.Enum<O>>
- java.lang.Object
-
- net.officefloor.web.security.type.HttpSecuritySupportingManagedObjectImpl<O>
-
- All Implemented Interfaces:
PropertyConfigurable
,HttpSecuritySupportingManagedObjectType<O>
,HttpSecuritySupportingManagedObject<O>
public class HttpSecuritySupportingManagedObjectImpl<O extends java.lang.Enum<O>> extends java.lang.Object implements HttpSecuritySupportingManagedObject<O>, HttpSecuritySupportingManagedObjectType<O>
HttpSecuritySupportingManagedObject
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description HttpSecuritySupportingManagedObjectImpl(java.lang.String name, ManagedObjectSource<O,?> managedObjectSource, java.util.function.Supplier<PropertyList> propertyListFactory, ManagedObjectScope managedObjectScope)
Instantiate.
-
Method Summary
-
-
-
Constructor Detail
-
HttpSecuritySupportingManagedObjectImpl
public HttpSecuritySupportingManagedObjectImpl(java.lang.String name, ManagedObjectSource<O,?> managedObjectSource, java.util.function.Supplier<PropertyList> propertyListFactory, ManagedObjectScope managedObjectScope)
Instantiate.- Parameters:
name
- Name of theHttpSecuritySupportingManagedObject
.managedObjectSource
-ManagedObjectSource
for theHttpSecuritySupportingManagedObject
.propertyListFactory
- Factory to create aPropertyList
.managedObjectScope
-ManagedObjectScope
for theManagedObject
.
-
-
Method Detail
-
loadHttpSecuritySupportingManagedObjectType
public HttpSecuritySupportingManagedObjectType<?> loadHttpSecuritySupportingManagedObjectType(java.util.function.BiFunction<ManagedObjectSource<?,?>,PropertyList,ManagedObjectType<?>> managedObjectTypeLoader)
Loads theHttpSecuritySupportingManagedObjectType
.- Parameters:
managedObjectTypeLoader
- Loader to load theManagedObjectType
.- Returns:
HttpSecuritySupportingManagedObjectType
.
-
addProperty
public void addProperty(java.lang.String name, java.lang.String value)
Description copied from interface:PropertyConfigurable
Adds aProperty
to configure the item.- Specified by:
addProperty
in interfacePropertyConfigurable
- Parameters:
name
- Name ofProperty
.value
- Value ofProperty
.
-
linkAuthentication
public void linkAuthentication(O dependency)
Description copied from interface:HttpSecuritySupportingManagedObject
Links the custom authentication for the dependency.- Specified by:
linkAuthentication
in interfaceHttpSecuritySupportingManagedObject<O extends java.lang.Enum<O>>
- Parameters:
dependency
- Dependency key.
-
linkHttpAuthentication
public void linkHttpAuthentication(O dependency)
Description copied from interface:HttpSecuritySupportingManagedObject
Links theHttpAuthentication
for the dependency.- Specified by:
linkHttpAuthentication
in interfaceHttpSecuritySupportingManagedObject<O extends java.lang.Enum<O>>
- Parameters:
dependency
- Dependency key.
-
linkAccessControl
public void linkAccessControl(O dependency)
Description copied from interface:HttpSecuritySupportingManagedObject
Links the custom access control for the dependency.- Specified by:
linkAccessControl
in interfaceHttpSecuritySupportingManagedObject<O extends java.lang.Enum<O>>
- Parameters:
dependency
- Dependency key.
-
linkHttpAccessControl
public void linkHttpAccessControl(O dependency)
Description copied from interface:HttpSecuritySupportingManagedObject
Links theHttpAccessControl
for the dependency.- Specified by:
linkHttpAccessControl
in interfaceHttpSecuritySupportingManagedObject<O extends java.lang.Enum<O>>
- Parameters:
dependency
- Dependency key.
-
linkSupportingManagedObject
public void linkSupportingManagedObject(O dependency, HttpSecuritySupportingManagedObject<?> supportingManagedObject)
Description copied from interface:HttpSecuritySupportingManagedObject
Links theHttpSecuritySupportingManagedObject
for the dependency.- Specified by:
linkSupportingManagedObject
in interfaceHttpSecuritySupportingManagedObject<O extends java.lang.Enum<O>>
- Parameters:
dependency
- Dependency key.supportingManagedObject
-HttpSecuritySupportingManagedObject
to link as dependency.
-
getSupportingManagedObjectName
public java.lang.String getSupportingManagedObjectName()
Description copied from interface:HttpSecuritySupportingManagedObjectType
Obtains the name of theHttpSecuritySupportingManagedObject
.- Specified by:
getSupportingManagedObjectName
in interfaceHttpSecuritySupportingManagedObjectType<O extends java.lang.Enum<O>>
- Returns:
- Name of the
HttpSecuritySupportingManagedObject
.
-
getManagedObjectSource
public ManagedObjectSource<O,?> getManagedObjectSource()
Description copied from interface:HttpSecuritySupportingManagedObjectType
Obtains theManagedObjectSource
.- Specified by:
getManagedObjectSource
in interfaceHttpSecuritySupportingManagedObjectType<O extends java.lang.Enum<O>>
- Returns:
ManagedObjectSource
.
-
getProperties
public PropertyList getProperties()
Description copied from interface:HttpSecuritySupportingManagedObjectType
Obtains thePropertyList
to configure theManagedObjectSource
.- Specified by:
getProperties
in interfaceHttpSecuritySupportingManagedObjectType<O extends java.lang.Enum<O>>
- Returns:
PropertyList
to configure theManagedObjectSource
.
-
getObjectType
public java.lang.Class<?> getObjectType()
Description copied from interface:HttpSecuritySupportingManagedObjectType
Obtains the object type for theHttpSecuritySupportingManagedObject
.- Specified by:
getObjectType
in interfaceHttpSecuritySupportingManagedObjectType<O extends java.lang.Enum<O>>
- Returns:
- Object type.
-
getManagedObjectScope
public ManagedObjectScope getManagedObjectScope()
Description copied from interface:HttpSecuritySupportingManagedObjectType
Obtains theManagedObjectScope
.- Specified by:
getManagedObjectScope
in interfaceHttpSecuritySupportingManagedObjectType<O extends java.lang.Enum<O>>
- Returns:
ManagedObjectScope
.
-
getDependencyTypes
public HttpSecuritySupportingManagedObjectDependencyType<O>[] getDependencyTypes()
Description copied from interface:HttpSecuritySupportingManagedObjectType
Obtains theHttpSecuritySupportingManagedObjectDependencyType
instances.- Specified by:
getDependencyTypes
in interfaceHttpSecuritySupportingManagedObjectType<O extends java.lang.Enum<O>>
- Returns:
HttpSecuritySupportingManagedObjectDependencyType
instances.
-
-