Modifier and Type | Method and Description |
---|---|
void |
ActivityNotePermissionFilter.filter(Note entity,
Set<Permission<Note>> permissions) |
void |
ActivityNotePermissionFilter.filterForCreation(NoteStoringTO entity,
Set<Permission<Note>> permissions)
Filters the given permissions for the given entity/TO.
|
Modifier and Type | Field and Description |
---|---|
static Permission<Blog> |
TopicPermissionManagement.PERMISSION_CREATE_TOPIC
If set, the user is allowed to create topics
|
static Permission<Blog> |
TopicPermissionManagement.PERMISSION_DELETE_TOPIC
If set, the user is allowed to delete the topic.
|
static Permission<Blog> |
TopicPermissionManagement.PERMISSION_EDIT_ACCESS_CONTROL_LIST
If set, the user is allowed to edit the users access list of the topic.
|
static Permission<Blog> |
TopicPermissionManagement.PERMISSION_EDIT_DETAILS
If set, the user is allowed to edit the topics details, like tags, description, etc..
|
static Permission<Blog> |
TopicPermissionManagement.PERMISSION_INVITE_USER
If set, the user is allowed to invite other users to the topic.
|
static Permission<Blog> |
TopicPermissionManagement.PERMISSION_VIEW_TOPIC_DETAILS
If set, the user is allowed to view the topic's details, like tags, description etc..
|
Modifier and Type | Method and Description |
---|---|
Permission<Blog> |
BlogAccessException.getPermission() |
Modifier and Type | Method and Description |
---|---|
void |
BlogAccessException.setPermission(Permission<Blog> permission) |
Constructor and Description |
---|
BlogAccessException(String message,
long blogId,
Permission<Blog> permission)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
static Permission<Note> |
NotePermissionManagement.PERMISSION_COMMENT
If set, the user is allowed to comment on the note.
|
static Permission<Note> |
NotePermissionManagement.PERMISSION_DELETE
If set, the user is allowed to delete the note.
|
static Permission<Note> |
NotePermissionManagement.PERMISSION_EDIT
If set, the user is allowed to edit the note.
|
static Permission<Note> |
NotePermissionManagement.PERMISSION_FAVOR
If set, the user is allowed to favor the note.
|
static Permission<Note> |
NotePermissionManagement.PERMISSION_LIKE
If set, the user is allowed to like the note.
|
static Permission<Note> |
NotePermissionManagement.PERMISSION_MOVE
If set, the user is allowed to move the note (whole discussion).
|
static Permission<Note> |
NotePermissionManagement.PERMISSION_READ
If set, the user is allowed to read the note.
|
static Permission<Note> |
NotePermissionManagement.PERMISSION_REPOST
If set, the user is allowed to repost the note.
|
Modifier and Type | Method and Description |
---|---|
Set<Permission<Note>> |
NoteData.getPermissions() |
Modifier and Type | Method and Description |
---|---|
boolean |
NoteData.hasPermission(Permission<Note> permission)
Checks, if the note has the given permission.
|
Modifier and Type | Method and Description |
---|---|
void |
NoteData.setPermissions(Set<Permission<Note>> permissions) |
Modifier and Type | Method and Description |
---|---|
Set<Permission<T>> |
PermissionManagement.getPermissions(Long entityId)
Returns a collection of permissions for the given entity.
|
Set<Permission<T>> |
BasePermissionManagement.getPermissions(Long entityId) |
Set<Permission<T>> |
PermissionManagement.getPermissions(T entity)
Returns a collection of permissions for the given entity.
|
Set<Permission<T>> |
BasePermissionManagement.getPermissions(T entity) |
Set<Permission<T>> |
PermissionManagement.getPermissionsForCreation(N entity)
Returns a collection of permissions for creation for the given entity.
|
Set<Permission<T>> |
BasePermissionManagement.getPermissionsForCreation(N entity) |
Modifier and Type | Method and Description |
---|---|
protected abstract E |
BasePermissionManagement.createPermissonViolationException(T entity,
Permission<T> permission)
Create an exception that should be thrown when the current user does not have a required
permission
|
<R> R |
PermissionManagement.hasAndGetWithPermission(long entityId,
Permission<T> permission,
Converter<T,R> converter)
Checks the permission and returns the given entity converted with the provided converter if
the current user has the requested permission.
|
<R> R |
BasePermissionManagement.hasAndGetWithPermission(long entityId,
Permission<T> permission,
Converter<T,R> converter) |
boolean |
PermissionManagement.hasPermission(long entityId,
Permission<T> permission)
Checks if the current user has the permission of the given entity.
|
boolean |
BasePermissionManagement.hasPermission(long entityId,
Permission<T> permission) |
boolean |
PermissionManagement.hasPermissionForCreation(Permission<T> permission)
Checks if the current user has the permission to to create entities of the associated type
|
boolean |
BasePermissionManagement.hasPermissionForCreation(Permission<T> permission) |
Modifier and Type | Method and Description |
---|---|
void |
PermissionFilter.filter(T entity,
Set<Permission<T>> permissions)
Filters the given permissions for the given entity.
|
void |
PermissionFilter.filterForCreation(N entity,
Set<Permission<T>> permissions)
Filters the given permissions for the given entity/TO.
|
Modifier and Type | Method and Description |
---|---|
protected BlogAccessException |
TopicPermissionManagementImpl.createPermissonViolationException(Blog entity,
Permission<Blog> permission) |
protected NoteManagementAuthorizationException |
NotePermissionManagementImpl.createPermissonViolationException(Note entity,
Permission<Note> permission) |
Modifier and Type | Method and Description |
---|---|
void |
TopicRolePermissionFilter.filter(Blog blog,
Set<Permission<Blog>> permissions)
Filters the given permissions for the given entity.
|
void |
TopicCreateOptionPermissionFilter.filter(Blog blog,
Set<Permission<Blog>> permissions)
Filters the given permissions for the given entity.
|
void |
NoteRolePermissionFilter.filter(Note note,
Set<Permission<Note>> permissions)
Filters the given permissions for the given entity.
|
void |
TopicRolePermissionFilter.filterForCreation(CreationBlogTO entity,
Set<Permission<Blog>> permissions) |
void |
TopicCreateOptionPermissionFilter.filterForCreation(CreationBlogTO entity,
Set<Permission<Blog>> permissions) |
void |
NoteRolePermissionFilter.filterForCreation(NoteStoringTO entity,
Set<Permission<Note>> permissions)
Filters the given permissions for the given entity/TO.
|
Modifier and Type | Method and Description |
---|---|
void |
NoteTemplatePermissionFilter.filter(Note entity,
Set<Permission<Note>> permissions) |
void |
NoteTemplatePermissionFilter.filterForCreation(NoteStoringTO entity,
Set<Permission<Note>> permissions)
Filters the given permissions for the given entity/TO.
|
Copyright © 2019 Communote team. All rights reserved.