@Entity(name="BroadleafPermissionScope") public class PermissionScope extends Object implements Serializable
Constructor and Description |
---|
PermissionScope() |
Modifier and Type | Method and 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 is
false 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 is
false this is a direct mapping between a
permission and a scope. |
void |
setScope(SecurityScope scope) |
String |
toString() |
public String getId()
public SecurityScope getScope()
public String getPermission()
Note that if a permission name starts with a PermissionType
prefix, it must be
declared as a permission root by setting permissionRoot
to true
.
PermissionType
,
permissionRoot
public boolean isPermissionRoot()
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.public void setId(String id)
public void setScope(SecurityScope scope)
public void setPermission(String permission)
Note that if a permission name starts with a PermissionType
prefix, it must be
declared as a permission root by setting permissionRoot
to true
.
PermissionType
,
permissionRoot
public void setPermissionRoot(boolean permissionRoot)
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.protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.