| Package | Description |
|---|---|
| de.terrestris.shoguncore.model.security | |
| de.terrestris.shoguncore.security.access.entity | |
| de.terrestris.shoguncore.service |
| Modifier and Type | Method and Description |
|---|---|
static Permission |
Permission.fromString(String inputValue) |
static Permission |
Permission.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Permission[] |
Permission.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Permission> |
PermissionCollection.getPermissions() |
| Modifier and Type | Method and Description |
|---|---|
void |
PermissionCollection.setPermissions(Set<Permission> permissions) |
| Constructor and Description |
|---|
PermissionCollection(Set<Permission> permissions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
PersistentObjectPermissionEvaluator.hasPermission(User user,
E entity,
Permission permission) |
boolean |
UserGroupPermissionEvaluator.hasPermission(User user,
E userGroup,
Permission permission)
Grants READ permission on groups where the user is a member.
|
boolean |
AlwaysAllowReadPermissionEvaluator.hasPermission(User user,
E entity,
Permission permission)
Grants READ permission on the user object of the currently logged in
user.
|
boolean |
PermissionCollectionPermissionEvaluator.hasPermission(User user,
E permissionCollection,
Permission permission)
Always grants every permission on permission collections.
|
boolean |
UserPermissionEvaluator.hasPermission(User user,
E entity,
Permission permission)
Grants READ permission on the user object of the currently logged in
user.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PermissionAwareCrudService.addAndSaveGroupPermissions(E entity,
UserGroup userGroup,
Permission... permissions)
This method adds (user) permissions to the passed entity and persists (!)
the permission collection!
If no permissions have been set before, they will be created.
|
void |
PermissionAwareCrudService.addAndSaveUserPermissions(E entity,
User user,
Permission... permissions)
This method adds (user) permissions to the passed entity and persists (!)
the permission collection!
If no permissions have been set before, they will be created.
|
void |
PermissionAwareCrudService.removeAndSaveGroupPermissions(E entity,
UserGroup userGroup,
Permission... permissions)
This method removes (group) permissions from the passed entity and persists (!)
the permission collection!
|
void |
PermissionAwareCrudService.removeAndSaveUserPermissions(E entity,
User user,
Permission... permissions)
This method removes (user) permissions from the passed entity and persists (!)
the permission collection!
|
Copyright © 2020 terrestris GmbH & Co. KG. All rights reserved.