Uses of Class
com.atlassian.confluence.api.model.permissions.OperationKey
-
Packages that use OperationKey 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.model.permissions.spi SPI for implementing pluggable permission and validation checks, for use withOperationService
.com.atlassian.confluence.api.nav com.atlassian.confluence.api.service.permissions com.atlassian.confluence.pageobjects.component.dialog 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.com.atlassian.confluence.rest.serialization -
-
Uses of OperationKey in com.atlassian.confluence.api.impl.service.permissions
Methods in com.atlassian.confluence.api.impl.service.permissions that return OperationKey Modifier and Type Method Description static OperationKey
ContentRestrictionFactory. determineOpKey(String permissionType)
Given a raw ContentPermission type, return its corresponding OperationKey.Methods in com.atlassian.confluence.api.impl.service.permissions that return types with arguments of type OperationKey Modifier and Type Method Description Map<OperationKey,ContentRestriction>
ContentRestrictionServiceImpl. getRestrictionsGroupByOperation(ContentId target, Expansion... allExpansions)
static com.google.common.collect.ImmutableSet<OperationKey>
ContentRestrictionFactory. getSupportedOperationKeys()
Lists all recognizableOperationKey
s which can be accepted from the requests.Methods in com.atlassian.confluence.api.impl.service.permissions with parameters of type OperationKey Modifier and Type Method Description void
ContentRestrictionServiceImpl. addDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
void
ContentRestrictionServiceImpl. deleteDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
static com.atlassian.fugue.Option<String>
ContentRestrictionFactory. determinePermissionType(OperationKey key)
Deprecated.static Optional<String>
ContentRestrictionFactory. extractPermissionType(OperationKey key)
Given an OperationKey, determine the raw ContentPermission type.ContentRestriction
ContentRestrictionServiceImpl. getRestrictionsForOperation(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... allExpansions)
boolean
ContentRestrictionServiceImpl. hasDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
ValidationResult
DefaultContentRestrictionServiceValidator. validateAddDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
ValidationResult
DefaultContentRestrictionServiceValidator. validateDeleteDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
ValidationResult
DefaultContentRestrictionServiceValidator. validateGetRestrictionsForOperation(ContentId contentId, OperationKey opKey)
ValidationResult
DefaultContentRestrictionServiceValidator. validateHasDirectRestrictionsForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
-
Uses of OperationKey in com.atlassian.confluence.api.model.content
Methods in com.atlassian.confluence.api.model.content that return types with arguments of type OperationKey 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 OperationKey Modifier and Type Method Description Content.ContentBuilder
Content.ContentBuilder. restrictions(Map<OperationKey,ContentRestriction> restrictionsByOperationMap)
-
Uses of OperationKey in com.atlassian.confluence.api.model.permissions
Fields in com.atlassian.confluence.api.model.permissions declared as OperationKey Modifier and Type Field Description static OperationKey
OperationKey. ADMINISTER
static OperationKey
OperationKey. COPY
static OperationKey
OperationKey. CREATE
static OperationKey
OperationKey. DELETE
static OperationKey
OperationKey. EXPORT
static OperationKey
OperationKey. MOVE
static OperationKey
OperationKey. PURGE
static OperationKey
OperationKey. PURGE_VERSION
static OperationKey
OperationKey. READ
static OperationKey
OperationKey. RESTORE
static OperationKey
OperationKey. UPDATE
static OperationKey
OperationKey. USE
Fields in com.atlassian.confluence.api.model.permissions with type parameters of type OperationKey Modifier and Type Field Description static List<OperationKey>
OperationKey. BUILT_IN
static List<OperationKey>
OperationKey. READ_ONLY_WHITELIST
Methods in com.atlassian.confluence.api.model.permissions that return OperationKey Modifier and Type Method Description OperationKey
ContentRestriction. getOperation()
@NonNull OperationKey
Operation. getOperationKey()
@NonNull OperationKey
OperationCheckResult. getOperationKey()
@NonNull OperationKey
OperationDescription. getOperationKey()
@NonNull OperationKey
OperationKey. getOperationKey()
static OperationKey
OperationKey. valueOf(String name)
Methods in com.atlassian.confluence.api.model.permissions with parameters of type OperationKey Modifier and Type Method Description ContentRestriction.ContentRestrictionBuilder
ContentRestriction.ContentRestrictionBuilder. operation(OperationKey operation)
OperationCheckResult.OperationCheckResultBuilder
OperationCheckResult.OperationCheckResultBuilder. operationKey(@NonNull OperationKey operationKey)
OperationDescription.OperationDescriptionBuilder
OperationDescription.OperationDescriptionBuilder. operationKey(@NonNull OperationKey operationKey)
-
Uses of OperationKey in com.atlassian.confluence.api.model.permissions.spi
Methods in com.atlassian.confluence.api.model.permissions.spi that return OperationKey Modifier and Type Method Description @NonNull OperationKey
BaseOperationCheck. getOperationKey()
@NonNull OperationKey
OperationCheck. getOperationKey()
Methods in com.atlassian.confluence.api.model.permissions.spi with parameters of type OperationKey Modifier and Type Method Description @Nullable OperationCheck
OperationDelegate. getOperation(OperationKey operationKey)
Get theOperationCheck
which can answer questions about a particular operation.Constructors in com.atlassian.confluence.api.model.permissions.spi with parameters of type OperationKey Constructor Description BaseOperationCheck(OperationKey operationKey, TargetType expectedTargetType)
Construct aBaseOperationCheck
. -
Uses of OperationKey in com.atlassian.confluence.api.nav
Methods in com.atlassian.confluence.api.nav with parameters of type OperationKey Modifier and Type Method Description Navigation.Builder
Navigation.ContentRestrictionByOperationNav. operation(OperationKey operationKey)
-
Uses of OperationKey in com.atlassian.confluence.api.service.permissions
Methods in com.atlassian.confluence.api.service.permissions that return types with arguments of type OperationKey Modifier and Type Method Description Map<OperationKey,ContentRestriction>
ContentRestrictionService. getRestrictionsGroupByOperation(ContentId target, Expansion... expansions)
List all restrictions that exist directly on the given content.Methods in com.atlassian.confluence.api.service.permissions with parameters of type OperationKey Modifier and Type Method Description void
ContentRestrictionService. addDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
Adds singular directContentRestriction
foroperationKey
andsubject
to the content identified bycontentId
parameter.void
ContentRestrictionService. deleteDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
Deletes singular directContentRestriction
foroperationKey
andsubject
from the content identified bycontentId
parameter.ContentRestriction
ContentRestrictionService. getRestrictionsForOperation(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... expansions)
Retrieves all restrictions for given operation key on given content.boolean
ContentRestrictionService. hasDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
Returnstrue
if the User or Group specified by thesubject
parameter has restriction(s) for theoperationKey
operation which are specified directly on the Content identified bycontentId
parameter.ValidationResult
ContentRestrictionService.Validator. validateAddDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
Validates that: OperationKey supplied is supported Subject supplied is either User or a Group and does exist 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 specifiedValidationResult
ContentRestrictionService.Validator. validateDeleteDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
Validates that: OperationKey supplied is supported Subject supplied is either User or a Group 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 specifiedValidationResult
ContentRestrictionService.Validator. validateGetRestrictionsForOperation(ContentId contentId, OperationKey opKey)
Validates whether OperationKey supplied is supported, whether content specified exists, whether currently logged in user can read restrictions on a content specifiedValidationResult
ContentRestrictionService.Validator. validateHasDirectRestrictionsForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
Validates that: OperationKey supplied is supported Subject supplied is either User or a Group Content specified exists AND can be viewed by the currently logged-in user -
Uses of OperationKey in com.atlassian.confluence.pageobjects.component.dialog
Methods in com.atlassian.confluence.pageobjects.component.dialog with parameters of type OperationKey Modifier and Type Method Description com.atlassian.pageobjects.elements.query.TimedQuery<Boolean>
PageRestrictionsDialog. hasRestrictionTimed(Subject subject, OperationKey operationKey)
Deprecated.boolean
PageRestrictionsDialog. removeRestriction(String name, OperationKey operationKey)
Deprecated.since 5.9. -
Uses of OperationKey in com.atlassian.confluence.plugins.restapi.experimental.resources
Methods in com.atlassian.confluence.plugins.restapi.experimental.resources with parameters of type OperationKey Modifier and Type Method Description javax.ws.rs.core.Response
ExperimentalContentRestrictionsResource. addIndividualGroupRestriction(ContentId contentId, OperationKey operationKey, Group group)
Adds singular directContentRestriction
foroperationKey
andgroup
for the content identified bycontentId
parameter.javax.ws.rs.core.Response
ExperimentalContentRestrictionsResource. addIndividualUserRestriction(ContentId contentId, OperationKey operationKey, com.atlassian.sal.api.user.UserKey userKey, String userName)
Adds singular directContentRestriction
foroperationKey
anduser
for the content identified bycontentId
parameter.javax.ws.rs.core.Response
ExperimentalContentRestrictionsResource. deleteIndividualGroupRestriction(ContentId contentId, OperationKey operationKey, Group group)
Deletes singular directContentRestriction
foroperationKey
anduser
from the content identified bycontentId
parameter.javax.ws.rs.core.Response
ExperimentalContentRestrictionsResource. deleteIndividualUserRestriction(ContentId contentId, OperationKey operationKey, com.atlassian.sal.api.user.UserKey userKey, String userName)
Deletes singular directContentRestriction
foroperationKey
anduser
from the content identified bycontentId
parameter.javax.ws.rs.core.Response
ExperimentalContentRestrictionsResource. getIndividualGroupRestrictionStatus(ContentId contentId, OperationKey operationKey, Group group)
Answers the question "Whether group, identified bygroupName
is a subject of the restriction for operationoperationKey
directly specified on a content with ID ofccontentId
"javax.ws.rs.core.Response
ExperimentalContentRestrictionsResource. getIndividualUserRestrictionStatus(ContentId contentId, OperationKey operationKey, com.atlassian.sal.api.user.UserKey userKey, String userName)
Answers the question "Whether user, identified byuserKey
is a subject of the restriction for operationoperationKey
directly specified on a content with ID ofccontentId
" -
Uses of OperationKey in com.atlassian.confluence.plugins.restapi.resources
Methods in com.atlassian.confluence.plugins.restapi.resources that return types with arguments of type OperationKey Modifier and Type Method Description Map<OperationKey,ContentRestriction>
ContentRestrictionResource. byOperation(ContentId id, String expand)
Returns info about all restrictions by operationMethods in com.atlassian.confluence.plugins.restapi.resources with parameters of type OperationKey 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 operation -
Uses of OperationKey in com.atlassian.confluence.rest.client
Methods in com.atlassian.confluence.rest.client that return types with arguments of type OperationKey Modifier and Type Method Description 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)
Methods in com.atlassian.confluence.rest.client with parameters of type OperationKey Modifier and Type Method Description com.atlassian.util.concurrent.Promise<Void>
RemoteContentRestrictionService. addDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
Deprecated.since 7.0.1.com.atlassian.util.concurrent.Promise<Void>
RemoteContentRestrictionServiceImpl. addDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
Deprecated.since 7.0.1.CompletionStage<Void>
RemoteContentRestrictionService. addDirectRestrictionForSubjectCompletionStage(ContentId contentId, OperationKey operationKey, Subject subject)
Adds singular directContentRestriction
foroperationKey
andsubject
to the content identified bycontentId
parameter.CompletionStage<Void>
RemoteContentRestrictionServiceImpl. addDirectRestrictionForSubjectCompletionStage(ContentId contentId, OperationKey operationKey, Subject subject)
com.atlassian.util.concurrent.Promise<Void>
RemoteContentRestrictionService. deleteDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
Deprecated.since 7.0.1.com.atlassian.util.concurrent.Promise<Void>
RemoteContentRestrictionServiceImpl. deleteDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
Deprecated.since 7.0.1.CompletionStage<Void>
RemoteContentRestrictionService. deleteDirectRestrictionForSubjectCompletionStage(ContentId contentId, OperationKey operationKey, Subject subject)
Deletes singular directContentRestriction
foroperationKey
andsubject
from the content identified bycontentId
parameter.CompletionStage<Void>
RemoteContentRestrictionServiceImpl. deleteDirectRestrictionForSubjectCompletionStage(ContentId contentId, OperationKey operationKey, Subject subject)
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<Boolean>
RemoteContentRestrictionService. hasDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
Deprecated.since 7.0.1.com.atlassian.util.concurrent.Promise<Boolean>
RemoteContentRestrictionServiceImpl. hasDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject)
Deprecated.since 7.0.1.CompletionStage<Boolean>
RemoteContentRestrictionService. hasDirectRestrictionForSubjectCompletionStage(ContentId contentId, OperationKey operationKey, Subject subject)
Returnstrue
if the User or Group specified by thesubject
parameter has restriction(s) for theoperationKey
operation which are specified directly on the Content identified bycontentId
parameter.CompletionStage<Boolean>
RemoteContentRestrictionServiceImpl. hasDirectRestrictionForSubjectCompletionStage(ContentId contentId, OperationKey operationKey, Subject subject)
-
Uses of OperationKey in com.atlassian.confluence.rest.serialization
Methods in com.atlassian.confluence.rest.serialization that return OperationKey Modifier and Type Method Description OperationKey
RestData. getOperationKey()
Methods in com.atlassian.confluence.rest.serialization with parameters of type OperationKey Modifier and Type Method Description RestData.RestDataBuilder
RestData.RestDataBuilder. operation(OperationKey operationKey)
-