Package | Description |
---|---|
com.atlassian.confluence.api.impl.service.permissions | |
com.atlassian.confluence.api.model.permissions |
Model objects for user and group permission and validation checks, for use with
OperationService . |
com.atlassian.confluence.api.model.permissions.spi |
SPI for implementing pluggable permission and validation checks, for use with
OperationService . |
com.atlassian.confluence.api.service.permissions | |
com.atlassian.confluence.internal.permissions |
Modifier and Type | Method and Description |
---|---|
@NonNull ValidationResult |
OperationServiceImpl.canPerform(Person person,
Operation operation,
Target target)
Checks if the given user is able to perform the specified operation on the specified target.
|
@NonNull ValidationResult |
OperationServiceImpl.canPerformWithoutExemptions(Person person,
Operation operation,
Target target) |
@NonNull List<OperationCheckResult> |
OperationServiceImpl.getAvailableOperations(Person person,
Target target) |
@NonNull List<OperationCheckResult> |
OperationServiceImpl.getAvailableOperations(Target target) |
Modifier and Type | Method and Description |
---|---|
@NonNull Map<Target,ValidationResult> |
OperationServiceImpl.canPerform(Person person,
Operation operation,
Iterable<Target> targets)
Checks if the given user is able to perform the specified operation on the specified targets.
|
@NonNull Map<Target,ValidationResult> |
OperationServiceImpl.canPerformWithoutExemptions(Person person,
Operation operation,
Iterable<Target> targets) |
Modifier and Type | Class and Description |
---|---|
static class |
Target.ContainerTarget
A target for a container being used to check operations on a different target type within it.
|
static class |
Target.IdTarget
A light weight target that only contain id of the object.
|
static class |
Target.ModelObjectTarget
A target that points to a single model object, e.g.
|
Modifier and Type | Method and Description |
---|---|
static Target |
Target.forChildrenOfContainer(Container container,
TargetType childTargetType)
Create a
Target for a container being used to check operations on a different child TargetType within it. |
static Target |
Target.forContentId(ContentId id,
TargetType type)
Create a
Target from content id |
static Target |
Target.forModelObject(Object modelObject)
Create a
Target that points to a single model object, e.g. |
static Target |
Target.targetForModelObject(Object modelObject)
Deprecated.
since 5.9
|
static Target |
Target.targetInContainer(Container container,
TargetType childTargetType)
Deprecated.
since 5.9
|
Modifier and Type | Method and Description |
---|---|
@NonNull ValidationResult |
OperationCheck.canPerform(Person person,
Target target)
Check whether the specified Person can perform this operation on the specified target.
|
@NonNull ValidationResult |
BaseOperationCheck.canPerform(Person person,
Target target)
|
@NonNull ValidationResult |
OperationCheck.canPerformAccordingToState(Person person,
Target target)
Check whether the specified Person can perform this operation on the specified target based on its state.
|
@NonNull ValidationResult |
BaseOperationCheck.canPerformAccordingToState(Person person,
Target target)
|
Modifier and Type | Method and Description |
---|---|
@NonNull Map<Target,ValidationResult> |
OperationCheck.canPerform(Person person,
Iterable<Target> targets)
Check whether the specified Person can perform this operation on ALL of the specified targets.
|
@NonNull Map<Target,ValidationResult> |
BaseOperationCheck.canPerform(Person person,
Iterable<Target> targets)
Validates targets are the correct
TargetType ,
then delegates to BaseOperationCheck.canPerformImpl(Person, java.lang.Iterable) . |
@NonNull Map<Target,ValidationResult> |
OperationCheck.canPerformAccordingToState(Person person,
Iterable<Target> targets)
Check whether the specified Person can perform this operation on each of the specified targets based on their state.
|
@NonNull Map<Target,ValidationResult> |
BaseOperationCheck.canPerformAccordingToState(Person person,
Iterable<Target> targets)
Validates targets are the correct
TargetType ,
then delegates to BaseOperationCheck.canPerformAccordingToStateImpl(Person, java.lang.Iterable) . |
Modifier and Type | Method and Description |
---|---|
@NonNull ValidationResult |
OperationService.canPerform(Person person,
Operation operation,
Target target)
Check whether a person can perform a particular operation on a particular target.
|
@NonNull ValidationResult |
OperationService.canPerformWithoutExemptions(Person person,
Operation operation,
Target target)
Check whether a person can perform a particular operation on a particular target.
|
@NonNull List<OperationCheckResult> |
OperationService.getAvailableOperations(Person person,
Target target)
List all operations that a person can perform on a particular target.
|
@NonNull List<OperationCheckResult> |
OperationService.getAvailableOperations(Target target)
List all operations that the current user can perform on a particular target.
|
Modifier and Type | Method and Description |
---|---|
@NonNull Map<Target,ValidationResult> |
OperationService.canPerform(Person person,
Operation operation,
Iterable<Target> targets)
Check whether the specified Person can perform a particular operation on each of the specified targets.
|
@NonNull Map<Target,ValidationResult> |
OperationService.canPerformWithoutExemptions(Person person,
Operation operation,
Iterable<Target> targets)
Check whether the specified Person can perform a particular operation on each of the specified targets.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TargetResolver.isContainerTarget(Target target)
Returns true if object is a
Target for a container being used to check operations on a different child
TargetType within it. |
boolean |
TargetResolverImpl.isContainerTarget(Target target) |
<T> @NonNull com.atlassian.fugue.Option<T> |
TargetResolver.resolveContainerHibernateObject(Target target,
Class<T> expectedType)
Get the target hibernate object for the container relating to the specified target.
|
<T> @NonNull com.atlassian.fugue.Option<T> |
TargetResolverImpl.resolveContainerHibernateObject(Target target,
Class<T> expectedType) |
<T> @NonNull com.atlassian.fugue.Option<T> |
TargetResolver.resolveHibernateObject(Target target,
Class<T> expectedType)
Get the target hibernate object, if this target is one that has a specific object (not a container)
|
<T> @NonNull com.atlassian.fugue.Option<T> |
TargetResolverImpl.resolveHibernateObject(Target target,
Class<T> expectedType) |
<T> T |
TargetResolver.resolveModelObject(Target target,
Class<T> expectedType)
Get the target model object (e.g.
|
<T> T |
TargetResolverImpl.resolveModelObject(Target target,
Class<T> expectedClass) |
Copyright © 2003–2021 Atlassian. All rights reserved.