Modifier and Type | Method and Description |
---|---|
protected Map<String,Collection<ContentPermission>> |
ContentRestrictionServiceImpl.getMergedContentPermissions(ContentEntityObject ceo,
Collection<? extends ContentRestriction> givenContentRestrictions,
ContentRestrictionServiceImpl.MergeMode mergeMode)
Builds a Map of
ContentPermission s mapped to their PermissionType from givenContentRestrictions provided and the ones already existing on ContentEntityObject |
protected Optional<ContentPermission> |
ContentRestrictionServiceImpl.getPreExistingContentPermissionForGroup(ContentEntityObject ceo,
String permissionType,
Group group)
Gets pre-existing
ContentPermission (singular, optional) for the Group and OperationKey (as String permissionType) specified. |
protected Optional<ContentPermission> |
ContentRestrictionServiceImpl.getPreExistingContentPermissionForSubject(ContentEntityObject ceo,
String permissionType,
Subject subject)
Gets pre-existing
ContentPermission (singular, optional) for the Subject and OperationKey (as String permissionType) specified. |
protected Optional<ContentPermission> |
ContentRestrictionServiceImpl.getPreExistingContentPermissionForUser(ContentEntityObject ceo,
String permissionType,
User user)
Gets pre-existing
ContentPermission (singular, optional) for the User and OperationKey (as String permissionType) specified. |
protected Set<ContentPermission> |
ContentRestrictionServiceImpl.getPreExistingContentPermissions(ContentEntityObject ceo,
String permissionType)
Gets Set of all the distinct
ContentPermission s of the specified permissionType
pre-existing on the ContentEntityObject passed. |
protected Set<ContentPermission> |
ContentRestrictionServiceImpl.getPreExistingContentPermissions(ContentEntityObject ceo,
String permissionType,
Predicate<ContentPermission> filterBy)
Gets Set of all the distinct
ContentPermission s of the specified permissionType
pre-existing on the ContentEntityObject passed. |
protected Set<ContentPermission> |
ContentRestrictionServiceImpl.getPreExistingContentPermissionsForSubjectType(ContentEntityObject ceo,
String permissionType,
SubjectType subjectType)
Gets pre-existing
ContentPermission s (plural) for the SubjectType and OperationKey (as String permissionType) specified. |
Modifier and Type | Method and Description |
---|---|
protected Set<ContentPermission> |
ContentRestrictionServiceImpl.getPreExistingContentPermissions(ContentEntityObject ceo,
String permissionType,
Predicate<ContentPermission> filterBy)
Gets Set of all the distinct
ContentPermission s of the specified permissionType
pre-existing on the ContentEntityObject passed. |
protected ValidationResult |
ContentRestrictionServiceImpl.validateSelfAccessRetained(Map<String,Collection<ContentPermission>> contentPermissionByPermissionTypeMap)
Validates that currently logged in user will have direct specific ContentPermission specified for self
in case when provided
contentPermissionByPermissionTypeMap will become the actual ContentPermissions. |
Modifier and Type | Method and Description |
---|---|
Collection<ContentPermission> |
ContentPermissionProvider.getEditPermissions() |
Collection<ContentPermission> |
SimpleContentPermissionProvider.getEditPermissions() |
Collection<ContentPermission> |
ContentPermissionProvider.getViewPermissions() |
Collection<ContentPermission> |
SimpleContentPermissionProvider.getViewPermissions() |
Modifier and Type | Method and Description |
---|---|
void |
SimpleContentPermissionProvider.setEditPermissions(Collection<ContentPermission> editPermissions) |
void |
SimpleContentPermissionProvider.setViewPermissions(Collection<ContentPermission> viewPermissions) |
Modifier and Type | Method and Description |
---|---|
ContentPermission |
ContentEntityObject.getContentPermission(String permissionType)
Deprecated.
since 2.6 - use getContentPermissionSet
|
Modifier and Type | Method and Description |
---|---|
void |
ContentPermissionManager.addContentPermission(ContentPermission permission,
ContentEntityObject content)
Add permissions to the content entity objecct through the manager.
|
void |
DefaultContentPermissionManager.addContentPermission(ContentPermission permission,
ContentEntityObject content)
Adds a new current content permission to the CEO if it doesn't have it
already.
|
void |
ContentEntityObject.addPermission(ContentPermission permission)
Adds a ContentPermission.
|
void |
ContentPermissionManager.removeContentPermission(ContentPermission permission) |
void |
DefaultContentPermissionManager.removeContentPermission(ContentPermission contentPermission) |
Modifier and Type | Method and Description |
---|---|
void |
ContentPermissionManager.setContentPermissions(Collection<ContentPermission> contentPermissions,
ContentEntityObject content,
String type)
Set the Content Permissions on the CEO to be the list of
ContentPermission s passed. |
void |
DefaultContentPermissionManager.setContentPermissions(Collection<ContentPermission> requiredPermissions,
ContentEntityObject content,
String type) |
void |
ContentPermissionManager.setContentPermissions(Map<String,Collection<ContentPermission>> requiredPermissionsMap,
ContentEntityObject content)
Set the Content Permissions on the CEO to be the list of
ContentPermission s passed. |
void |
DefaultContentPermissionManager.setContentPermissions(Map<String,Collection<ContentPermission>> requiredPermissionsMap,
ContentEntityObject content) |
Modifier and Type | Method and Description |
---|---|
ContentPermission |
ContentPermissionDao.getById(long id) |
Modifier and Type | Method and Description |
---|---|
List<ContentPermission> |
ContentPermissionDao.getGroupPermissions(String groupName) |
List<ContentPermission> |
ContentPermissionDao.getUserPermissions(ConfluenceUser user) |
List<ContentPermission> |
ContentPermissionDao.getUserPermissions(String userName)
Deprecated.
since 5.3. Use
ContentPermissionDao.getUserPermissions(com.atlassian.confluence.user.ConfluenceUser) instead. |
Modifier and Type | Method and Description |
---|---|
ContentPermission |
ContentPermissionHibernateDao.getById(long id) |
Modifier and Type | Method and Description |
---|---|
List<ContentPermission> |
ContentPermissionHibernateDao.getGroupPermissions(String groupName) |
List<ContentPermission> |
ContentPermissionHibernateDao.getUserPermissions(ConfluenceUser user) |
List<ContentPermission> |
ContentPermissionHibernateDao.getUserPermissions(String userName)
Deprecated.
since 5.3. Use
ContentPermissionHibernateDao.getUserPermissions(com.atlassian.confluence.user.ConfluenceUser) instead. |
Modifier and Type | Method and Description |
---|---|
ContentPermission |
ContentPermissionEvent.getContentPermission() |
Constructor and Description |
---|
ContentPermissionEvent(Object src,
ContentEntityObject content,
ContentPermission contentPermission) |
ContentPermissionEvent(Object src,
ContentEntityObject content,
ContentPermission contentPermission,
boolean reindexNeeded) |
Modifier and Type | Method and Description |
---|---|
ContentPermission |
AbstractCreateAndEditPageAction.getCurrentEditPermission() |
ContentPermission |
AbstractCreateAndEditPageAction.getCurrentViewPermission() |
Modifier and Type | Method and Description |
---|---|
List<ContentPermission> |
PagePermissionsActionHelper.createPermissions(String contentPermissionType,
String permissionsGroups,
String permissionsUsers)
Returns the view
ContentPermission s of the required type for this helper instance, adding the helper User
if they don't have view permission via the list. |
List<ContentPermission> |
ViewPageAction.getInheritedContentPermissions() |
List<ContentPermission> |
ListPermissionPagesAction.getPermissions(Page page) |
List<ContentPermission> |
ViewPageAction.getThisPagePermissions() |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractCreateAndEditPageAction.setPermissions(List<ContentPermission> permissions) |
Constructor and Description |
---|
RemoteContentPermission(ContentPermission contentPermission) |
RemotePermission(ContentPermission permission)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
NeverPermittedContentPermission |
Modifier and Type | Method and Description |
---|---|
static ContentPermission |
ContentPermission.createGroupPermission(String type,
String groupName) |
static ContentPermission |
ContentPermission.createUserPermission(String type,
ConfluenceUser user) |
static ContentPermission |
ContentPermission.createUserPermission(String type,
String userName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Collection<ContentPermission> |
ContentPermissionSet.getAllExcept(Collection<ContentPermission> exclusions)
Retrieve all the
ContentPermission s in this set that do not exist in the given collection. |
com.google.common.collect.ImmutableCollection<ContentPermission> |
ContentPermissionSet.getContentPermissionsCopy()
Retrieve a copy of the content permissions.
|
Iterator<ContentPermission> |
ContentPermissionSet.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
ContentPermissionSet.addContentPermission(ContentPermission contentPermission) |
int |
ContentPermission.compareTo(ContentPermission that) |
boolean |
ContentPermissionSet.contains(ContentPermission contentPermission) |
void |
ContentPermissionSet.removeContentPermission(ContentPermission contentPermission)
Remove the given content permission from this set.
|
Modifier and Type | Method and Description |
---|---|
Collection<ContentPermission> |
ContentPermissionSet.getAllExcept(Collection<ContentPermission> exclusions)
Retrieve all the
ContentPermission s in this set that do not exist in the given collection. |
Constructor and Description |
---|
ContentPermission(ContentPermission other)
Copy constructor.
|
Copyright © 2003–2018 Atlassian. All rights reserved.