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
-
Field Summary
Fields inherited from class org.craftercms.commons.security.permissions.ProtectedResourceBase
permissions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the default value for all attributes.Returns the additional metadata associated to an attribute (like label, type, etc.).getName()Returns the name of the attribute.inthashCode()voidsetDefaultValue(Object defaultValue) Sets the default value of all attributes.voidsetMetadata(Map<String, Object> metadata) Sets the additional metadata associated to an attribute (like label, type, etc.).voidSets the attribute name.toString()Methods inherited from class org.craftercms.commons.security.permissions.ProtectedResourceBase
addPermission, getPermissions, removePermission, setPermissions
-
Constructor Details
-
AttributeDefinition
public AttributeDefinition() -
AttributeDefinition
-
-
Method Details
-
getName
Returns the name of the attribute. -
setName
Sets the attribute name. -
getMetadata
Returns the additional metadata associated to an attribute (like label, type, etc.). -
setMetadata
Sets the additional metadata associated to an attribute (like label, type, etc.). -
getDefaultValue
Returns the default value for all attributes. -
setDefaultValue
Sets the default value of all attributes. -
equals
-
hashCode
public int hashCode() -
toString
-