Class PermissionScope

java.lang.Object
com.broadleafcommerce.auth.security.domain.PermissionScope
All Implemented Interfaces:
Serializable

@Entity(name="BroadleafPermissionScope") public class PermissionScope extends Object implements Serializable
Author:
Jeff Fischer
See Also:
  • Constructor Details

    • PermissionScope

      public PermissionScope()
  • Method Details

    • getId

      public String getId()
    • getScope

      public SecurityScope getScope()
    • getPermission

      public String getPermission()
      The permission or base root of a permission which can expand to a CRUD operation.

      Note that if a permission name starts with a PermissionType prefix, it must be declared as a permission root by setting permissionRoot to true.

      See Also:
    • isPermissionRoot

      public boolean isPermissionRoot()
      Is this the root of a permission? If this is false this is a direct mapping between a permission and a scope. In other words, the usual CREATE_, READ_, UPDATE_, DELETE_, ALL_ prefixes do not apply to this scope/permission relationship.
    • setId

      public void setId(String id)
    • setScope

      public void setScope(SecurityScope scope)
    • setPermission

      public void setPermission(String permission)
      The permission or base root of a permission which can expand to a CRUD operation.

      Note that if a permission name starts with a PermissionType prefix, it must be declared as a permission root by setting permissionRoot to true.

      See Also:
    • setPermissionRoot

      public void setPermissionRoot(boolean permissionRoot)
      Is this the root of a permission? If this is false this is a direct mapping between a permission and a scope. In other words, the usual CREATE_, READ_, UPDATE_, DELETE_, ALL_ prefixes do not apply to this scope/permission relationship.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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