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 with
OperationService . |
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.
|
Modifier and Type | Method and Description |
---|---|
ContentRestriction |
ContentRestrictionFactory.buildFrom(ContentPermissionSet hibernateObject,
Expansions expansions) |
ContentRestriction |
ContentRestrictionFactory.buildFrom(@NonNull ContentPermissionSet set,
LimitedRequest limitedRequest,
Expansions expansions)
Produces a
ContentRestriction from a ContentPermissionSet s |
ContentRestriction |
ContentRestrictionServiceImpl.getRestrictionsForOperation(ContentId target,
OperationKey operationKey,
PageRequest pageRequest,
Expansion... allExpansions) |
Modifier and Type | Method and Description |
---|---|
Map<OperationKey,ContentRestriction> |
ContentRestrictionServiceImpl.getRestrictionsGroupByOperation(ContentId target,
Expansion... allExpansions) |
Modifier and Type | Method and Description |
---|---|
ContentRestrictionsPageResponse |
ContentRestrictionServiceImpl.addRestrictions(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions) |
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) |
Modifier and Type | Method and Description |
---|---|
Map<OperationKey,ContentRestriction> |
Content.getRestrictions()
Returns a Map of restrictions present on the given Content, grouped by Operation.
|
Modifier and Type | Method and Description |
---|---|
Content.ContentBuilder |
Content.ContentBuilder.restrictions(Map<OperationKey,ContentRestriction> restrictionsByOperationMap) |
Modifier and Type | Method and Description |
---|---|
ContentRestriction |
ContentRestriction.ContentRestrictionBuilder.build() |
Modifier and Type | Method and Description |
---|---|
static ContentRestriction.ContentRestrictionBuilder |
ContentRestriction.builder(ContentRestriction restriction) |
Modifier and Type | Method and Description |
---|---|
ContentRestriction |
ContentRestrictionService.getRestrictionsForOperation(ContentId target,
OperationKey operationKey,
PageRequest pageRequest,
Expansion... expansions)
Retrieves all restrictions for given operation key on given content.
|
Modifier and Type | Method and Description |
---|---|
Map<OperationKey,ContentRestriction> |
ContentRestrictionService.getRestrictionsGroupByOperation(ContentId target,
Expansion... expansions)
List all restrictions that exist directly on the given content.
|
Modifier and Type | Method and 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 by
contentId . |
ContentRestrictionsPageResponse |
ContentRestrictionService.updateRestrictions(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions)
Sets all the restrictions specified to a piece of content identified by
contentId , 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 existing
|
ValidationResult |
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 a
ValidationResult which is both authorised and valid. |
Modifier and Type | Method and Description |
---|---|
PageResponse<ContentRestriction> |
ExperimentalContentRestrictionsResource.addRestrictions(ContentId contentId,
String expand,
PageResponse<ContentRestriction> contentRestrictions)
Adds all the restrictions specified to a piece of content identified by
contentId . |
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 by
contentId
param |
PageResponse<ContentRestriction> |
ExperimentalContentRestrictionsResource.updateRestrictions(ContentId contentId,
String expand,
PageResponse<ContentRestriction> contentRestrictions)
Sets all the restrictions specified to a piece of content identified by
contentId , replacing any existing permissions. |
Modifier and Type | Method and Description |
---|---|
PageResponse<ContentRestriction> |
ExperimentalContentRestrictionsResource.addRestrictions(ContentId contentId,
String expand,
PageResponse<ContentRestriction> contentRestrictions)
Adds all the restrictions specified to a piece of content identified by
contentId . |
PageResponse<ContentRestriction> |
ExperimentalContentRestrictionsResource.updateRestrictions(ContentId contentId,
String expand,
PageResponse<ContentRestriction> contentRestrictions)
Sets all the restrictions specified to a piece of content identified by
contentId , replacing any existing permissions. |
Modifier and Type | Method and Description |
---|---|
ContentRestriction |
ContentRestrictionResource.forOperation(ContentId id,
OperationKey opKey,
String expand,
int start,
int limit)
Returns info about all restrictions of given operation
|
Modifier and Type | Method and Description |
---|---|
Map<OperationKey,ContentRestriction> |
ContentRestrictionResource.byOperation(ContentId id,
String expand)
Returns info about all restrictions by operation
|
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<ContentRestriction> |
RemoteContentRestrictionServiceImpl.getRestrictionsForOperation(ContentId target,
OperationKey operationKey,
PageRequest pageRequest,
Expansion... expansions)
Deprecated.
|
com.atlassian.util.concurrent.Promise<ContentRestriction> |
RemoteContentRestrictionService.getRestrictionsForOperation(ContentId target,
OperationKey operationKey,
PageRequest pageRequest,
Expansion... expansions)
Deprecated.
|
CompletionStage<ContentRestriction> |
RemoteContentRestrictionServiceImpl.getRestrictionsForOperationCompletionStage(ContentId target,
OperationKey operationKey,
PageRequest pageRequest,
Expansion... expansions) |
CompletionStage<ContentRestriction> |
RemoteContentRestrictionService.getRestrictionsForOperationCompletionStage(ContentId target,
OperationKey operationKey,
PageRequest pageRequest,
Expansion... expansions)
Retrieves all restrictions for given operation key on given content.
|
com.atlassian.util.concurrent.Promise<Map<OperationKey,ContentRestriction>> |
RemoteContentRestrictionServiceImpl.getRestrictionsGroupByOperation(ContentId target,
Expansion... expansions)
Deprecated.
|
com.atlassian.util.concurrent.Promise<Map<OperationKey,ContentRestriction>> |
RemoteContentRestrictionService.getRestrictionsGroupByOperation(ContentId target,
Expansion... expansions)
Deprecated.
since 7.0.1. Use
RemoteContentRestrictionService.getRestrictionsGroupByOperationCompletionStage(ContentId, Expansion...) instead. |
CompletionStage<Map<OperationKey,ContentRestriction>> |
RemoteContentRestrictionServiceImpl.getRestrictionsGroupByOperationCompletionStage(ContentId target,
Expansion... expansions) |
CompletionStage<Map<OperationKey,ContentRestriction>> |
RemoteContentRestrictionService.getRestrictionsGroupByOperationCompletionStage(ContentId target,
Expansion... expansions)
List all restrictions that exist directly on the given content.
|
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse> |
RemoteContentRestrictionServiceImpl.addRestrictions(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions)
Deprecated.
since 7.0.1. Use
RemoteContentRestrictionServiceImpl.addRestrictionsCompletionStage(ContentId, Collection, Expansion...) instead. |
com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse> |
RemoteContentRestrictionService.addRestrictions(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions)
Deprecated.
since 7.0.1. Use
RemoteContentRestrictionService.addRestrictionsCompletionStage(ContentId, Collection, Expansion...) instead. |
CompletionStage<ContentRestrictionsPageResponse> |
RemoteContentRestrictionServiceImpl.addRestrictionsCompletionStage(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions) |
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 by
contentId . |
com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse> |
RemoteContentRestrictionServiceImpl.updateRestrictions(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions)
Deprecated.
|
com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse> |
RemoteContentRestrictionService.updateRestrictions(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions)
Deprecated.
since 7.0.1. Use
RemoteContentRestrictionService.updateRestrictionsCompletionStage(ContentId, Collection, Expansion...) instead. |
CompletionStage<ContentRestrictionsPageResponse> |
RemoteContentRestrictionServiceImpl.updateRestrictionsCompletionStage(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions) |
CompletionStage<ContentRestrictionsPageResponse> |
RemoteContentRestrictionService.updateRestrictionsCompletionStage(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions)
Sets all the restrictions specified to a piece of content identified by
contentId , replacing any existing permissions. |
Copyright © 2003–2020 Atlassian. All rights reserved.