Uses of Class
com.atlassian.confluence.api.model.permissions.Target
-
Packages that use Target 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 withOperationService.com.atlassian.confluence.api.model.permissions.spi SPI for implementing pluggable permission and validation checks, for use withOperationService.com.atlassian.confluence.api.service.permissions com.atlassian.confluence.internal.permissions -
-
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 Target Modifier and Type Method 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)Methods in com.atlassian.confluence.api.impl.service.permissions with parameters of type Target Modifier and Type Method Description @NonNull ValidationResultOperationServiceImpl. canPerform(Person person, Operation operation, Target target)Checks if the given user is able to perform the specified operation on the specified target.@NonNull ValidationResultOperationServiceImpl. 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 Target Modifier and Type Method 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) -
Uses of Target in com.atlassian.confluence.api.model.permissions
Subclasses of Target in com.atlassian.confluence.api.model.permissions Modifier and Type Class Description static classTarget.ContainerTargetA target for a container being used to check operations on a different target type within it.static classTarget.IdTargetA light weight target that only contain id of the object.static classTarget.ModelObjectTargetA target that points to a single model object, e.g.Methods in com.atlassian.confluence.api.model.permissions that return Target Modifier and Type Method Description static TargetTarget. forChildrenOfContainer(Container container, TargetType childTargetType)Create aTargetfor a container being used to check operations on a different childTargetTypewithin it.static TargetTarget. forContentId(ContentId id, TargetType type)Create aTargetfrom content idstatic TargetTarget. forModelObject(Object modelObject)Create aTargetthat points to a single model object, e.g.static TargetTarget. targetForModelObject(Object modelObject)Deprecated.since 5.9static TargetTarget. 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 Target Modifier and Type Method Description @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.@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 Target Modifier and Type Method Description @NonNull ValidationResultBaseOperationCheck. canPerform(Person person, Target target)@NonNull ValidationResultOperationCheck. canPerform(Person person, Target target)Check whether the specified Person can perform this operation on the specified target.@NonNull ValidationResultBaseOperationCheck. canPerformAccordingToState(Person person, Target target)@NonNull ValidationResultOperationCheck. 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 Target Modifier and Type Method Description @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.@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 Target Modifier and Type Method 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.Methods in com.atlassian.confluence.api.service.permissions with parameters of type Target Modifier and Type Method Description @NonNull ValidationResultOperationService. canPerform(Person person, Operation operation, Target target)Check whether a person can perform a particular operation on a particular target.@NonNull ValidationResultOperationService. 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 Target Modifier and Type Method 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. -
Uses of Target in com.atlassian.confluence.internal.permissions
Methods in com.atlassian.confluence.internal.permissions with parameters of type Target Modifier and Type Method Description booleanTargetResolver. isContainerTarget(Target target)Returns true if object is aTargetfor a container being used to check operations on a different childTargetTypewithin it.booleanTargetResolverImpl. 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 TTargetResolver. resolveModelObject(Target target, Class<T> expectedType)Get the target model object (e.g.<T> @NonNull TTargetResolverImpl. resolveModelObject(Target target, Class<T> expectedClass)
-