Class AdminPermissionRef
java.lang.Object
com.broadleafcommerce.adminuser.resource.domain.AdminPermissionRef
- All Implemented Interfaces:
Serializable
A DTO used by related objects to reference a permission
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String name, Object value) Add an attribute to the attributes map.protected boolean
boolean
getAttribute
(String name) Get the value of an attribute.Contains any additional properties of a permission that do not fit in the above fields.getId()
The ID of this permission as it exists in the system where roles are stored (default storage is Auth)getName()
The name of this permission.The tenant ID of this permission.int
hashCode()
void
setAttributes
(Map<String, Object> attributes) Contains any additional properties of a permission that do not fit in the above fields.void
The ID of this permission as it exists in the system where roles are stored (default storage is Auth)void
The name of this permission.void
setTenantId
(String tenantId) The tenant ID of this permission.toString()
-
Constructor Details
-
AdminPermissionRef
public AdminPermissionRef()
-
-
Method Details
-
getAttribute
Get the value of an attribute. May return null.- Parameters:
name
- The attribute name.- Returns:
- The attribute value if it exists, or null.
-
addAttribute
Add an attribute to the attributes map.- Parameters:
name
- The attribute key.value
- The attribute value.
-
getId
The ID of this permission as it exists in the system where roles are stored (default storage is Auth) -
getName
The name of this permission. Must be hydrated. -
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
Contains any additional properties of a permission that do not fit in the above fields. -
setId
The ID of this permission as it exists in the system where roles are stored (default storage is Auth) -
setName
The name of this permission. Must be hydrated. -
setTenantId
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
Contains any additional properties of a permission that do not fit in the above fields. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-