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 |
---|---|
Map<Target,ValidationResult> |
OperationServiceImpl.canPerform(Person person,
Operation operation,
Iterable<Target> targets) |
Map<Target,ValidationResult> |
OperationServiceImpl.canPerformWithoutExemptions(Person person,
Operation operation,
Iterable<Target> targets) |
Modifier and Type | Method and Description |
---|---|
ValidationResult |
OperationServiceImpl.canPerform(Person person,
Operation operation,
Target target) |
ValidationResult |
OperationServiceImpl.canPerformWithoutExemptions(Person person,
Operation operation,
Target target) |
List<OperationCheckResult> |
OperationServiceImpl.getAvailableOperations(Person person,
Target target) |
List<OperationCheckResult> |
OperationServiceImpl.getAvailableOperations(Target target) |
Modifier and Type | Method and Description |
---|---|
Map<Target,ValidationResult> |
OperationServiceImpl.canPerform(Person person,
Operation operation,
Iterable<Target> targets) |
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 |
---|---|
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) . |
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.
|
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) . |
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.
|
protected abstract Map<Target,ValidationResult> |
BaseOperationCheck.canPerformAccordingToStateImpl(Person person,
Iterable<Target> targets)
Subclass implements this to perform canPerformAccordingToState checks on a collection of targets.
|
protected abstract Map<Target,ValidationResult> |
BaseOperationCheck.canPerformImpl(Person person,
Iterable<Target> targets)
Subclass implements this to perform canPerform checks on a collection of targets.
|
Modifier and Type | Method and Description |
---|---|
ValidationResult |
BaseOperationCheck.canPerform(Person person,
Target target)
|
ValidationResult |
OperationCheck.canPerform(Person person,
Target target)
Check whether the specified Person can perform this operation on the specified target.
|
ValidationResult |
BaseOperationCheck.canPerformAccordingToState(Person person,
Target target)
|
ValidationResult |
OperationCheck.canPerformAccordingToState(Person person,
Target target)
Check whether the specified Person can perform this operation on the specified target based on its state.
|
Modifier and Type | Method and Description |
---|---|
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) . |
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.
|
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) . |
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.
|
protected abstract Map<Target,ValidationResult> |
BaseOperationCheck.canPerformAccordingToStateImpl(Person person,
Iterable<Target> targets)
Subclass implements this to perform canPerformAccordingToState checks on a collection of targets.
|
protected abstract Map<Target,ValidationResult> |
BaseOperationCheck.canPerformImpl(Person person,
Iterable<Target> targets)
Subclass implements this to perform canPerform checks on a collection of targets.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 |
---|---|
ValidationResult |
OperationService.canPerform(Person person,
Operation operation,
Target target)
Check whether a person can perform a particular operation on a particular target.
|
ValidationResult |
OperationService.canPerformWithoutExemptions(Person person,
Operation operation,
Target target)
Check whether a person can perform a particular operation on a particular target.
|
List<OperationCheckResult> |
OperationService.getAvailableOperations(Person person,
Target target)
List all operations that a person can perform on a particular target.
|
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 |
---|---|
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.
|
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> 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> com.atlassian.fugue.Option<T> |
TargetResolverImpl.resolveContainerHibernateObject(Target target,
Class<T> expectedType) |
<T> 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> 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–2018 Atlassian. All rights reserved.