public interface PermissionService
| Modifier and Type | Method and Description |
|---|---|
Permission |
definePermission(Permission permission)
Ensures the given permission exists based on the unique name.
|
Permission |
definePermission(String name,
String description,
PermissionGroup group)
Ensures a permission with the given name and description exists.
|
Permission |
definePermission(String name,
String description,
String groupName)
Ensures a permission with the given name and description exists.
|
void |
deleteGroup(PermissionGroup group)
Delete the PermissionGroup entity.
|
void |
deletePermission(Permission permission)
Delete the Permission entity.
|
Permission |
getPermission(String name)
Get the Permission entity by name.
|
PermissionGroup |
getPermissionGroup(String name)
Get the PermissionGroup entity by name.
|
Collection<PermissionGroup> |
getPermissionGroups()
Get all defined permission groups.
|
Collection<Permission> |
getPermissions()
Get all defined permissions.
|
PermissionGroup |
saveGroup(PermissionGroup dto)
Save the PermissionGroup entity.
|
Permission |
savePermission(Permission permission)
Save the Permission entity.
|
Permission definePermission(String name, String description, PermissionGroup group)
name - Unique name of the permission.description - Description of the permission.group - Group for the permission.Permission definePermission(String name, String description, String groupName)
name - Unique name of the permission.description - Description of the permission.groupName - Name of the permission group the permission should be linked to.Permission definePermission(Permission permission)
permission - Permission entity that should exist.Collection<PermissionGroup> getPermissionGroups()
PermissionGroup getPermissionGroup(String name)
name - Unique name of the permission group.PermissionGroup saveGroup(PermissionGroup dto)
dto - Entity to save.void deleteGroup(PermissionGroup group)
group - Entity to delete.Collection<Permission> getPermissions()
Permission getPermission(String name)
name - Unique name of the permission.Permission savePermission(Permission permission)
permission - Entity to save.void deletePermission(Permission permission)
permission - Entity to delete.Copyright © 2020. All rights reserved.