Uses of Interface
com.atlassian.confluence.api.model.validation.ValidationResult
Packages that use ValidationResult
Package
Description
SPI for implementing pluggable permission and validation checks, for use with
OperationService
.Internal interfaces that are NOT exposed to the plugin classpath, by being excluded in the packageScanningConfiguration
of bootstrapContext.xml.
Provides a Lucene-backed implementation of the
SearchManager
.This package contains the code which communicates with Confluence via REST API.
-
Uses of ValidationResult in com.atlassian.confluence.api.impl.model.validation
Methods in com.atlassian.confluence.api.impl.model.validation that return ValidationResultModifier and TypeMethodDescriptionstatic ValidationResult
CoreValidationResultFactory.create
(boolean authorized, Collection<ValidationError> coreErrors) -
Uses of ValidationResult in com.atlassian.confluence.api.impl.service.colorscheme
Methods in com.atlassian.confluence.api.impl.service.colorscheme that return ValidationResultModifier and TypeMethodDescriptionGlobalColorSchemeServiceImpl.ValidatorImpl.validateUpdate()
SpaceColorSchemeServiceImpl.ValidatorImpl.validateUpdate
(String spaceKey) SpaceColorSchemeServiceImpl.ValidatorImpl.validateView
(String spaceKey) -
Uses of ValidationResult in com.atlassian.confluence.api.impl.service.content
Methods in com.atlassian.confluence.api.impl.service.content that return ValidationResultModifier and TypeMethodDescriptionSpaceValidatorImpl.validateArchive
(Space space) ContentServiceImpl.ValidatorImpl.validateCreate
(Content newContent) SpaceValidatorImpl.validateCreate
(Space space, boolean isPrivate) SpaceValidatorImpl.validateCreatePersonalSpaceForSelf
(PersonalSpaceDetailsForCreation spaceDetails) SpaceValidatorImpl.validateCreatePersonalSpaceForUser
(PersonalSpaceDetailsForCreation spaceDetails, String username) ContentServiceImpl.ValidatorImpl.validateDelete
(Content content) SpaceValidatorImpl.validateDelete
(Space space) SpaceValidatorImpl.validateEmptyTrash
(String spaceKey) SpaceLabelServiceImpl.ValidatorImpl.validateFindRelatedContentLabelsPaginated
(String labelName, String spaceKey) SpaceValidatorImpl.validateGet
(String spaceKey) LabelServiceImpl.ValidatorImpl.validateLabelExists
(String labelName) SpaceValidatorImpl.validateRestore
(Space space) protected ValidationResult
ContentServiceImpl.ValidatorImpl.validateUpdate
(Content updatedContent, ContentEntityObject currentCeo) SpaceValidatorImpl.validateUpdate
(Space space) -
Uses of ValidationResult in com.atlassian.confluence.api.impl.service.content.draft
Methods in com.atlassian.confluence.api.impl.service.content.draft that return ValidationResult -
Uses of ValidationResult in com.atlassian.confluence.api.impl.service.content.typebinding
Methods in com.atlassian.confluence.api.impl.service.content.typebinding that return ValidationResultModifier and TypeMethodDescriptionAttachmentContentTypeApiSupport.validateCreate
(Content newContent) BlogPostContentTypeApiSupport.validateCreate
(Content newContent) CommentContentTypeApiSupport.validateCreate
(Content newContent) PageContentTypeApiSupport.validateCreate
(Content newContent) AttachmentContentTypeApiSupport.validateUpdate
(Content updatedContent, Attachment existingEntity) BlogPostContentTypeApiSupport.validateUpdate
(Content updatedContent, BlogPost existingEntity) CommentContentTypeApiSupport.validateUpdate
(Content updatedContent, Comment existingEntity) PageContentTypeApiSupport.validateUpdate
(Content updatedContent, Page sceo) -
Uses of ValidationResult in com.atlassian.confluence.api.impl.service.instance
Methods in com.atlassian.confluence.api.impl.service.instance that return ValidationResultModifier and TypeMethodDescriptionInstanceMetricsServiceValidatorImpl.validateGetInstanceMetrics()
-
Uses of ValidationResult in com.atlassian.confluence.api.impl.service.people
Methods in com.atlassian.confluence.api.impl.service.people that return ValidationResultModifier and TypeMethodDescriptionGroupServiceImpl.GroupValidator.validateCreate
(String groupName) GroupServiceImpl.GroupValidator.validateDelete
(String groupName) GroupServiceImpl.GroupValidator.validateView()
-
Uses of ValidationResult in com.atlassian.confluence.api.impl.service.permissions
Methods in com.atlassian.confluence.api.impl.service.permissions that return ValidationResultModifier 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) DefaultContentRestrictionServiceValidator.validateAddDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) DefaultContentRestrictionServiceValidator.validateAddRestrictions
(ContentId contentId, Collection<? extends ContentRestriction> contentRestrictions) DefaultContentRestrictionServiceValidator.validateDeleteAllDirectRestrictions
(ContentId contentId) DefaultContentRestrictionServiceValidator.validateDeleteDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) DefaultContentRestrictionServiceValidator.validateGetRestrictions
(ContentId contentId) DefaultContentRestrictionServiceValidator.validateGetRestrictionsForOperation
(ContentId contentId, OperationKey opKey) DefaultContentRestrictionServiceValidator.validateHasDirectRestrictionsForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) protected @NonNull ValidationResult
ContentRestrictionServiceImpl.validateSelfAccessRetained
(@NonNull Map<String, Collection<ContentPermission>> contentPermissionByPermissionTypeMap) Validates that currently logged in user will have direct specific ContentPermission specified for self in case when providedcontentPermissionByPermissionTypeMap
will become the actual ContentPermissions.DefaultContentRestrictionServiceValidator.validateUpdateRestrictions
(ContentId contentId, Collection<? extends ContentRestriction> contentRestrictions) Methods in com.atlassian.confluence.api.impl.service.permissions that return types with arguments of type ValidationResultModifier 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 ValidationResult in com.atlassian.confluence.api.impl.service.permissions.validation
Methods in com.atlassian.confluence.api.impl.service.permissions.validation that return ValidationResultModifier and TypeMethodDescriptionprotected ValidationResult
AbstractPermissionsValidator.createGuardPermissionValidationResult
(boolean permissionExist, String guardPermission) protected ValidationResult
AbstractPermissionsValidator.createValidationResultWithError
(String message) GlobalPermissionsValidator.validateAnonymousPermissions
(Collection<SpacePermission> spacePermissions) Validates if permissions can be granted to anonymous usersSpacePermissionsValidator.validateAtLeastOneAdminPermissionExists
(Space entitySpace, Set<SpacePermission> permissionsToRemove) protected ValidationResult
AbstractPermissionsValidator.validateGuardPermissionExistsForAnonymousUsers
(Collection<SpacePermission> permissionsToAdd, Collection<SpacePermission> existingPermissions, String guardPermission) Validates that guard permission it exists for anonymous users.protected ValidationResult
AbstractPermissionsValidator.validateGuardPermissionExistsForGroup
(Collection<SpacePermission> permissionsToAdd, Collection<SpacePermission> existingPermissions, String guardPermission, String groupName) Validates that guard permission it exists for the given group.protected ValidationResult
AbstractPermissionsValidator.validateGuardPermissionExistsForSubject
(Collection<SpacePermission> permissionsToAdd, Collection<SpacePermission> existingPermissions, String guardPermission, Function<SpacePermission, Boolean> subjectFilter) protected ValidationResult
AbstractPermissionsValidator.validateGuardPermissionExistsForUnlicensedUsers
(Collection<SpacePermission> permissionsToAdd, Collection<SpacePermission> existingPermissions, String guardPermission) Validates that guard permission it exists for unlicensed users.protected ValidationResult
AbstractPermissionsValidator.validateGuardPermissionExistsForUser
(Collection<SpacePermission> permissionsToAdd, Collection<SpacePermission> existingPermissions, String guardPermission, ConfluenceUser user) Validates that guard permission it exists for the given user.GlobalPermissionsValidator.validateLimitedUseConfluencePermissionExistsForUnlicensedUsers
(Collection<SpacePermission> permissionsToAdd, Collection<SpacePermission> existingPermissions) Validates that guard permission (LIMITEDUSECONFLUENCE) exists for unlicensed users.GlobalPermissionsValidator.validateUnlicensedUsersPermissions
(Collection<SpacePermission> spacePermissions) Validates if permissions can be granted to unlicensed usersGlobalPermissionsValidator.validateUseConfluencePermissionExistsForAnonymousUser
(Collection<SpacePermission> permissionsToAdd, Collection<SpacePermission> existingPermissions) Validates that guard permission (USECONFLUENCE) exists for anonymous users.GlobalPermissionsValidator.validateUseConfluencePermissionExistsForGroup
(Collection<SpacePermission> permissionsToAdd, Collection<SpacePermission> existingPermissions, String groupName) Validates that guard permission (USECONFLUENCE) exists for the given group.GlobalPermissionsValidator.validateUseConfluencePermissionExistsForUser
(Collection<SpacePermission> permissionsToAdd, Collection<SpacePermission> existingPermissions, ConfluenceUser user) Validates that guard permission (USECONFLUENCE) exists for the given user.GlobalPermissionsValidator.validateUseConfluencePermissionWillBeAdded
(Collection<SpacePermission> permissionsToAdd) Validates that guard permission (USECONFLUENCE) will be added.SpacePermissionsValidator.validateViewSpacePermissionExistsForAnonymousUser
(Space entitySpace, Collection<SpacePermission> permissionsToAdd) Validates that Read Space permission exists for anonymous users.SpacePermissionsValidator.validateViewSpacePermissionExistsForGroup
(Space entitySpace, Collection<SpacePermission> permissionsToAdd, String groupName) Validates that Read Space permission exists for the given group.SpacePermissionsValidator.validateViewSpacePermissionExistsForUser
(Space entitySpace, Collection<SpacePermission> permissionsToAdd, ConfluenceUser user) Validates that Read Space permission exists for the given user.SpacePermissionsValidator.validateViewSpacePermissionWillBeAdded
(Collection<SpacePermission> permissionsToAdd) -
Uses of ValidationResult in com.atlassian.confluence.api.impl.service.relation
Methods in com.atlassian.confluence.api.impl.service.relation that return ValidationResultModifier and TypeMethodDescription -
Uses of ValidationResult in com.atlassian.confluence.api.impl.service.server
Methods in com.atlassian.confluence.api.impl.service.server that return ValidationResultModifier and TypeMethodDescriptionServerInformationServiceValidatorImpl.validateGetServerInformation()
-
Uses of ValidationResult in com.atlassian.confluence.api.impl.service.system
Methods in com.atlassian.confluence.api.impl.service.system that return ValidationResultModifier and TypeMethodDescriptionClusterServiceImpl.ValidatorImpl.validateAdminPermissionOnSystem()
-
Uses of ValidationResult in com.atlassian.confluence.api.impl.service.watch
Methods in com.atlassian.confluence.api.impl.service.watch that return ValidationResultModifier and TypeMethodDescriptionWatchServiceImpl.ValidatorImpl.validateFindUsersWatchingContentPaginated
(ContentId contentId) WatchServiceImpl.ValidatorImpl.validateFindUsersWatchingSpacePaginated
(String spaceKey) final ValidationResult
WatchServiceImpl.ValidatorImpl.validateWatchContent
(com.atlassian.sal.api.user.UserKey userKey, ContentId contentId) final ValidationResult
WatchServiceImpl.ValidatorImpl.validateWatchSpace
(com.atlassian.sal.api.user.UserKey userKey, String spaceKey) -
Uses of ValidationResult in com.atlassian.confluence.api.model.permissions.spi
Methods in com.atlassian.confluence.api.model.permissions.spi that return ValidationResultModifier 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.Methods in com.atlassian.confluence.api.model.permissions.spi that return types with arguments of type ValidationResultModifier 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 ValidationResult in com.atlassian.confluence.api.model.relations
Methods in com.atlassian.confluence.api.model.relations that return ValidationResultModifier and TypeMethodDescriptionstatic <S extends Relatable,
T extends Relatable>
ValidationResultRelationDescriptors.canRelate
(S source, RelationDescriptor<S, T> relationDescriptor, T target) Deprecated.since 5.11.ReturnsValidationResult
, which indicates if two given entities may form a relation, described by thisRelationDescriptor
object -
Uses of ValidationResult in com.atlassian.confluence.api.model.validation
Subinterfaces of ValidationResult in com.atlassian.confluence.api.model.validationModifier and TypeInterfaceDescriptioninterface
A validation result that also encapsulates the result of a merge operation.Classes in com.atlassian.confluence.api.model.validation that implement ValidationResultModifier and TypeClassDescriptionclass
class
Represents the simplest kind of ValidationResult.Fields in com.atlassian.confluence.api.model.validation declared as ValidationResultModifier and TypeFieldDescriptionstatic final ValidationResult
SimpleValidationResult.FORBIDDEN
A singleton unauthorized result.static final ValidationResult
SimpleValidationResult.NOT_ALLOWED_IN_READ_ONLY_MODE
A singleton notAllowedInReadOnlyMode resultstatic final ValidationResult
SimpleValidationResult.VALID
A singleton valid result.Methods in com.atlassian.confluence.api.model.validation that return ValidationResultModifier and TypeMethodDescriptionSimpleValidationResult.Builder.build()
static ValidationResult
SimpleValidationResults.conflictResult
(String message, Object... args) A conflict result usually occurs when trying to create something that already existsstatic ValidationResult
SimpleValidationResults.forbiddenResult
(String message, Object... args) static ValidationResult
SimpleValidationResults.invalidResult
(String message, Object... args) static ValidationResult
SimpleValidationResults.notAuthenticatedResult
(String message, Object... args) static ValidationResult
SimpleValidationResults.notFoundResult
(String message, Object... args) static ValidationResult
SimpleValidationResults.notImplementedResult
(String message, Object... args) To be used where some functionality hasn't been implemented.static ValidationResult
SimpleValidationResults.paymentRequiredResult
(String message, Object... args) Methods in com.atlassian.confluence.api.model.validation that return types with arguments of type ValidationResultModifier and TypeMethodDescriptionstatic BiFunction
<String, ValidationResult, ? extends BadRequestException> ServiceExceptionSupplier.badRequestExceptionSupplier()
static BiFunction
<String, ValidationResult, ? extends ConflictException> ServiceExceptionSupplier.conflictExceptionSupplier()
static BiFunction
<String, ValidationResult, ? extends GoneException> ServiceExceptionSupplier.goneExceptionSupplier()
ServiceExceptionSupplier.licenseUnavailableExceptionSupplier()
ServiceExceptionSupplier.notAuthenticatedExceptionSupplier()
static BiFunction
<String, ValidationResult, ? extends NotFoundException> ServiceExceptionSupplier.notFoundExceptionSupplier()
static BiFunction
<String, ValidationResult, ? extends NotImplementedServiceException> ServiceExceptionSupplier.notImplementedSupplier()
static BiFunction
<String, ValidationResult, ? extends PermissionException> ServiceExceptionSupplier.permissionExceptionExceptionSupplier()
Methods in com.atlassian.confluence.api.model.validation with parameters of type ValidationResultMethod parameters in com.atlassian.confluence.api.model.validation with type arguments of type ValidationResultModifier and TypeMethodDescriptionSimpleValidationResult.Builder.withExceptionSupplier
(BiFunction<String, ValidationResult, ? extends ServiceException> exceptionSupplier) Constructors in com.atlassian.confluence.api.model.validation with parameters of type ValidationResultModifierConstructorDescriptionApiBackedActionHelper
(ValidationResult validationResult) Builder
(ValidationResult validationResult) -
Uses of ValidationResult in com.atlassian.confluence.api.service.colorscheme
Methods in com.atlassian.confluence.api.service.colorscheme that return ValidationResultModifier and TypeMethodDescriptionGlobalColorSchemeService.Validator.validateUpdate()
Validate that global color scheme can be updated, including permission checks.SpaceColorSchemeService.Validator.validateUpdate
(String spaceKey) Validate that space color scheme can be updated, including permission checks.SpaceColorSchemeService.Validator.validateView
(String spaceKey) Validate that space color scheme can be updated, including permission checks. -
Uses of ValidationResult in com.atlassian.confluence.api.service.content
Methods in com.atlassian.confluence.api.service.content that return ValidationResultModifier and TypeMethodDescriptionCategoryService.Validator.validateAddCategory
(String spaceKey, String categoryName) Validates if a user can add a category in a specified space.ContentLabelService.Validator.validateAddLabels
(ContentId contentId, Label... labels) Validates that the list of labels can be added to the given contentSpaceService.Validator.validateArchive
(Space spaceToArchive) Validate that a Space can be archived, including permission checks.ContentPropertyService.Validator.validateCreate
(JsonContentProperty newProperty) Validate that a content property can be created, including permission checks.ContentService.Validator.validateCreate
(Content newContent) Validate that a piece of content can be included, including permission checks.SpacePropertyService.Validator.validateCreate
(JsonSpaceProperty newProperty) Validate that a space property can be created, including permission checks.SpaceService.Validator.validateCreate
(Space newSpace, boolean isPrivate) Validate that a Space can be added, including permission checks.SpaceService.Validator.validateCreatePersonalSpaceForSelf
(PersonalSpaceDetailsForCreation spaceDetails) Validate that a personal Space can be created for self, including permission checks.SpaceService.Validator.validateCreatePersonalSpaceForUser
(PersonalSpaceDetailsForCreation spaceDetails, String username) Validate that a personal Space can be created for a target User, including permission checks.AttachmentService.Validator.validateDelete
(Content attachment) Validate that an Attachment can be deleted, including permission checks.ContentDraftService.DraftValidator.validateDelete
(ContentId contentId) Validates whether a draft can be deletedContentPropertyService.Validator.validateDelete
(JsonContentProperty property) Validate that a content property can be deleted, including permission checks.ContentService.Validator.validateDelete
(Content content) Validate that a piece of content can be deleted, including permission checks.ContentVersionService.Validator.validateDelete
(ContentId contentId, int versionNumber) Validate delete operationSpacePropertyService.Validator.validateDelete
(JsonSpaceProperty property) Validate that a space property can be deleted, including permission checks.SpaceService.Validator.validateDelete
(Space spaceToDelete) Validate that a Space can be deleted, including permission checks.CategoryService.Validator.validateEditCategory
(String spaceKey, String categoryName) Validates if a user can edit a category in a specified space.SpaceService.Validator.validateEmptyTrash
(String spaceKey) Validate that a Space can be trash emptied, including permission checks.SpaceLabelService.Validator.validateFindRelatedContentLabelsPaginated
(String labelName, String spaceKey) Validates if find can be performed related to the label on a given space.ContentVersionService.Validator.validateGet
(ContentId contentId) Validate get operationSpaceService.Validator.validateGet
(String spaceKey) Validate that a Space can be retrieved, including permission checks.LabelService.Validator.validateLabelExists
(String labelName) Validates if a label exists with a valid label name.ContentTrashService.Validator.validatePurge
(Content content) Validate that a piece of content can be purged, including permission checks.ContentTrashService.Validator.validateRestore
(Content content) Validate that a piece of content can be restored, including permission checks.ContentVersionService.Validator.validateRestore
(ContentId contentId, VersionRestoreParameters restData) Validate restore operationSpaceService.Validator.validateRestore
(Space spaceToRestore) Validate that a Space can be restored, including permission checks.ContentTrashService.Validator.validateTrash
(Content content) Validate that a piece of content can be trashed, including permission checks.ContentPropertyService.Validator.validateUpdate
(JsonContentProperty property) Validate that a content property can be updated, including permission checks.SpacePropertyService.Validator.validateUpdate
(JsonSpaceProperty property) Validate that a space property can be updated, including permission checks.SpaceService.Validator.validateUpdate
(Space space) Validate that a Space can be updated, including permission checks. -
Uses of ValidationResult in com.atlassian.confluence.api.service.content.template
Methods in com.atlassian.confluence.api.service.content.template that return ValidationResultModifier and TypeMethodDescriptionContentTemplateService.Validator.validateCreate
(ContentTemplate newContentTemplate) Validate that the specified contentTemplate can be created by the current user.default ValidationResult
ContentTemplateService.Validator.validateCreateInstance
(ContentBlueprintInstance instance) Validate instance is legit to create draft/page instance.ContentTemplateService.Validator.validateDelete
(ContentTemplateId contentTemplateId) Validate that a piece of contentTemplate can be deleted, including permission checks.ContentTemplateService.Validator.validateGet
(ContentTemplateId contentTemplateId) Validate that current user has permission to view a particular template.ContentTemplateService.Validator.validateUpdate
(ContentTemplate contentTemplate) -
Uses of ValidationResult in com.atlassian.confluence.api.service.exceptions
Methods in com.atlassian.confluence.api.service.exceptions that return types with arguments of type ValidationResultConstructors in com.atlassian.confluence.api.service.exceptions with parameters of type ValidationResultModifierConstructorDescriptionBadRequestException
(String message, ValidationResult validationResult) ConflictException
(String message, ValidationResult validationResult) GoneException
(String message, ValidationResult validationResult) InternalServerException
(String message, ValidationResult validationResult) LicenseUnavailableException
(String message, ValidationResult validationResult) NotAuthenticatedException
(String message, ValidationResult validationResult) NotFoundException
(String message, ValidationResult validationResult) PermissionException
(String message, ValidationResult validationResult) ReadOnlyException
(String message, ValidationResult validationResult) SeeOtherException
(String message, ValidationResult validationResult) ServiceException
(String message, ValidationResult validationResult) -
Uses of ValidationResult in com.atlassian.confluence.api.service.exceptions.unchecked
Constructors in com.atlassian.confluence.api.service.exceptions.unchecked with parameters of type ValidationResultModifierConstructorDescriptionNotImplementedServiceException
(String message, ValidationResult validationResult) -
Uses of ValidationResult in com.atlassian.confluence.api.service.instance
Methods in com.atlassian.confluence.api.service.instance that return ValidationResultModifier and TypeMethodDescriptionInstanceMetricsServiceValidator.validateGetInstanceMetrics()
Validate that the requesting user is able to view instance metrics. -
Uses of ValidationResult in com.atlassian.confluence.api.service.people
Methods in com.atlassian.confluence.api.service.people that return ValidationResultModifier and TypeMethodDescriptionPersonService.Validator.validateAddMembership
(String username, String groupName) Validate that the requesting user has permission to add the given user to the given group.PersonService.Validator.validateChangeMyPassword
(PasswordChangeDetails passwordChangeDetails) Validate that the input supplied for changing current user's password is valid.PersonService.Validator.validateChangePassword
(String userName, String password) Validate that the input supplied for changing a user's password is valid.PersonService.Validator.validateConfluenceAdmin()
Validate that the requesting user has Confluence Admin permissions.GroupService.Validator.validateCreate
(String groupName) Validate that the logged-in user has permission to create a group with the given name.GroupService.Validator.validateDelete
(String groupName) Validate that the logged-in user has permission to delete a group with the given name.PersonService.Validator.validateDelete
(Person personToDelete) Validate that the current user has permissions to remove the given personPersonService.Validator.validateDisable
(String username) Validate that the requesting user has permission to disable the given user.PersonService.Validator.validateEnable
(String username) Validate that the requesting user has permission to enable the given user.PersonService.Validator.validateRemoveMembership
(String username, String groupName) Validate that the requesting user has permission to remove the given user from the given group.PersonService.Validator.validateUpdateUser
(UserDetailsForUpdate userDetailsForUpdate) Validate that the input supplied for changing current user's details is valid.PersonService.Validator.validateUpdateUser
(String username, UserDetailsForUpdate userDetailsForUpdate) Validate that the input supplied for changing other user's details is valid.PersonService.Validator.validateUserCreate
(UserDetailsForCreation userDetailsForCreation) Validate the correctness of user details for a new user creationGroupService.Validator.validateView()
Validate that the logged-in user has permission to view groups.PersonService.Validator.validateView()
Validate that current user can view user profiles -
Uses of ValidationResult in com.atlassian.confluence.api.service.permissions
Methods in com.atlassian.confluence.api.service.permissions that return ValidationResultModifier 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.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 specifiedContentRestrictionService.Validator.validateAddRestrictions
(ContentId contentId, Collection<? extends ContentRestriction> contentRestrictions) Validates that: 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 specified Input data is enough to proceed with the operation Input data should not conflict with any restrictions existingContentRestrictionService.Validator.validateDeleteAllDirectRestrictions
(ContentId contentId) Validates that: 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 specifiedContentRestrictionService.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 specifiedContentRestrictionService.Validator.validateGetRestrictions
(ContentId contentId) Validates whether content specified exists and whether currently logged in user can read restrictions on a content specified.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 specifiedContentRestrictionService.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 userContentRestrictionService.Validator.validateUpdateRestrictions
(ContentId contentId, Collection<? extends ContentRestriction> contentRestrictions) Validates that: Content specified exists AND can be viewed by the currently logged-in user Input data is enough to proceed with the operation Currently logged-in user is allowed to alter ContentRestrictions on and edit the content specified Returns first of the failed validation results or aValidationResult
which is both authorised and valid.Methods in com.atlassian.confluence.api.service.permissions that return types with arguments of type ValidationResultModifier 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 ValidationResult in com.atlassian.confluence.api.service.relations
Methods in com.atlassian.confluence.api.service.relations that return ValidationResultModifier and TypeMethodDescription<S extends Relatable,
T extends Relatable>
ValidationResultRelationService.Validator.validateCreate
(S source, RelationDescriptor<S, T> relationDescriptor, T target) Validate create operation<S extends Relatable,
T extends Relatable>
ValidationResultRelationService.Validator.validateDelete
(S source, RelationDescriptor<S, T> relationDescriptor, T target) Validate delete operation<S extends Relatable,
T extends Relatable>
ValidationResultRelationService.Validator.validateDeleteAllWithType
(Relatable relatable, RelationDescriptor<S, T> relationDescriptor) Validate the delete all operation<S extends Relatable,
T extends Relatable>
ValidationResultRelationService.Validator.validateFetch
(S source, RelationDescriptor<S, T> relationDescriptor, T target) Validate fetch operation to check whether a user can view the specifed relation -
Uses of ValidationResult in com.atlassian.confluence.api.service.server
Methods in com.atlassian.confluence.api.service.server that return ValidationResultModifier and TypeMethodDescriptionServerInformationServiceValidator.validateGetServerInformation()
Validate that the requesting user is able to view server information. -
Uses of ValidationResult in com.atlassian.confluence.api.service.system
Methods in com.atlassian.confluence.api.service.system that return ValidationResult -
Uses of ValidationResult in com.atlassian.confluence.api.service.watch
Methods in com.atlassian.confluence.api.service.watch that return ValidationResultModifier and TypeMethodDescriptionWatchService.Validator.validateFindUsersWatchingContentPaginated
(ContentId contentId) Validate that the requesting User can view the list of Users watching the given Content identified by contentId.WatchService.Validator.validateFindUsersWatchingSpacePaginated
(String spaceKey) Validate that the requesting User can view the list of Users watching the given Space identified by spaceKey.WatchService.Validator.validateWatchContent
(com.atlassian.sal.api.user.UserKey userKey, ContentId content) Validate that the user can watch a Content.WatchService.Validator.validateWatchSpace
(com.atlassian.sal.api.user.UserKey userKey, String spaceKey) Validate that the user can see a Space. -
Uses of ValidationResult 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 ValidationResultModifier 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) static org.hamcrest.Matcher
<ValidationResult> ValidationResultMatchers.isAuthorized()
static org.hamcrest.Matcher
<ValidationResult> ValidationResultMatchers.isForbidden()
static org.hamcrest.Matcher
<ValidationResult> ValidationResultMatchers.isInvalid
(Class<? extends ServiceException> expectedExceptionClass) Methods in com.atlassian.confluence.api.testsupport.matchers.model.permissions with parameters of type ValidationResultModifier and TypeMethodDescriptionstatic boolean
ValidationResultMatchers.isAuthorized
(ValidationResult result) static boolean
ValidationResultMatchers.isForbidden
(ValidationResult result) static boolean
ValidationResultMatchers.isInvalid
(ValidationResult result, Class<? extends ServiceException> expectedExceptionClass) -
Uses of ValidationResult in com.atlassian.confluence.content.apisupport
Methods in com.atlassian.confluence.content.apisupport that return ValidationResultModifier and TypeMethodDescriptionBaseContentTypeApiSupport.validateCreate
(Content newContent) ContentCreator.validateCreate
(ConfluenceUser confluenceUser, Content newContent, Class<? extends ContentEntityObject> entityClass) ContentTypeApiSupport.validateCreate
(Content newContent) Validate the create operationDefaultContentCreator.validateCreate
(ConfluenceUser confluenceUser, Content newContent, Class<? extends ContentEntityObject> entityClass) Perform common validation checks for creation of content in a spaceCommentExtensionsSupport.validateExtensionsForCreate
(Map<String, Object> extensions, SimpleValidationResult.Builder validationResultBuilder) Validation hook for create operations.NullCommentExtensionsSupport.validateExtensionsForCreate
(Map<String, Object> extensions, SimpleValidationResult.Builder validationResultBuilder) CommentExtensionsSupport.validateExtensionsForUpdate
(Comment comment, Map<String, Object> extensions, SimpleValidationResult.Builder validationResultBuilder) Validation hook for update operations.NullCommentExtensionsSupport.validateExtensionsForUpdate
(Comment comment, Map<String, Object> extensions, SimpleValidationResult.Builder validationResultBuilder) BaseContentTypeApiSupport.validateUpdate
(Content updatedContent, T existingEntity) ContentCreator.validateUpdate
(ConfluenceUser user, Content updatedContent, ContentEntityObject entity) ContentTypeApiSupport.validateUpdate
(Content oldContent, T existingEntity) Validate the update operationDefaultContentCreator.validateUpdate
(ConfluenceUser user, Content updatedContent, ContentEntityObject entity) Perform common validation checks for updating content -
Uses of ValidationResult in com.atlassian.confluence.impl.security.content
Methods in com.atlassian.confluence.impl.security.content that return types with arguments of type ValidationResultModifier and TypeMethodDescriptionDefaultContentPermissionManager.hasContentLevelPermission
(ConfluenceUser user, String permissionType, Collection<Long> contentIds) -
Uses of ValidationResult in com.atlassian.confluence.internal
Methods in com.atlassian.confluence.internal that return types with arguments of type ValidationResultModifier and TypeMethodDescriptionContentPermissionManagerInternal.hasContentLevelPermission
(ConfluenceUser user, String permissionType, Collection<Long> contentIds) Check permission for a collection of content at once. -
Uses of ValidationResult in com.atlassian.confluence.internal.relations
Methods in com.atlassian.confluence.internal.relations that return ValidationResultModifier and TypeMethodDescriptionstatic ValidationResult
RelationUtils.validateAgainstApiModel
(RelatableEntity source, RelatableEntity target, RelationDescriptor relationDescriptor) Helper method, which can be used to validate relation based on input parameters.Methods in com.atlassian.confluence.internal.relations with parameters of type ValidationResultModifier and TypeMethodDescriptionstatic String
RelationUtils.extractError
(ValidationResult validationResult, String defaultMessage) Extracts all errors from theValidationResult
as a singleString
. -
Uses of ValidationResult in com.atlassian.confluence.internal.search.v2.lucene
Methods in com.atlassian.confluence.internal.search.v2.lucene that return ValidationResultModifier and TypeMethodDescriptionLuceneSearchLanguageChecker.validateSearchLanguage
(SearchLanguage searchLanguage) -
Uses of ValidationResult in com.atlassian.confluence.plugins.contentproperty.spaceproperty
Methods in com.atlassian.confluence.plugins.contentproperty.spaceproperty that return ValidationResultModifier and TypeMethodDescriptionSpacePropertyValidatorImpl.validateCreate
(JsonSpaceProperty newProperty) SpacePropertyValidatorImpl.validateDelete
(JsonSpaceProperty property) SpacePropertyValidatorImpl.validateUpdate
(JsonSpaceProperty property) -
Uses of ValidationResult in com.atlassian.confluence.plugins.opensearch
Methods in com.atlassian.confluence.plugins.opensearch that return ValidationResultModifier and TypeMethodDescriptionOpenSearchSearchLanguageChecker.validateSearchLanguage
(SearchLanguage searchLanguage) -
Uses of ValidationResult in com.atlassian.confluence.rest.client
Methods in com.atlassian.confluence.rest.client that return ValidationResultModifier and TypeMethodDescriptionRemoteLabelService.Validator.validateLabelExists
(String labelName) Validates if a label exists with a valid label name. -
Uses of ValidationResult in com.atlassian.confluence.rest.v2.api.model
Methods in com.atlassian.confluence.rest.v2.api.model that return ValidationResultModifier and TypeMethodDescription@Nullable ValidationResult
RestError.getData()
The data returned here is aValidationResult
so that clients can process the i18n key and arguments. -
Uses of ValidationResult in com.atlassian.confluence.rest.v2.api.model.validation
Classes in com.atlassian.confluence.rest.v2.api.model.validation that implement ValidationResultConstructors in com.atlassian.confluence.rest.v2.api.model.validation with parameters of type ValidationResult -
Uses of ValidationResult in com.atlassian.confluence.search.v2.analysis
Methods in com.atlassian.confluence.search.v2.analysis that return ValidationResultModifier and TypeMethodDescriptionSearchLanguageChecker.validateSearchLanguage
(SearchLanguage searchLanguage) Returns ValidationResult which is valid if the search language is supported and invalid otherwise. -
Uses of ValidationResult in com.atlassian.confluence.user.extras.aggregation.impl
Methods in com.atlassian.confluence.user.extras.aggregation.impl that return ValidationResult -
Uses of ValidationResult in com.atlassian.confluence.validation
Methods in com.atlassian.confluence.validation that return ValidationResultMethods in com.atlassian.confluence.validation with parameters of type ValidationResultModifier and TypeMethodDescriptionstatic MessageHolder
XWorkValidationResultSupport.addAllMessages
(MessageHolder holder, ValidationResult validationResult) static <T> Validation
<T> Validation.fail
(ValidationResult fail)