@Service(value="topicPermissionManagement") @Transactional(readOnly=true) public class TopicPermissionManagementImpl extends BasePermissionManagement<Blog,CreationBlogTO,BlogAccessException> implements TopicPermissionManagement
PERMISSION_CREATE_TOPIC, PERMISSION_DELETE_TOPIC, PERMISSION_EDIT_ACCESS_CONTROL_LIST, PERMISSION_EDIT_DETAILS, PERMISSION_INVITE_USER, PERMISSION_VIEW_TOPIC_DETAILS
Constructor and Description |
---|
TopicPermissionManagementImpl() |
Modifier and Type | Method and Description |
---|---|
protected BlogAccessException |
createPermissonViolationException(Blog entity,
Permission<Blog> permission)
Create an exception that should be thrown when the current user does not have a required
permission
|
protected Blog |
getEntity(Long entityId)
Returns the entity for the given id.
|
void |
init()
Initializer.
|
addPermissionFilter, getFilters, getPermissions, getPermissions, getPermissionsForCreation, hasAndGetWithPermission, hasPermission, hasPermission, hasPermissionForCreation, removePermissionFilter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPermissionFilter, getPermissions, getPermissions, getPermissionsForCreation, hasAndGetWithPermission, hasPermission, hasPermission, hasPermissionForCreation, removePermissionFilter
protected BlogAccessException createPermissonViolationException(Blog entity, Permission<Blog> permission)
BasePermissionManagement
createPermissonViolationException
in class BasePermissionManagement<Blog,CreationBlogTO,BlogAccessException>
entity
- the entity for which a permission was required, never nullpermission
- the permission the current user does not haveprotected Blog getEntity(Long entityId)
getEntity
in class BasePermissionManagement<Blog,CreationBlogTO,BlogAccessException>
entityId
- ID of the entity@PostConstruct public void init()
Copyright © 2019 Communote team. All rights reserved.