Class AdminPermissionRef

java.lang.Object
com.broadleafcommerce.adminuser.resource.domain.AdminPermissionRef
All Implemented Interfaces:
Serializable

public class AdminPermissionRef extends Object implements Serializable
A DTO used by related objects to reference a permission
See Also:
  • Constructor Details

    • AdminPermissionRef

      public AdminPermissionRef()
  • Method Details

    • getAttribute

      @Nullable public Object getAttribute(String name)
      Get the value of an attribute. May return null.
      Parameters:
      name - The attribute name.
      Returns:
      The attribute value if it exists, or null.
    • addAttribute

      public void addAttribute(String name, Object value)
      Add an attribute to the attributes map.
      Parameters:
      name - The attribute key.
      value - The attribute value.
    • getId

      public String getId()
      The ID of this permission as it exists in the system where roles are stored (default storage is Auth)
    • getName

      public String getName()
      The name of this permission. Must be hydrated.
    • getTenantId

      public String getTenantId()
      The tenant ID of this permission. TODO This currently appears to have no effect. Other than direct DB inserts, there is no valid way to set this value.
    • getAttributes

      public Map<String,Object> getAttributes()
      Contains any additional properties of a permission that do not fit in the above fields.
    • setId

      public void setId(String id)
      The ID of this permission as it exists in the system where roles are stored (default storage is Auth)
    • setName

      public void setName(String name)
      The name of this permission. Must be hydrated.
    • setTenantId

      public void setTenantId(String tenantId)
      The tenant ID of this permission. TODO This currently appears to have no effect. Other than direct DB inserts, there is no valid way to set this value.
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Contains any additional properties of a permission that do not fit in the above fields.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object