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 Details

    • AttributeDefinition

      public AttributeDefinition()
    • AttributeDefinition

      public AttributeDefinition(String name)
  • Method Details

    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object