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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getId()
The permission or base root of a permission which can expand to a CRUD operation.getScope()
int
hashCode()
boolean
Is this the root of a permission? If this isfalse
this is a direct mapping between a permission and a scope.void
void
setPermission
(String permission) The permission or base root of a permission which can expand to a CRUD operation.void
setPermissionRoot
(boolean permissionRoot) Is this the root of a permission? If this isfalse
this is a direct mapping between a permission and a scope.void
setScope
(SecurityScope scope) toString()
-
Constructor Details
-
PermissionScope
public PermissionScope()
-
-
Method Details
-
getId
-
getScope
-
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 settingpermissionRoot
totrue
.- See Also:
-
PermissionType
permissionRoot
-
isPermissionRoot
public boolean isPermissionRoot()Is this the root of a permission? If this isfalse
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
-
setScope
-
setPermission
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 settingpermissionRoot
totrue
.- See Also:
-
PermissionType
permissionRoot
-
setPermissionRoot
public void setPermissionRoot(boolean permissionRoot) Is this the root of a permission? If this isfalse
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
-
equals
-
canEqual
-
hashCode
public int hashCode()
-