@Service(value="notePermissionManagement") @Transactional(readOnly=true) public class NotePermissionManagementImpl extends BasePermissionManagement<Note,NoteStoringTO,NoteManagementAuthorizationException> implements NotePermissionManagement
PermissionManagement for Notes.PERMISSION_COMMENT, PERMISSION_DELETE, PERMISSION_EDIT, PERMISSION_FAVOR, PERMISSION_LIKE, PERMISSION_MOVE, PERMISSION_READ, PERMISSION_REPOST| Constructor and Description |
|---|
NotePermissionManagementImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected NoteManagementAuthorizationException |
createPermissonViolationException(Note entity,
Permission<Note> permission)
Create an exception that should be thrown when the current user does not have a required
permission
|
protected Note |
getEntity(Long noteId)
Returns the entity for the given id.
|
void |
init()
Initializer.
|
addPermissionFilter, getFilters, getPermissions, getPermissions, getPermissionsForCreation, hasAndGetWithPermission, hasPermission, hasPermission, hasPermissionForCreation, removePermissionFilterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPermissionFilter, getPermissions, getPermissions, getPermissionsForCreation, hasAndGetWithPermission, hasPermission, hasPermission, hasPermissionForCreation, removePermissionFilterprotected NoteManagementAuthorizationException createPermissonViolationException(Note entity, Permission<Note> permission)
BasePermissionManagementcreatePermissonViolationException in class BasePermissionManagement<Note,NoteStoringTO,NoteManagementAuthorizationException>entity - the entity for which a permission was required, never nullpermission - the permission the current user does not haveprotected Note getEntity(Long noteId)
getEntity in class BasePermissionManagement<Note,NoteStoringTO,NoteManagementAuthorizationException>noteId - ID of the entity@PostConstruct public void init()
Copyright © 2019 Communote team. All rights reserved.