Package org.craftercms.profile.api
Class AttributeDefinition
- java.lang.Object
-
- org.craftercms.commons.security.permissions.ProtectedResourceBase<AttributePermission>
-
- org.craftercms.profile.api.AttributeDefinition
-
public class AttributeDefinition extends org.craftercms.commons.security.permissions.ProtectedResourceBase<AttributePermission>
Represents the definition of an attribute in a tenant.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description AttributeDefinition()
AttributeDefinition(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Object
getDefaultValue()
Returns the default value for all attributes.Map<String,Object>
getMetadata()
Returns the additional metadata associated to an attribute (like label, type, etc.).String
getName()
Returns the name of the attribute.int
hashCode()
void
setDefaultValue(Object defaultValue)
Sets the default value of all attributes.void
setMetadata(Map<String,Object> metadata)
Sets the additional metadata associated to an attribute (like label, type, etc.).void
setName(String name)
Sets the attribute name.String
toString()
-
-
-
Constructor Detail
-
AttributeDefinition
public AttributeDefinition()
-
AttributeDefinition
public AttributeDefinition(String name)
-
-
Method Detail
-
getName
public String getName()
Returns the name of the attribute.
-
setName
public void setName(String name)
Sets the attribute name.
-
getMetadata
public Map<String,Object> getMetadata()
Returns the additional metadata associated to an attribute (like label, type, etc.).
-
setMetadata
public void setMetadata(Map<String,Object> metadata)
Sets the additional metadata associated to an attribute (like label, type, etc.).
-
getDefaultValue
public Object getDefaultValue()
Returns the default value for all attributes.
-
setDefaultValue
public void setDefaultValue(Object defaultValue)
Sets the default value of all attributes.
-
-