Class AdminPermission

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

@Deprecated public class AdminPermission extends Object implements Serializable
Deprecated.
since 1.7.0. Permissions are managed in Auth.
Represents a permission that an AdminUser can be assigned, either directly or through an AdminRole.

This domain is synchronized to the authentication service through messaging on each persistence event.

Author:
Samarth Dhruva (samarthd)
See Also:
  • Constructor Details

    • AdminPermission

      public AdminPermission()
      Deprecated.
  • Method Details

    • toRef

      public AdminPermissionRef toRef()
      Deprecated.
    • getId

      public String getId()
      Deprecated.
      The unique identifier for this permission.
    • getName

      public String getName()
      Deprecated.
      The name for this permission.

      This value should not be relied on as a unique identifier, but we do validate against duplicate names within the permission's context.

      See Also:
    • getTenantId

      @Nullable public String getTenantId()
      Deprecated.
      The id of the tenant this permission is associated with.

      This is used to perform manual tenant discrimination - we do this because we require different behavior than what a Trackable implementation would provide.

    • getContextState

      @Nullable public MutabilityContextState 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

      public void setId(String id)
      Deprecated.
      The unique identifier for this permission.
    • setName

      public void setName(String name)
      Deprecated.
      The name for this permission.

      This value should not be relied on as a unique identifier, but we do validate against duplicate names within the permission's context.

      See Also:
    • setTenantId

      public void setTenantId(@Nullable String tenantId)
      Deprecated.
      The id of the tenant this permission is associated with.

      This is used to perform manual tenant discrimination - we do this because we require different behavior than what a Trackable implementation would provide.

    • setContextState

      public void setContextState(@Nullable MutabilityContextState contextState)
      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

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

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

      protected boolean canEqual(Object other)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object