Uses of Class
com.atlassian.confluence.api.model.permissions.ContentRestriction
Packages that use ContentRestriction
Package
Description
Model objects for user and group permission and validation checks, for use with
OperationService
.This package contains the code which communicates with Confluence via REST API.
-
Uses of ContentRestriction in com.atlassian.confluence.api.impl.service.permissions
Methods in com.atlassian.confluence.api.impl.service.permissions that return ContentRestrictionModifier and TypeMethodDescriptionContentRestrictionFactory.buildFrom
(@NonNull ContentPermissionSet set, LimitedRequest limitedRequest, Expansions expansions) Produces aContentRestriction
from aContentPermissionSet
sContentRestrictionFactory.buildFrom
(ContentPermissionSet hibernateObject, Expansions expansions) ContentRestrictionServiceImpl.getRestrictionsForOperation
(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... allExpansions) Methods in com.atlassian.confluence.api.impl.service.permissions that return types with arguments of type ContentRestrictionModifier and TypeMethodDescriptionContentRestrictionServiceImpl.getRestrictionsGroupByOperation
(ContentId target, Expansion... allExpansions) Method parameters in com.atlassian.confluence.api.impl.service.permissions with type arguments of type ContentRestrictionModifier and TypeMethodDescriptionContentRestrictionServiceImpl.addRestrictions
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) protected @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
ContentRestrictionServiceImpl.updateRestrictions
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) DefaultContentRestrictionServiceValidator.validateAddRestrictions
(ContentId contentId, Collection<? extends ContentRestriction> contentRestrictions) DefaultContentRestrictionServiceValidator.validateUpdateRestrictions
(ContentId contentId, Collection<? extends ContentRestriction> contentRestrictions) -
Uses of ContentRestriction in com.atlassian.confluence.api.model.content
Methods in com.atlassian.confluence.api.model.content that return types with arguments of type ContentRestrictionModifier and TypeMethodDescriptionContent.getRestrictions()
Returns a Map of restrictions present on the given Content, grouped by Operation.Method parameters in com.atlassian.confluence.api.model.content with type arguments of type ContentRestrictionModifier and TypeMethodDescriptionContent.ContentBuilder.restrictions
(Map<OperationKey, ContentRestriction> restrictionsByOperationMap) -
Uses of ContentRestriction in com.atlassian.confluence.api.model.permissions
Methods in com.atlassian.confluence.api.model.permissions that return ContentRestrictionMethods in com.atlassian.confluence.api.model.permissions that return types with arguments of type ContentRestrictionMethods in com.atlassian.confluence.api.model.permissions with parameters of type ContentRestrictionConstructor parameters in com.atlassian.confluence.api.model.permissions with type arguments of type ContentRestrictionModifierConstructorDescriptionRelevantViewRestrictions
(PageResponse<ContentRestriction> viewContentRestrictions) -
Uses of ContentRestriction in com.atlassian.confluence.api.service.permissions
Methods in com.atlassian.confluence.api.service.permissions that return ContentRestrictionModifier and TypeMethodDescriptionContentRestrictionService.getRestrictionsForOperation
(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... expansions) Retrieves all restrictions for given operation key on given content.Methods in com.atlassian.confluence.api.service.permissions that return types with arguments of type ContentRestrictionModifier and TypeMethodDescriptionContentRestrictionService.getRestrictionsGroupByOperation
(ContentId target, Expansion... expansions) List all restrictions that exist directly on the given content.Method parameters in com.atlassian.confluence.api.service.permissions with type arguments of type ContentRestrictionModifier and TypeMethodDescriptionContentRestrictionService.addRestrictions
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) Attempts to add all the restrictions specified to a piece of content identified bycontentId
.ContentRestrictionService.updateRestrictions
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) Sets all the restrictions specified to a piece of content identified bycontentId
, replacing any existing permissions.ContentRestrictionService.Validator.validateAddRestrictions
(ContentId contentId, Collection<? extends ContentRestriction> contentRestrictions) Validates that: Content specified exists AND can be viewed by the currently logged-in user Currently logged-in user is allowed to alter ContentRestrictions on and edit the content specified Input data is enough to proceed with the operation Input data should not conflict with any restrictions existingContentRestrictionService.Validator.validateUpdateRestrictions
(ContentId contentId, Collection<? extends ContentRestriction> contentRestrictions) Validates that: Content specified exists AND can be viewed by the currently logged-in user Input data is enough to proceed with the operation Currently logged-in user is allowed to alter ContentRestrictions on and edit the content specified Returns first of the failed validation results or aValidationResult
which is both authorised and valid. -
Uses of ContentRestriction in com.atlassian.confluence.plugins.restapi.experimental.resources
Methods in com.atlassian.confluence.plugins.restapi.experimental.resources that return types with arguments of type ContentRestrictionModifier and TypeMethodDescriptionExperimentalContentRestrictionsResource.addRestrictions
(ContentId contentId, String expand, PageResponse<ContentRestriction> contentRestrictions) Adds all the restrictions specified to a piece of content identified bycontentId
.ExperimentalContentRestrictionsResource.deleteRestrictions
(ContentId contentId, String expand) Removes all the restrictions specified directly on the content.ExperimentalContentRestrictionsResource.getRestrictions
(ContentId contentId, String expand, javax.ws.rs.core.UriInfo uriInfo, int start, int limit) Returns all the restrictions which are directly specified on a piece of content identified bycontentId
paramExperimentalContentRestrictionsResource.updateRestrictions
(ContentId contentId, String expand, PageResponse<ContentRestriction> contentRestrictions) Sets all the restrictions specified to a piece of content identified bycontentId
, replacing any existing permissions.Method parameters in com.atlassian.confluence.plugins.restapi.experimental.resources with type arguments of type ContentRestrictionModifier and TypeMethodDescriptionExperimentalContentRestrictionsResource.addRestrictions
(ContentId contentId, String expand, PageResponse<ContentRestriction> contentRestrictions) Adds all the restrictions specified to a piece of content identified bycontentId
.ExperimentalContentRestrictionsResource.updateRestrictions
(ContentId contentId, String expand, PageResponse<ContentRestriction> contentRestrictions) Sets all the restrictions specified to a piece of content identified bycontentId
, replacing any existing permissions. -
Uses of ContentRestriction in com.atlassian.confluence.plugins.restapi.resources
Methods in com.atlassian.confluence.plugins.restapi.resources that return ContentRestrictionModifier and TypeMethodDescriptionContentRestrictionResource.forOperation
(ContentId id, OperationKey opKey, String expand, int start, int limit) Methods in com.atlassian.confluence.plugins.restapi.resources that return types with arguments of type ContentRestrictionModifier and TypeMethodDescriptionContentRestrictionResource.byOperation
(ContentId id, String expand) ContentRestrictionResource.updateRestrictions
(ContentId contentId, String expand, List<ContentRestriction> contentRestrictions) Method parameters in com.atlassian.confluence.plugins.restapi.resources with type arguments of type ContentRestrictionModifier and TypeMethodDescriptionContentRestrictionResource.updateRestrictions
(ContentId contentId, String expand, List<ContentRestriction> contentRestrictions) -
Uses of ContentRestriction in com.atlassian.confluence.rest.client
Methods in com.atlassian.confluence.rest.client that return types with arguments of type ContentRestrictionModifier and TypeMethodDescriptionRemoteContentRestrictionService.getRestrictionsForOperationCompletionStage
(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... expansions) Retrieves all restrictions for given operation key on given content.RemoteContentRestrictionServiceImpl.getRestrictionsForOperationCompletionStage
(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... expansions) RemoteContentRestrictionService.getRestrictionsGroupByOperationCompletionStage
(ContentId target, Expansion... expansions) List all restrictions that exist directly on the given content.RemoteContentRestrictionServiceImpl.getRestrictionsGroupByOperationCompletionStage
(ContentId target, Expansion... expansions) Method parameters in com.atlassian.confluence.rest.client with type arguments of type ContentRestrictionModifier and TypeMethodDescriptionRemoteContentRestrictionService.addRestrictionsCompletionStage
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) Attempts to add all the restrictions specified to a piece of content identified bycontentId
.RemoteContentRestrictionServiceImpl.addRestrictionsCompletionStage
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) RemoteContentRestrictionService.updateRestrictionsCompletionStage
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) Sets all the restrictions specified to a piece of content identified bycontentId
, replacing any existing permissions.RemoteContentRestrictionServiceImpl.updateRestrictionsCompletionStage
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions)