Uses of Class
com.atlassian.confluence.api.model.permissions.Target
Packages that use Target
Package
Description
Model objects for user and group permission and validation checks, for use with
OperationService
.SPI for implementing pluggable permission and validation checks, for use with
OperationService
.-
Uses of Target in com.atlassian.confluence.api.impl.service.permissions
Methods in com.atlassian.confluence.api.impl.service.permissions that return types with arguments of type TargetModifier and TypeMethodDescriptionfinal @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) Methods in com.atlassian.confluence.api.impl.service.permissions with parameters of type TargetModifier and TypeMethodDescriptionfinal @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) Method parameters in com.atlassian.confluence.api.impl.service.permissions with type arguments of type TargetModifier and TypeMethodDescriptionfinal @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) -
Uses of Target in com.atlassian.confluence.api.model.permissions
Subclasses of Target in com.atlassian.confluence.api.model.permissionsModifier and TypeClassDescriptionstatic class
A target for a container being used to check operations on a different target type within it.static class
A light weight target that only contain id of the object.static class
A target that points to a single model object, e.g.Methods in com.atlassian.confluence.api.model.permissions that return TargetModifier and TypeMethodDescriptionstatic Target
Target.forChildrenOfContainer
(Container container, TargetType childTargetType) Create aTarget
for a container being used to check operations on a different childTargetType
within it.static Target
Target.forContentId
(ContentId id, TargetType type) Create aTarget
from content idstatic Target
Target.forModelObject
(Object modelObject) Create aTarget
that points to a single model object, e.g.static Target
Target.targetForModelObject
(Object modelObject) Deprecated.since 5.9static Target
Target.targetInContainer
(Container container, TargetType childTargetType) Deprecated.since 5.9 -
Uses of Target in com.atlassian.confluence.api.model.permissions.spi
Methods in com.atlassian.confluence.api.model.permissions.spi that return types with arguments of type TargetModifier and TypeMethodDescriptionfinal @NonNull Map<Target,
ValidationResult> BaseOperationCheck.canPerform
(Person person, Iterable<Target> targets) Validates targets are the correctTargetType
, then delegates toBaseOperationCheck.canPerformImpl(Person, java.lang.Iterable)
.@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.final @NonNull Map<Target,
ValidationResult> BaseOperationCheck.canPerformAccordingToState
(Person person, Iterable<Target> targets) Validates targets are the correctTargetType
, then delegates toBaseOperationCheck.canPerformAccordingToStateImpl(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.protected abstract @NonNull Map<Target,
ValidationResult> BaseOperationCheck.canPerformAccordingToStateImpl
(@NonNull Person person, @NonNull Iterable<Target> targets) Subclass implements this to perform canPerformAccordingToState checks on a collection of targets.protected abstract @NonNull Map<Target,
ValidationResult> BaseOperationCheck.canPerformImpl
(@NonNull Person person, @NonNull Iterable<Target> targets) Subclass implements this to perform canPerform checks on a collection of targets.Methods in com.atlassian.confluence.api.model.permissions.spi with parameters of type TargetModifier and TypeMethodDescriptionfinal @NonNull ValidationResult
BaseOperationCheck.canPerform
(Person person, Target target) @NonNull ValidationResult
OperationCheck.canPerform
(Person person, Target target) Check whether the specified Person can perform this operation on the specified target.final @NonNull ValidationResult
BaseOperationCheck.canPerformAccordingToState
(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.Method parameters in com.atlassian.confluence.api.model.permissions.spi with type arguments of type TargetModifier and TypeMethodDescriptionfinal @NonNull Map<Target,
ValidationResult> BaseOperationCheck.canPerform
(Person person, Iterable<Target> targets) Validates targets are the correctTargetType
, then delegates toBaseOperationCheck.canPerformImpl(Person, java.lang.Iterable)
.@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.final @NonNull Map<Target,
ValidationResult> BaseOperationCheck.canPerformAccordingToState
(Person person, Iterable<Target> targets) Validates targets are the correctTargetType
, then delegates toBaseOperationCheck.canPerformAccordingToStateImpl(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.protected abstract @NonNull Map<Target,
ValidationResult> BaseOperationCheck.canPerformAccordingToStateImpl
(@NonNull Person person, @NonNull Iterable<Target> targets) Subclass implements this to perform canPerformAccordingToState checks on a collection of targets.protected abstract @NonNull Map<Target,
ValidationResult> BaseOperationCheck.canPerformImpl
(@NonNull Person person, @NonNull Iterable<Target> targets) Subclass implements this to perform canPerform checks on a collection of targets. -
Uses of Target in com.atlassian.confluence.api.service.permissions
Methods in com.atlassian.confluence.api.service.permissions that return types with arguments of type TargetModifier and TypeMethodDescription@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.Methods in com.atlassian.confluence.api.service.permissions with parameters of type TargetModifier and TypeMethodDescription@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.Method parameters in com.atlassian.confluence.api.service.permissions with type arguments of type TargetModifier and TypeMethodDescription@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. -
Uses of Target in com.atlassian.confluence.api.testsupport.matchers.model.permissions
Methods in com.atlassian.confluence.api.testsupport.matchers.model.permissions that return types with arguments of type TargetModifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<Map<Target,
ValidationResult>> ValidationResultMatchers.allAuthorized
(Iterable<Target> targets) static org.hamcrest.Matcher<Map<Target,
ValidationResult>> ValidationResultMatchers.allForbidden
(Iterable<Target> targets) static org.hamcrest.Matcher<Map<Target,
ValidationResult>> ValidationResultMatchers.allInvalid
(Iterable<Target> targets, Class<? extends ServiceException> expectedExceptionClass) Methods in com.atlassian.confluence.api.testsupport.matchers.model.permissions with parameters of type TargetModifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<List<OperationCheckResult>>
OperationDescriptionMatchers.containsChecksWithOperationKeys
(Target target, OperationKey... keys) static org.hamcrest.Matcher<OperationCheck>
OperationCheckMatchers.isAuthorized
(Person person, Target target) static org.hamcrest.Matcher<OperationCheck>
OperationCheckMatchers.isForbidden
(Person person, Target target) static org.hamcrest.Matcher<OperationCheck>
OperationCheckMatchers.isInvalid
(Person person, Target target, Class<? extends ServiceException> expectedExceptionClass) static org.hamcrest.Matcher<OperationCheck>
OperationCheckMatchers.throwsException
(Person person, Target target, Class<? extends RuntimeException> expectedExceptionClass) Method parameters in com.atlassian.confluence.api.testsupport.matchers.model.permissions with type arguments of type TargetModifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<Map<Target,
ValidationResult>> ValidationResultMatchers.allAuthorized
(Iterable<Target> targets) static org.hamcrest.Matcher<Map<Target,
ValidationResult>> ValidationResultMatchers.allForbidden
(Iterable<Target> targets) static org.hamcrest.Matcher<Map<Target,
ValidationResult>> ValidationResultMatchers.allInvalid
(Iterable<Target> targets, Class<? extends ServiceException> expectedExceptionClass) -
Uses of Target in com.atlassian.confluence.internal.permissions
Methods in com.atlassian.confluence.internal.permissions with parameters of type TargetModifier and TypeMethodDescriptionboolean
TargetResolver.isContainerTarget
(Target target) Returns true if object is aTarget
for a container being used to check operations on a different childTargetType
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> @NonNull T
TargetResolver.resolveModelObject
(Target target, Class<T> expectedType) Get the target model object (e.g.<T> @NonNull T
TargetResolverImpl.resolveModelObject
(Target target, Class<T> expectedClass)