Uses of Class
com.atlassian.confluence.api.model.permissions.ContentRestriction
-
Packages that use ContentRestriction Package Description com.atlassian.confluence.api.impl.service.permissions com.atlassian.confluence.api.model.content com.atlassian.confluence.api.model.permissions Model objects for user and group permission and validation checks, for use withOperationService
.com.atlassian.confluence.api.service.permissions com.atlassian.confluence.plugins.restapi.experimental.resources com.atlassian.confluence.plugins.restapi.resources com.atlassian.confluence.rest.client 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 ContentRestriction Modifier and Type Method Description ContentRestriction
ContentRestrictionFactory. buildFrom(@NonNull ContentPermissionSet set, LimitedRequest limitedRequest, Expansions expansions)
Produces aContentRestriction
from aContentPermissionSet
sContentRestriction
ContentRestrictionFactory. buildFrom(ContentPermissionSet hibernateObject, Expansions expansions)
ContentRestriction
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 ContentRestriction Modifier and Type Method Description Map<OperationKey,ContentRestriction>
ContentRestrictionServiceImpl. getRestrictionsGroupByOperation(ContentId target, Expansion... allExpansions)
Method parameters in com.atlassian.confluence.api.impl.service.permissions with type arguments of type ContentRestriction Modifier and Type Method Description ContentRestrictionsPageResponse
ContentRestrictionServiceImpl. 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
ContentRestrictionsPageResponse
ContentRestrictionServiceImpl. updateRestrictions(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions)
ValidationResult
DefaultContentRestrictionServiceValidator. validateAddRestrictions(ContentId contentId, Collection<? extends ContentRestriction> contentRestrictions)
ValidationResult
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 ContentRestriction Modifier and Type Method Description Map<OperationKey,ContentRestriction>
Content. 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 ContentRestriction Modifier and Type Method Description Content.ContentBuilder
Content.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 ContentRestriction Modifier and Type Method Description ContentRestriction
ContentRestriction.ContentRestrictionBuilder. build()
Methods in com.atlassian.confluence.api.model.permissions with parameters of type ContentRestriction Modifier and Type Method Description static ContentRestriction.ContentRestrictionBuilder
ContentRestriction. builder(ContentRestriction restriction)
-
Uses of ContentRestriction in com.atlassian.confluence.api.service.permissions
Methods in com.atlassian.confluence.api.service.permissions that return ContentRestriction Modifier and Type Method Description ContentRestriction
ContentRestrictionService. 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 ContentRestriction Modifier and Type Method Description Map<OperationKey,ContentRestriction>
ContentRestrictionService. 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 ContentRestriction Modifier and Type Method Description ContentRestrictionsPageResponse
ContentRestrictionService. addRestrictions(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions)
Attempts to add all the restrictions specified to a piece of content identified bycontentId
.ContentRestrictionsPageResponse
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.ValidationResult
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 existingValidationResult
ContentRestrictionService.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 ContentRestriction Modifier and Type Method Description PageResponse<ContentRestriction>
ExperimentalContentRestrictionsResource. addRestrictions(ContentId contentId, String expand, PageResponse<ContentRestriction> contentRestrictions)
Adds all the restrictions specified to a piece of content identified bycontentId
.PageResponse<ContentRestriction>
ExperimentalContentRestrictionsResource. deleteRestrictions(ContentId contentId, String expand)
Removes all the restrictions specified directly on the content.PageResponse<ContentRestriction>
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
paramPageResponse<ContentRestriction>
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.Method parameters in com.atlassian.confluence.plugins.restapi.experimental.resources with type arguments of type ContentRestriction Modifier and Type Method Description PageResponse<ContentRestriction>
ExperimentalContentRestrictionsResource. addRestrictions(ContentId contentId, String expand, PageResponse<ContentRestriction> contentRestrictions)
Adds all the restrictions specified to a piece of content identified bycontentId
.PageResponse<ContentRestriction>
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 ContentRestriction Modifier and Type Method Description ContentRestriction
ContentRestrictionResource. forOperation(ContentId id, OperationKey opKey, String expand, int start, int limit)
Returns info about all restrictions of given operationMethods in com.atlassian.confluence.plugins.restapi.resources that return types with arguments of type ContentRestriction Modifier and Type Method Description Map<OperationKey,ContentRestriction>
ContentRestrictionResource. byOperation(ContentId id, String expand)
Returns info about all restrictions by operationPageResponse<ContentRestriction>
ContentRestrictionResource. updateRestrictions(ContentId contentId, String expand, List<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.resources with type arguments of type ContentRestriction Modifier and Type Method Description PageResponse<ContentRestriction>
ContentRestrictionResource. updateRestrictions(ContentId contentId, String expand, List<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.rest.client
Methods in com.atlassian.confluence.rest.client that return types with arguments of type ContentRestriction Modifier and Type Method Description default com.atlassian.util.concurrent.Promise<ContentRestriction>
RemoteContentRestrictionService. getRestrictionsForOperation(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... expansions)
Deprecated.since 7.0.1.CompletionStage<ContentRestriction>
RemoteContentRestrictionService. getRestrictionsForOperationCompletionStage(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... expansions)
Retrieves all restrictions for given operation key on given content.CompletionStage<ContentRestriction>
RemoteContentRestrictionServiceImpl. getRestrictionsForOperationCompletionStage(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... expansions)
default com.atlassian.util.concurrent.Promise<Map<OperationKey,ContentRestriction>>
RemoteContentRestrictionService. getRestrictionsGroupByOperation(ContentId target, Expansion... expansions)
Deprecated.since 7.0.1.CompletionStage<Map<OperationKey,ContentRestriction>>
RemoteContentRestrictionService. getRestrictionsGroupByOperationCompletionStage(ContentId target, Expansion... expansions)
List all restrictions that exist directly on the given content.CompletionStage<Map<OperationKey,ContentRestriction>>
RemoteContentRestrictionServiceImpl. getRestrictionsGroupByOperationCompletionStage(ContentId target, Expansion... expansions)
Method parameters in com.atlassian.confluence.rest.client with type arguments of type ContentRestriction Modifier and Type Method Description default com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse>
RemoteContentRestrictionService. addRestrictions(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions)
Deprecated.since 7.0.1.CompletionStage<ContentRestrictionsPageResponse>
RemoteContentRestrictionService. addRestrictionsCompletionStage(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions)
Attempts to add all the restrictions specified to a piece of content identified bycontentId
.CompletionStage<ContentRestrictionsPageResponse>
RemoteContentRestrictionServiceImpl. addRestrictionsCompletionStage(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions)
default com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse>
RemoteContentRestrictionService. updateRestrictions(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions)
Deprecated.since 7.0.1.CompletionStage<ContentRestrictionsPageResponse>
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.CompletionStage<ContentRestrictionsPageResponse>
RemoteContentRestrictionServiceImpl. updateRestrictionsCompletionStage(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions)
-