Class HttpSecurityDependencyMetaDataImpl<O extends java.lang.Enum<O>>
- java.lang.Object
-
- net.officefloor.web.spi.security.impl.HttpSecurityDependencyMetaDataImpl<O>
-
- All Implemented Interfaces:
HttpSecurityDependencyMetaData<O>
public class HttpSecurityDependencyMetaDataImpl<O extends java.lang.Enum<O>> extends java.lang.Object implements HttpSecurityDependencyMetaData<O>
Implementation of theHttpSecurityDependencyMetaData
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description HttpSecurityDependencyMetaDataImpl(O key, java.lang.Class<?> type)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description O
getKey()
Obtains theEnum
key identifying this dependency.java.lang.String
getLabel()
Provides a descriptive name for this dependency.java.lang.Class<?>
getType()
Obtains theClass
that the dependent object must extend/implement.java.lang.String
getTypeQualifier()
Obtains the qualifier on the type.void
setLabel(java.lang.String label)
Specifies a label to describe the dependency.void
setTypeQualifier(java.lang.String qualifier)
Specifies the type qualifier.
-
-
-
Constructor Detail
-
HttpSecurityDependencyMetaDataImpl
public HttpSecurityDependencyMetaDataImpl(O key, java.lang.Class<?> type)
Initiate.- Parameters:
key
- Key identifying the dependency.type
- Type of dependency.
-
-
Method Detail
-
setLabel
public void setLabel(java.lang.String label)
Specifies a label to describe the dependency.- Parameters:
label
- Label to describe the dependency.
-
setTypeQualifier
public void setTypeQualifier(java.lang.String qualifier)
Specifies the type qualifier.- Parameters:
qualifier
- Type qualifier.
-
getKey
public O getKey()
Description copied from interface:HttpSecurityDependencyMetaData
Obtains theEnum
key identifying this dependency.- Specified by:
getKey
in interfaceHttpSecurityDependencyMetaData<O extends java.lang.Enum<O>>
- Returns:
Enum
key identifying the dependency.
-
getType
public java.lang.Class<?> getType()
Description copied from interface:HttpSecurityDependencyMetaData
Obtains theClass
that the dependent object must extend/implement.- Specified by:
getType
in interfaceHttpSecurityDependencyMetaData<O extends java.lang.Enum<O>>
- Returns:
- Type of the dependency.
-
getTypeQualifier
public java.lang.String getTypeQualifier()
Description copied from interface:HttpSecurityDependencyMetaData
Obtains the qualifier on the type.
This is to enable qualifying the type of dependency required.
- Specified by:
getTypeQualifier
in interfaceHttpSecurityDependencyMetaData<O extends java.lang.Enum<O>>
- Returns:
- Qualifier on the type. May be
null
if not qualifying the type.
-
getLabel
public java.lang.String getLabel()
Description copied from interface:HttpSecurityDependencyMetaData
Provides a descriptive name for this dependency. This is useful to better describe the dependency.- Specified by:
getLabel
in interfaceHttpSecurityDependencyMetaData<O extends java.lang.Enum<O>>
- Returns:
- Descriptive name for this dependency.
-
-