Class HttpSecurityDependencyTypeImpl<O extends java.lang.Enum<O>>
- java.lang.Object
-
- net.officefloor.web.security.type.HttpSecurityDependencyTypeImpl<O>
-
- All Implemented Interfaces:
HttpSecurityDependencyType<O>
public class HttpSecurityDependencyTypeImpl<O extends java.lang.Enum<O>> extends java.lang.Object implements HttpSecurityDependencyType<O>
HttpSecurityDependencyType
adapted from theManagedObjectDependencyType
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description HttpSecurityDependencyTypeImpl(ManagedObjectDependencyType<O> dependency)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDependencyName()
Obtains the name of the dependency.java.lang.Class<?>
getDependencyType()
Obtains theClass
that the dependent object must extend/implement.int
getIndex()
Obtains the index identifying the dependency.O
getKey()
Obtains the key identifying the dependency.java.lang.String
getTypeQualifier()
Obtains the qualifier on the type.
-
-
-
Constructor Detail
-
HttpSecurityDependencyTypeImpl
public HttpSecurityDependencyTypeImpl(ManagedObjectDependencyType<O> dependency)
Initiate.- Parameters:
dependency
-ManagedObjectDependencyType
.
-
-
Method Detail
-
getDependencyName
public java.lang.String getDependencyName()
Description copied from interface:HttpSecurityDependencyType
Obtains the name of the dependency.- Specified by:
getDependencyName
in interfaceHttpSecurityDependencyType<O extends java.lang.Enum<O>>
- Returns:
- Name of the dependency.
-
getIndex
public int getIndex()
Description copied from interface:HttpSecurityDependencyType
Obtains the index identifying the dependency.- Specified by:
getIndex
in interfaceHttpSecurityDependencyType<O extends java.lang.Enum<O>>
- Returns:
- Index identifying the dependency.
-
getDependencyType
public java.lang.Class<?> getDependencyType()
Description copied from interface:HttpSecurityDependencyType
Obtains theClass
that the dependent object must extend/implement.- Specified by:
getDependencyType
in interfaceHttpSecurityDependencyType<O extends java.lang.Enum<O>>
- Returns:
- Type of the dependency.
-
getTypeQualifier
public java.lang.String getTypeQualifier()
Description copied from interface:HttpSecurityDependencyType
Obtains the qualifier on the type.
This is to enable qualifying the type of dependency required.
- Specified by:
getTypeQualifier
in interfaceHttpSecurityDependencyType<O extends java.lang.Enum<O>>
- Returns:
- Qualifier on the type. May be
null
if not qualifying the type.
-
getKey
public O getKey()
Description copied from interface:HttpSecurityDependencyType
Obtains the key identifying the dependency.- Specified by:
getKey
in interfaceHttpSecurityDependencyType<O extends java.lang.Enum<O>>
- Returns:
- Key identifying the dependency.
-
-