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 ContentRestrictionContentRestrictionFactory. buildFrom(@NonNull ContentPermissionSet set, LimitedRequest limitedRequest, Expansions expansions)Produces aContentRestrictionfrom aContentPermissionSetsContentRestrictionContentRestrictionFactory. buildFrom(ContentPermissionSet hibernateObject, Expansions expansions)ContentRestrictionContentRestrictionServiceImpl. 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 ContentRestrictionsPageResponseContentRestrictionServiceImpl. 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 ofContentPermissions mapped to their PermissionType fromgivenContentRestrictionsprovided and the ones already existing onContentEntityObjectContentRestrictionsPageResponseContentRestrictionServiceImpl. updateRestrictions(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions)ValidationResultDefaultContentRestrictionServiceValidator. validateAddRestrictions(ContentId contentId, Collection<? extends ContentRestriction> contentRestrictions)ValidationResultDefaultContentRestrictionServiceValidator. 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.ContentBuilderContent.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 ContentRestrictionContentRestriction.ContentRestrictionBuilder. build()Methods in com.atlassian.confluence.api.model.permissions with parameters of type ContentRestriction Modifier and Type Method Description static ContentRestriction.ContentRestrictionBuilderContentRestriction. 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 ContentRestrictionContentRestrictionService. 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 ContentRestrictionsPageResponseContentRestrictionService. addRestrictions(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions)Attempts to add all the restrictions specified to a piece of content identified bycontentId.ContentRestrictionsPageResponseContentRestrictionService. 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.ValidationResultContentRestrictionService.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 existingValidationResultContentRestrictionService.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 aValidationResultwhich 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 bycontentIdparamPageResponse<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 ContentRestrictionContentRestrictionResource. 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 operation -
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 com.atlassian.util.concurrent.Promise<ContentRestriction>RemoteContentRestrictionService. getRestrictionsForOperation(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... expansions)Deprecated.since 7.0.1.com.atlassian.util.concurrent.Promise<ContentRestriction>RemoteContentRestrictionServiceImpl. 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)com.atlassian.util.concurrent.Promise<Map<OperationKey,ContentRestriction>>RemoteContentRestrictionService. getRestrictionsGroupByOperation(ContentId target, Expansion... expansions)Deprecated.since 7.0.1.com.atlassian.util.concurrent.Promise<Map<OperationKey,ContentRestriction>>RemoteContentRestrictionServiceImpl. 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 com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse>RemoteContentRestrictionService. addRestrictions(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions)Deprecated.since 7.0.1.com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse>RemoteContentRestrictionServiceImpl. 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)com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse>RemoteContentRestrictionService. updateRestrictions(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions)Deprecated.since 7.0.1.com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse>RemoteContentRestrictionServiceImpl. 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)
-