Class PermissionScope

    • Constructor Detail

      • PermissionScope

        public PermissionScope()
    • Method Detail

      • getId

        public String getId()
      • 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:
        PermissionType, permissionRoot
      • 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)
      • 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:
        PermissionType, permissionRoot
      • 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.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object