Class AdminRole
- All Implemented Interfaces:
Serializable
AdminUser
can have. The AdminPermissions
assigned to this role (and its ancestors) are granted to any AdminUser
with this role.
This domain is synchronized to the authentication service through messaging on each persistence event.
- Author:
- Samarth Dhruva (samarthd)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Deprecated.boolean
Deprecated.Deprecated.Used to expose this entity's mutability in a request context.getId()
Deprecated.The unique identifier for this role.getName()
Deprecated.The name for this role.Deprecated.The id of the parent of this role (if any).Deprecated.The permissions directly assigned to this role.Deprecated.The id of the tenant this role is assigned to.int
hashCode()
Deprecated.void
setContextState
(MutabilityContextState contextState) Deprecated.Used to expose this entity's mutability in a request context.void
Deprecated.The unique identifier for this role.void
Deprecated.The name for this role.void
setParentRoleId
(String parentRoleId) Deprecated.The id of the parent of this role (if any).void
setPermissions
(Set<AdminPermissionRef> permissions) Deprecated.The permissions directly assigned to this role.void
setTenantId
(String tenantId) Deprecated.The id of the tenant this role is assigned to.toRef()
Deprecated.toString()
Deprecated.
-
Constructor Details
-
AdminRole
public AdminRole()Deprecated.
-
-
Method Details
-
toRef
Deprecated. -
getId
Deprecated.The unique identifier for this role. -
getName
Deprecated.The name for this role. This has no purpose other than labeling.This value should not be relied on as a unique identifier, but we do validate against duplicate names within the role's context.
- See Also:
-
getPermissions
Deprecated.The permissions directly assigned to this role. This is in addition to any permissions inherited from this role'sancestors
.Global roles can only have global permissions, while tenant roles can have permissions from global or the same tenant.
- See Also:
-
getParentRoleId
Deprecated.The id of the parent of this role (if any).This role will effectively inherit all of the
permissions
of its parent and any ancestors further up in the hierarchy.Global roles can only have global parents, while tenant roles can have parents from global or the same tenant.
Furthermore, there is validation in place to prevent cycles from being created in a role's ancestry (role cannot become a parent of itself).
-
getTenantId
Deprecated.The id of the tenant this role is assigned to.This is used to perform manual tenant discrimination - we do this because we require different behavior than what a
Trackable
implementation would provide. -
getContextState
Deprecated.Used to expose this entity's mutability in a request context.For example, can be used to hint to the admin application to show this entity as read-only.
- See Also:
-
setId
Deprecated.The unique identifier for this role. -
setName
Deprecated.The name for this role. This has no purpose other than labeling.This value should not be relied on as a unique identifier, but we do validate against duplicate names within the role's context.
- See Also:
-
setPermissions
Deprecated.The permissions directly assigned to this role. This is in addition to any permissions inherited from this role'sancestors
.Global roles can only have global permissions, while tenant roles can have permissions from global or the same tenant.
- See Also:
-
setParentRoleId
Deprecated.The id of the parent of this role (if any).This role will effectively inherit all of the
permissions
of its parent and any ancestors further up in the hierarchy.Global roles can only have global parents, while tenant roles can have parents from global or the same tenant.
Furthermore, there is validation in place to prevent cycles from being created in a role's ancestry (role cannot become a parent of itself).
-
setTenantId
Deprecated.The id of the tenant this role is assigned to.This is used to perform manual tenant discrimination - we do this because we require different behavior than what a
Trackable
implementation would provide. -
setContextState
Deprecated.Used to expose this entity's mutability in a request context.For example, can be used to hint to the admin application to show this entity as read-only.
- See Also:
-
toString
Deprecated. -
equals
Deprecated. -
canEqual
Deprecated. -
hashCode
public int hashCode()Deprecated.
-