Uses of Class
com.atlassian.confluence.security.ContentPermission
Packages that use ContentPermission
Package
Description
This package contains handlers that know how to create change values out of
changed objects.
-
Uses of ContentPermission in com.atlassian.confluence.api.impl.service.permissions
Methods in com.atlassian.confluence.api.impl.service.permissions that return types with arguments of type ContentPermissionModifier and TypeMethodDescriptionprotected @NonNull Map<String,
Collection<ContentPermission>> ContentRestrictionServiceImpl.getMergedContentPermissions
(@NonNull ContentEntityObject ceo, @NonNull Collection<? extends ContentRestriction> givenContentRestrictions, @NonNull ContentRestrictionServiceImpl.MergeMode mergeMode) Builds a Map ofContentPermission
s mapped to their PermissionType fromgivenContentRestrictions
provided and the ones already existing onContentEntityObject
protected @NonNull Optional<ContentPermission>
ContentRestrictionServiceImpl.getPreExistingContentPermissionForGroup
(@Nullable ContentEntityObject ceo, @Nullable String permissionType, @Nullable Group group) Gets pre-existingContentPermission
(singular, optional) for theGroup
andOperationKey
(as String permissionType) specified.protected @NonNull Optional<ContentPermission>
ContentRestrictionServiceImpl.getPreExistingContentPermissionForSubject
(@Nullable ContentEntityObject ceo, @Nullable String permissionType, @Nullable Subject subject) Gets pre-existingContentPermission
(singular, optional) for theSubject
andOperationKey
(as String permissionType) specified.protected @NonNull Optional<ContentPermission>
ContentRestrictionServiceImpl.getPreExistingContentPermissionForUser
(@Nullable ContentEntityObject ceo, @Nullable String permissionType, @NonNull User user) Gets pre-existingContentPermission
(singular, optional) for theUser
andOperationKey
(as String permissionType) specified.protected @NonNull Set<ContentPermission>
ContentRestrictionServiceImpl.getPreExistingContentPermissions
(@Nullable ContentEntityObject ceo, @Nullable String permissionType) Gets Set of all the distinctContentPermission
s of the specifiedpermissionType
pre-existing on theContentEntityObject
passed.protected @NonNull Set<ContentPermission>
ContentRestrictionServiceImpl.getPreExistingContentPermissions
(@Nullable ContentEntityObject ceo, @Nullable String permissionType, @Nullable Predicate<ContentPermission> filterBy) Gets Set of all the distinctContentPermission
s of the specifiedpermissionType
pre-existing on theContentEntityObject
passed.protected @NonNull Set<ContentPermission>
ContentRestrictionServiceImpl.getPreExistingContentPermissionsForSubjectType
(@Nullable ContentEntityObject ceo, @Nullable String permissionType, @Nullable SubjectType subjectType) Gets pre-existingContentPermission
s (plural) for theSubjectType
andOperationKey
(as String permissionType) specified.Method parameters in com.atlassian.confluence.api.impl.service.permissions with type arguments of type ContentPermissionModifier and TypeMethodDescriptionprotected @NonNull Set<ContentPermission>
ContentRestrictionServiceImpl.getPreExistingContentPermissions
(@Nullable ContentEntityObject ceo, @Nullable String permissionType, @Nullable Predicate<ContentPermission> filterBy) Gets Set of all the distinctContentPermission
s of the specifiedpermissionType
pre-existing on theContentEntityObject
passed.protected @NonNull ValidationResult
ContentRestrictionServiceImpl.validateSelfAccessRetained
(@NonNull Map<String, Collection<ContentPermission>> contentPermissionByPermissionTypeMap) Validates that currently logged in user will have direct specific ContentPermission specified for self in case when providedcontentPermissionByPermissionTypeMap
will become the actual ContentPermissions. -
Uses of ContentPermission in com.atlassian.confluence.content.service.page
Methods in com.atlassian.confluence.content.service.page that return types with arguments of type ContentPermissionModifier and TypeMethodDescriptionContentPermissionProvider.getEditPermissions()
SimpleContentPermissionProvider.getEditPermissions()
ContentPermissionProvider.getViewPermissions()
SimpleContentPermissionProvider.getViewPermissions()
Method parameters in com.atlassian.confluence.content.service.page with type arguments of type ContentPermissionModifier and TypeMethodDescriptionvoid
SimpleContentPermissionProvider.setEditPermissions
(Collection<ContentPermission> editPermissions) void
SimpleContentPermissionProvider.setViewPermissions
(Collection<ContentPermission> viewPermissions) -
Uses of ContentPermission in com.atlassian.confluence.core
Methods in com.atlassian.confluence.core that return ContentPermissionModifier and TypeMethodDescriptionContentEntityObject.getContentPermission
(String permissionType) Deprecated.since 2.6 - use getContentPermissionSetMethods in com.atlassian.confluence.core that return types with arguments of type ContentPermissionModifier and TypeMethodDescriptionstatic List<ContentPermission>
ContentPermissionUtils.createContentPermissionsFromSet
(ContentPermissionSet contentPermissionSet) ContentPermissionManager.getInheritedContentUserPermissions
(ContentEntityObject contentEntityObject) DefaultContentPermissionManager.getInheritedContentUserPermissions
(ContentEntityObject contentEntityObject) Filters the inherited content permission sets of a page for a list of inherited user permissions (of typeVIEW_PERMISSION
)ContentEntityObject.getPermissions()
Deprecated.since 2.6 - useContentEntityObject.getContentPermissionSet(String)
ContentPermissionManager.getViewContentPermissions
(Page page) Deprecated.since 5.8.DefaultContentPermissionManager.getViewContentPermissions
(Page page) Deprecated.since 5.8.Methods in com.atlassian.confluence.core with parameters of type ContentPermissionModifier and TypeMethodDescriptionvoid
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) Method parameters in com.atlassian.confluence.core with type arguments of type ContentPermissionModifier and TypeMethodDescriptionvoid
ContentPermissionManager.setContentPermissions
(@NonNull Map<String, Collection<ContentPermission>> requiredPermissionsMap, ContentEntityObject content) Set the Content Permissions on the CEO to be the list ofContentPermission
s passed.void
ContentPermissionManager.setContentPermissions
(Collection<ContentPermission> contentPermissions, ContentEntityObject content, String type) Set the Content Permissions on the CEO to be the list ofContentPermission
s passed.void
DefaultContentPermissionManager.setContentPermissions
(@NonNull Map<String, Collection<ContentPermission>> requiredPermissionsMap, ContentEntityObject content) void
DefaultContentPermissionManager.setContentPermissions
(Collection<ContentPermission> requiredPermissions, ContentEntityObject content, String type) -
Uses of ContentPermission in com.atlassian.confluence.core.persistence
Methods in com.atlassian.confluence.core.persistence that return ContentPermissionMethods in com.atlassian.confluence.core.persistence that return types with arguments of type ContentPermissionModifier and TypeMethodDescriptionContentPermissionDao.getGroupPermissions
(String groupName) ContentPermissionDao.getUserPermissions
(ConfluenceUser user) Methods in com.atlassian.confluence.core.persistence with parameters of type ContentPermissionModifier and TypeMethodDescriptionvoid
ContentPermissionDao.remove
(ContentPermission contentPermission) void
ContentPermissionDao.save
(ContentPermission contentPermission) -
Uses of ContentPermission in com.atlassian.confluence.core.persistence.hibernate
Methods in com.atlassian.confluence.core.persistence.hibernate that return ContentPermissionMethods in com.atlassian.confluence.core.persistence.hibernate that return types with arguments of type ContentPermissionModifier and TypeMethodDescriptionContentPermissionHibernateDao.getGroupPermissions
(String groupName) ContentPermissionHibernateDao.getUserPermissions
(ConfluenceUser user) Methods in com.atlassian.confluence.core.persistence.hibernate with parameters of type ContentPermissionModifier and TypeMethodDescriptionvoid
ContentPermissionHibernateDao.remove
(ContentPermission contentPermission) -
Uses of ContentPermission in com.atlassian.confluence.event.events.internal.security
Methods in com.atlassian.confluence.event.events.internal.security that return ContentPermissionModifier and TypeMethodDescriptionContentPermissionAddedEvent.getPermission()
ContentPermissionRemovedEvent.getPermission()
Constructors in com.atlassian.confluence.event.events.internal.security with parameters of type ContentPermissionModifierConstructorDescriptionContentPermissionAddedEvent
(ContentEntityObject content, ContentPermission permission) ContentPermissionRemovedEvent
(ContentEntityObject content, ContentPermission permission) -
Uses of ContentPermission in com.atlassian.confluence.event.events.security
Methods in com.atlassian.confluence.event.events.security that return ContentPermissionModifier and TypeMethodDescription@Nullable ContentPermission
ContentPermissionEvent.getContentPermission()
Constructors in com.atlassian.confluence.event.events.security with parameters of type ContentPermissionModifierConstructorDescriptionContentPermissionEvent
(Object src, ContentEntityObject content, @Nullable ContentPermission contentPermission) ContentPermissionEvent
(Object src, ContentEntityObject content, @Nullable ContentPermission contentPermission, boolean reindexNeeded) -
Uses of ContentPermission in com.atlassian.confluence.impl.audit.handler
Methods in com.atlassian.confluence.impl.audit.handler that return types with arguments of type ContentPermissionModifier and TypeMethodDescriptioncom.atlassian.confluence.impl.audit.handler.DefaultAuditHandler<ContentPermission>
AuditHandlerFactory.createContentPermissionHandler
(com.atlassian.confluence.impl.audit.handler.AuditHandler<com.atlassian.user.User> userAuditHandler) -
Uses of ContentPermission in com.atlassian.confluence.impl.search.v2.lucene
Methods in com.atlassian.confluence.impl.search.v2.lucene with parameters of type ContentPermissionModifier and TypeMethodDescriptionstatic String
ContentPermissionSearchUtils.getEncodedContentPermission
(ContentPermission perm) -
Uses of ContentPermission in com.atlassian.confluence.pages
Methods in com.atlassian.confluence.pages that return ContentPermissionModifier and TypeMethodDescriptionReadOnlyAttachment.getContentPermission
(String permissionType) Deprecated, for removal: This API element is subject to removal in a future version.Methods in com.atlassian.confluence.pages that return types with arguments of type ContentPermissionModifier and TypeMethodDescriptionReadOnlyAttachment.getPermissions()
Deprecated, for removal: This API element is subject to removal in a future version.Methods in com.atlassian.confluence.pages with parameters of type ContentPermissionModifier and TypeMethodDescriptionvoid
ReadOnlyAttachment.addPermission
(ContentPermission permission) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of ContentPermission in com.atlassian.confluence.pages.actions
Methods in com.atlassian.confluence.pages.actions that return ContentPermissionModifier and TypeMethodDescriptionAbstractCreateAndEditPageAction.getCurrentEditPermission()
AbstractCreateAndEditPageAction.getCurrentViewPermission()
Methods in com.atlassian.confluence.pages.actions that return types with arguments of type ContentPermissionModifier and TypeMethodDescriptionPagePermissionsActionHelper.createPermissions
(String contentPermissionType, String permissionsGroups, String permissionsUsers) Deprecated.since 7.5.0 UsePagePermissionsActionHelper.createPermissions(String, List, List)
insteadPagePermissionsActionHelper.createPermissions
(String contentPermissionType, List<String> permissionsGroupList, List<String> permissionsUserList) Returns the viewContentPermission
s of the required type for this helper instance, adding the helper User if they don't have view permission via the list.ViewPageAction.getInheritedContentPermissions()
ListPermissionPagesAction.getPermissions
(Page page) ViewPageAction.getThisPagePermissions()
Method parameters in com.atlassian.confluence.pages.actions with type arguments of type ContentPermissionModifier and TypeMethodDescriptionprotected void
AbstractCreateAndEditPageAction.setPermissions
(List<ContentPermission> permissions) -
Uses of ContentPermission in com.atlassian.confluence.rpc.soap.beans
Constructors in com.atlassian.confluence.rpc.soap.beans with parameters of type ContentPermissionModifierConstructorDescriptionRemoteContentPermission
(ContentPermission contentPermission) RemotePermission
(ContentPermission permission) Deprecated. -
Uses of ContentPermission in com.atlassian.confluence.security
Subclasses of ContentPermission in com.atlassian.confluence.securityMethods in com.atlassian.confluence.security that return ContentPermissionModifier and TypeMethodDescriptionstatic ContentPermission
ContentPermission.createGroupPermission
(String type, String groupName) static ContentPermission
ContentPermission.createUserPermission
(String type, ConfluenceUser user) static ContentPermission
ContentPermission.createUserPermission
(String type, String userName) Deprecated.since 5.2.Methods in com.atlassian.confluence.security that return types with arguments of type ContentPermissionModifier and TypeMethodDescriptionContentPermissionSet.contentPermissionsCopy()
Retrieve a copy of the content permissions.ContentPermissionSet.getAllExcept
(Collection<ContentPermission> exclusions) Retrieve all theContentPermission
s in this set that do not exist in the given collection.com.google.common.collect.ImmutableCollection<ContentPermission>
ContentPermissionSet.getContentPermissionsCopy()
Deprecated.since 7.0.1.ContentPermissionSet.iterator()
Methods in com.atlassian.confluence.security with parameters of type ContentPermissionModifier and TypeMethodDescriptionvoid
ContentPermissionSet.addContentPermission
(ContentPermission contentPermission) int
ContentPermission.compareTo
(ContentPermission that) boolean
ContentPermissionSet.contains
(ContentPermission contentPermission) boolean
ContentPermissionTester.isPermitted
(ContentPermission permission, @Nullable ConfluenceUser user) void
ContentPermissionSet.removeContentPermission
(ContentPermission contentPermission) Remove the given content permission from this set.Method parameters in com.atlassian.confluence.security with type arguments of type ContentPermissionModifier and TypeMethodDescriptionboolean
ContentPermissionTester.anyPermitted
(Iterable<ContentPermission> permissions, @Nullable ConfluenceUser user) ContentPermissionSet.getAllExcept
(Collection<ContentPermission> exclusions) Retrieve all theContentPermission
s in this set that do not exist in the given collection.Constructors in com.atlassian.confluence.security with parameters of type ContentPermission -
Uses of ContentPermission in com.atlassian.confluence.spaces
Methods in com.atlassian.confluence.spaces that return ContentPermissionModifier and TypeMethodDescriptionReadOnlySpaceDescription.getContentPermission
(String permissionType) Methods in com.atlassian.confluence.spaces that return types with arguments of type ContentPermissionMethods in com.atlassian.confluence.spaces with parameters of type ContentPermissionModifier and TypeMethodDescriptionvoid
ReadOnlySpaceDescription.addPermission
(ContentPermission permission)