Class AttributeDefinition


  • public class AttributeDefinition
    extends org.craftercms.commons.security.permissions.ProtectedResourceBase<AttributePermission>
    Represents the definition of an attribute in a tenant.
    Author:
    avasquez
    • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object