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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PermissionScope()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getId()
String
getPermission()
The permission or base root of a permission which can expand to a CRUD operation.SecurityScope
getScope()
int
hashCode()
boolean
isPermissionRoot()
Is this the root of a permission? If this isfalse
this is a direct mapping between a permission and a scope.void
setId(String id)
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)
String
toString()
-
-
-
Method Detail
-
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 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
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 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.
-
canEqual
protected boolean canEqual(Object other)
-
-