Class ProfileAttributeDescriptor
- java.lang.Object
-
- de.xima.fc.mdl.auth.authorization.ProfileAttributeDescriptor
-
- All Implemented Interfaces:
IProfileAttributeDescriptor
,Serializable
public class ProfileAttributeDescriptor extends Object implements IProfileAttributeDescriptor
Model describing a profile attribute. SeeIProfileAttributeDescriptor
for more information.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProfileAttributeDescriptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProfileAttributeDescriptor
customAttribute(String type, String name)
boolean
equals(Object obj)
String
getName()
Returns the name of the profile attribute.String
getType()
Returns the type of the profile attribute.int
hashCode()
static ProfileAttributeDescriptor
jsonPathAttribute(String name)
void
setName(String name)
void
setType(String type)
String
toString()
-
-
-
Method Detail
-
customAttribute
public static ProfileAttributeDescriptor customAttribute(String type, String name)
-
jsonPathAttribute
public static ProfileAttributeDescriptor jsonPathAttribute(String name)
-
getType
public String getType()
Description copied from interface:IProfileAttributeDescriptor
Returns the type of the profile attribute. The type of a profile attribute determines how thename
of the attribute is evaluated with a given profile. The default attribute type "JSON_PATH PROFILE_ATTRIBUTE_TYPE_JSON_PATH JSON_PATH
" for example determines that thename
of the attribute should be considered as a JSON path and evaluated as such on the profile.- Specified by:
getType
in interfaceIProfileAttributeDescriptor
- Returns:
- the type of the profile attribute. E.g.
"
JSON_PATH PROFILE_ATTRIBUTE_TYPE_JSON_PATH JSON_PATH
"
-
setType
public void setType(String type)
-
getName
public String getName()
Description copied from interface:IProfileAttributeDescriptor
Returns the name of the profile attribute. The name is used in conjunction with thetype
to describe the attribute of a profile and used to evaluate the value said property.- Specified by:
getName
in interfaceIProfileAttributeDescriptor
- Returns:
- the name of the profile attribute. E.g. "
$.path.to.attribute
" for atype
"JSON_PATH PROFILE_ATTRIBUTE_TYPE_JSON_PATH JSON_PATH
"
-
setName
public void setName(String name)
-
-