Uses of Class
com.atlassian.confluence.api.service.exceptions.ServiceException
Packages that use ServiceException
Package
Description
These REST resources are replacements for admin-level functest RPC calls and should only
be run by a sys-admin in a websudo session.
Provides implementation of Journal Service.
Confluence internal classes related to user management.
This package contains the code which communicates with Confluence via REST API.
-
Uses of ServiceException in com.atlassian.confluence.api.impl.service.accessmode
Methods in com.atlassian.confluence.api.impl.service.accessmode that throw ServiceExceptionModifier and TypeMethodDescriptionvoid
AccessModeServiceImpl.updateAccessMode
(AccessMode accessMode) <T> T
AccessModeServiceImpl.withReadOnlyAccessExemption
(Callable<T> callable) -
Uses of ServiceException in com.atlassian.confluence.api.impl.service.content
Methods in com.atlassian.confluence.api.impl.service.content that throw ServiceExceptionModifier and TypeMethodDescriptionAttachmentServiceImpl.addAttachments
(ContentId containerId, ContentStatus containerStatus, Collection<AttachmentUpload> uploads) AttachmentServiceImpl.addAttachments
(ContentId containerId, ContentStatus containerStatus, Collection<AttachmentUpload> uploads, boolean allowDuplicated, Expansions expansions) AttachmentServiceImpl.addAttachments
(ContentId containerId, Collection<AttachmentUpload> uploads) void
CategoryServiceImpl.addCategory
(String spaceKey, String labelName) ContentBodyConversionServiceImpl.convert
(ContentBody body, ContentRepresentation toFormat) ContentBodyConversionServiceImpl.convert
(ContentBody contentBody, ContentRepresentation toFormat, Expansion... expansions) ContentBodyConversionServiceImpl.convertBody
(Content content, ContentRepresentation toFormat) ContentBodyConversionServiceImpl.convertBody
(Content content, ContentRepresentation toFormat, Expansion... expansions) SpaceServiceImpl.createPersonalSpaceForSelf
(PersonalSpaceDetailsForCreation spaceDetails) SpaceServiceImpl.createPersonalSpaceForUser
(PersonalSpaceDetailsForCreation spaceDetails, String username) void
void
void
SpaceServiceImpl.delete
(long spaceId) Deletes space.void
SpaceServiceImpl.deleteSynchronously
(long spaceId) Deletes space synchronously.void
SpaceServiceImpl.emptyTrash
(String spaceKey) AttachmentExtractedTextServiceImpl.extractedText
(ContentId contentId, ContentId attachmentId, long limit) boolean
AttachmentExtractedTextServiceImpl.hasExtractedText
(ContentId contentId, ContentId attachmentId) void
AttachmentServiceImpl.moveAttachment
(ContentId attachmentId, ContentId contentId, ContentId newContentId, String newName) void
AttachmentServiceImpl.removeAttachment
(ContentId contentId, ContentId attachmentId) void
AttachmentServiceImpl.removeAttachmentVersion
(ContentId contentId, ContentId attachmentId, int version) void
CategoryServiceImpl.removeCategory
(String spaceKey, String categoryName) void
ContentLabelServiceImpl.removeLabel
(ContentId contentId, String label) Deprecated.AttachmentServiceImpl.updateData
(ContentId attachmentId, AttachmentUpload upload) ContentServiceImpl.ValidatorImpl.validateCreate
(Content newContent) -
Uses of ServiceException in com.atlassian.confluence.api.impl.service.content.draft
Methods in com.atlassian.confluence.api.impl.service.content.draft that throw ServiceExceptionModifier and TypeMethodDescriptionLegacyContentDraftServiceImpl.publishNewDraft
(Content content, Expansion... expansions) SharedContentDraftServiceImpl.publishNewDraft
(Content content, Expansion... expansions) Deprecated.since 5.9 - we use the same method for publishing drafts for new pages and for page edits -
Uses of ServiceException in com.atlassian.confluence.api.impl.service.content.factory
Methods in com.atlassian.confluence.api.impl.service.content.factory that throw ServiceExceptionModifier and TypeMethodDescriptionContentBodyFactory.build
(ContentEntityObject ceo, BodyContent bodyContent, ContentRepresentation representation) -
Uses of ServiceException in com.atlassian.confluence.api.impl.service.content.finder
Methods in com.atlassian.confluence.api.impl.service.content.finder that throw ServiceExceptionModifier and TypeMethodDescriptionContentFinderImpl.fetchMany
(ContentType type, PageRequest request) ContentFinderImpl.fetchManyWithAnyType
(PageRequest request) ContentFinderImpl.fetchManyWithoutCaching
(ContentType type, PageRequest request) ContentFinderImpl.fetchMappedByContentType
(PageRequest request) -
Uses of ServiceException in com.atlassian.confluence.api.impl.service.content.typebinding
Methods in com.atlassian.confluence.api.impl.service.content.typebinding that throw ServiceExceptionModifier and TypeMethodDescriptionAttachmentContentTypeApiSupport.getAttachments
(ContentId containerId, LimitedRequest limitedRequest, com.google.common.base.Predicate<? super Attachment> predicate, Expansions contentExpansions) -
Uses of ServiceException in com.atlassian.confluence.api.impl.service.permissions
Methods in com.atlassian.confluence.api.impl.service.permissions that throw ServiceExceptionModifier and TypeMethodDescriptionvoid
ContentRestrictionServiceImpl.addDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) ContentRestrictionServiceImpl.addRestrictions
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) ContentRestrictionServiceImpl.deleteAllDirectRestrictions
(ContentId target, Expansion... expansions) void
ContentRestrictionServiceImpl.deleteDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) ContentRestrictionServiceImpl.getRestrictions
(ContentId target, PageRequest pageRequest, Expansion... allExpansions) ContentRestrictionServiceImpl.getRestrictionsForOperation
(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... allExpansions) ContentRestrictionServiceImpl.getRestrictionsGroupByOperation
(ContentId target, Expansion... allExpansions) boolean
ContentRestrictionServiceImpl.hasDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) ContentRestrictionServiceImpl.updateRestrictions
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) -
Uses of ServiceException in com.atlassian.confluence.api.impl.service.relation
Methods in com.atlassian.confluence.api.impl.service.relation that throw ServiceExceptionModifier and TypeMethodDescription<S extends Relatable,
T extends Relatable>
RelationInstance<S, T> RelationServiceImpl.create
(RelationInstance<S, T> relationInstance) RelationServiceImpl.delete
(RelationInstance<S, T> relationInstance) -
Uses of ServiceException in com.atlassian.confluence.api.model.validation
Methods in com.atlassian.confluence.api.model.validation that return ServiceExceptionModifier and TypeMethodDescriptionSimpleMergeValidationResult.convertToServiceException
(@Nullable String errorMsg) SimpleValidationResult.convertToServiceException
(String errorMsg) default ServiceException
ValidationResult.convertToServiceException
(@Nullable String errorMsg) Converts this validation result into aServiceException
without throwing.SimpleMergeValidationResult.throwIfInvalid()
Deprecated.since 5.10 please useSimpleMergeValidationResult.throwIfNotSuccessful()
SimpleMergeValidationResult.throwIfInvalid
(String msg) Deprecated.since 5.10 please useSimpleMergeValidationResult.throwIfNotSuccessful(String)
default ServiceException
ValidationResult.throwIfInvalid()
Deprecated.since 5.10 please useValidationResult.throwIfNotSuccessful()
default ServiceException
ValidationResult.throwIfInvalid
(String msg) Deprecated.since 5.10 please useValidationResult.throwIfNotSuccessful(String)
Methods in com.atlassian.confluence.api.model.validation that return types with arguments of type ServiceExceptionMethod parameters in com.atlassian.confluence.api.model.validation with type arguments of type ServiceExceptionModifier and TypeMethodDescriptionSimpleValidationResult.Builder.withExceptionSupplier
(BiFunction<String, ValidationResult, ? extends ServiceException> exceptionSupplier) Methods in com.atlassian.confluence.api.model.validation that throw ServiceExceptionModifier and TypeMethodDescriptionSimpleMergeValidationResult.throwIfInvalid()
Deprecated.since 5.10 please useSimpleMergeValidationResult.throwIfNotSuccessful()
SimpleMergeValidationResult.throwIfInvalid
(String msg) Deprecated.since 5.10 please useSimpleMergeValidationResult.throwIfNotSuccessful(String)
default ServiceException
ValidationResult.throwIfInvalid()
Deprecated.since 5.10 please useValidationResult.throwIfNotSuccessful()
default ServiceException
ValidationResult.throwIfInvalid
(String msg) Deprecated.since 5.10 please useValidationResult.throwIfNotSuccessful(String)
void
SimpleMergeValidationResult.throwIfNotSuccessful()
void
SimpleMergeValidationResult.throwIfNotSuccessful
(String msg) default void
ValidationResult.throwIfNotSuccessful()
Converts this validation result into aServiceException
and throws it.default void
ValidationResult.throwIfNotSuccessful
(String msg) Converts this validation result into aServiceException
and throws it.void
SimpleMergeValidationResult.throwIfNotValid
(String msg) Deprecated.since 5.10 please useSimpleMergeValidationResult.throwIfNotSuccessful(String)
default void
ValidationResult.throwIfNotValid
(String msg) Deprecated.since 5.10 please useValidationResult.throwIfNotSuccessful(String)
-
Uses of ServiceException in com.atlassian.confluence.api.service.accessmode
Methods in com.atlassian.confluence.api.service.accessmode that throw ServiceExceptionModifier and TypeMethodDescriptionvoid
AccessModeService.updateAccessMode
(AccessMode accessMode) Update the access mode if the current user is a sysadmin<T> T
AccessModeService.withReadOnlyAccessExemption
(Callable<T> callable) Execute a method that needs to be exempt from read-only access check in the permission manager layer. -
Uses of ServiceException in com.atlassian.confluence.api.service.content
Methods in com.atlassian.confluence.api.service.content that throw ServiceExceptionModifier and TypeMethodDescriptionAttachmentService.addAttachments
(ContentId containerId, ContentStatus containerStatus, Collection<AttachmentUpload> uploads) Add one or more attachments to a piece ofContent
.AttachmentService.addAttachments
(ContentId containerId, ContentStatus containerStatus, Collection<AttachmentUpload> uploads, boolean allowDuplicated, Expansions expansions) Add one or more attachments to a piece ofContent
.AttachmentService.addAttachments
(ContentId containerId, Collection<AttachmentUpload> uploads) Add one or more attachments to a piece ofContent
.void
CategoryService.addCategory
(String spaceKey, String categoryName) Adds a category to a space's description.Adds the given labels to the specified contentContentBodyConversionService.convert
(ContentBody body, ContentRepresentation representation) Same as callingContentBodyConversionService.convert(ContentBody, ContentRepresentation, Expansion...)
with an empty expansion.ContentBodyConversionService.convert
(ContentBody body, ContentRepresentation representation, Expansion... expansions) Convert a ContentBody value into another format, performing validation during the conversion.ContentBodyConversionService.convertBody
(Content content, ContentRepresentation representation) Same as callingContentBodyConversionService.convertBody(Content, ContentRepresentation, Expansion...)
with an empty expansion.ContentBodyConversionService.convertBody
(Content content, ContentRepresentation representation, Expansion... expansions) Convert the single ContentBody value in aContent
body map into another format, performing validation during the conversion.default void
ContentPropertyService.copyAllJsonContentProperties
(ContentSelector source, ContentSelector target) Copy all JsonContentProperty from one content to other content, default implementation do nothingContentPropertyService.create
(JsonContentProperty newProperty) Create a content property.Create a piece of content.Create a piece of content.SpacePropertyService.create
(JsonSpaceProperty newProperty) Create a content property.Create a new space.SpaceService.createPersonalSpaceForSelf
(PersonalSpaceDetailsForCreation spaceDetails) Create a personal space for self.SpaceService.createPersonalSpaceForUser
(PersonalSpaceDetailsForCreation spaceDetails, String username) Create a personal space for a user by username.void
Moves an Attachment to trash.void
ContentPropertyService.delete
(JsonContentProperty property) Removes a content property from the system.void
Removes a piece of Content from the system.void
SpaceService.delete
(long spaceId) Deletes space.Delete the given space.void
SpaceService.deleteSynchronously
(long spaceId) Deletes space synchronously.void
SpaceService.emptyTrash
(String spaceKey) Purge all the trash in a given space.AttachmentExtractedTextService.extractedText
(ContentId contentId, ContentId attachmentId, long limit) ContentService.ContentFetcher.fetchMany
(ContentType type, PageRequest request) ContentService.ContentFetcher.fetchManyWithAnyType
(PageRequest request) ContentService.ContentFetcher.fetchManyWithoutCaching
(ContentType type, PageRequest request) ContentService.ContentFetcher.fetchMappedByContentType
(PageRequest request) boolean
AttachmentExtractedTextService.hasExtractedText
(ContentId contentId, ContentId attachmentId) void
AttachmentService.moveAttachment
(ContentId attachmentId, ContentId contentId, ContentId newContentId, String newName) Move an attachment to a different content entity object and/or give it a new name.void
AttachmentService.removeAttachment
(ContentId contentId, ContentId attachmentId) Trashes an attachment by attachmentIdvoid
CategoryService.removeCategory
(String spaceKey, String categoryName) Removes a category from a space's description.Updates the non-data parts of an AttachmentContent
instance.ContentPropertyService.update
(JsonContentProperty property) Updates a content property.Updates a piece of content.Updates a space.AttachmentService.updateData
(ContentId attachmentId, AttachmentUpload upload) Updates the data part of an AttachmentContent
instance.ContentService.Validator.validateCreate
(Content newContent) Validate that a piece of content can be included, including permission checks. -
Uses of ServiceException in com.atlassian.confluence.api.service.content.template
Methods in com.atlassian.confluence.api.service.content.template that throw ServiceExceptionModifier and TypeMethodDescriptionContentTemplateService.Validator.validateCreate
(ContentTemplate newContentTemplate) Validate that the specified contentTemplate can be created by the current user. -
Uses of ServiceException in com.atlassian.confluence.api.service.exceptions
Subclasses of ServiceException in com.atlassian.confluence.api.service.exceptionsModifier and TypeClassDescriptionclass
Thrown when the data in the incoming request is incomplete or otherwise invalid.class
Thrown when a request cannot be performed due to the state of the content, as per the semantics of the HTTP 409 'Conflict' status code.class
Thrown when things that are expected to be found are GONE.class
Custom Exception thrown when a URL is outside the whitelisted URLsclass
A ServiceException wrapper for a general runtime exception.class
Thrown when no more licenses available to perform an operation as per the semantics of the HTTP 402 'Payment Required' status code.class
Thrown when user is not authenticated as per the semantics of the HTTP 401 'Unauthorised' status code.class
Thrown when things that are expected to be found are NOT found.class
Raised when a user attempts to perform an action they do not have permission for.class
This exception is thrown when things that are expected to be read-onlyclass
Raised to return an http 303 'see other' to the client. -
Uses of ServiceException in com.atlassian.confluence.api.service.exceptions.unchecked
Modifier and TypeClassDescriptionclass
Indicates that a particular service is not yet implemented, maps to a 501 error -
Uses of ServiceException in com.atlassian.confluence.api.service.journal
Methods in com.atlassian.confluence.api.service.journal that throw ServiceExceptionModifier and TypeMethodDescriptionint
JournalService.countEntries
(@NonNull JournalIdentifier journalId) Counts the number of entries in a journal.long
JournalService.enqueue
(@NonNull JournalEntry entry) Adds the given entry to a journal.JournalService.peek
(@NonNull JournalIdentifier journalId, int maxEntries) Return a copy of journal entries that are waiting to be processed.<V> V
JournalService.processNewEntries
(@NonNull JournalIdentifier journalId, int maxEntries, @NonNull Function<Iterable<JournalEntry>, EntryProcessorResult<V>> entryProcessor) Processes journal entries that were added since the last time this method was called for this journal on this cluster node.void
JournalService.reset
(@NonNull JournalIdentifier journalId) Resets the state of the journal so that all entries currently in the journal will be skipped. -
Uses of ServiceException in com.atlassian.confluence.api.service.permissions
Methods in com.atlassian.confluence.api.service.permissions that throw ServiceExceptionModifier and TypeMethodDescriptionvoid
ContentRestrictionService.addDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) Adds singular directContentRestriction
foroperationKey
andsubject
to the content identified bycontentId
parameter.ContentRestrictionService.addRestrictions
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) Attempts to add all the restrictions specified to a piece of content identified bycontentId
.ContentRestrictionService.deleteAllDirectRestrictions
(ContentId target, Expansion... expansions) Attempts to delete all the restrictions specified directly on a piece of content identified bycontentId
.void
ContentRestrictionService.deleteDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) Deletes singular directContentRestriction
foroperationKey
andsubject
from the content identified bycontentId
parameter.ContentRestrictionService.getRestrictionsForOperation
(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... expansions) Retrieves all restrictions for given operation key on given content.ContentRestrictionService.getRestrictionsGroupByOperation
(ContentId target, Expansion... expansions) List all restrictions that exist directly on the given content.boolean
ContentRestrictionService.hasDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) Returnstrue
if the User or Group specified by thesubject
parameter has restriction(s) for theoperationKey
operation which are specified directly on the Content identified bycontentId
parameter.ContentRestrictionService.updateRestrictions
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) Sets all the restrictions specified to a piece of content identified bycontentId
, replacing any existing permissions. -
Uses of ServiceException in com.atlassian.confluence.api.service.relations
Methods in com.atlassian.confluence.api.service.relations that throw ServiceExceptionModifier and TypeMethodDescription<S extends Relatable,
T extends Relatable>
RelationInstance<S, T> RelationService.create
(RelationInstance<S, T> relationInstance) Creates a directed relation between two relatable entities.RelationService.delete
(RelationInstance<S, T> relationInstance) Remove a relation if it exists between a source and a target relatable entityRelationService.RelatableFinder.fetchMany
(PageRequest pageRequest, Expansion... expansions) -
Uses of ServiceException in com.atlassian.confluence.api.testsupport.matchers.model.content
Methods in com.atlassian.confluence.api.testsupport.matchers.model.content that return types with arguments of type ServiceExceptionModifier and TypeMethodDescriptionstatic org.hamcrest.Matcher
<ServiceException> ContentMatchers.hasValidationError
(String key) -
Uses of ServiceException in com.atlassian.confluence.api.testsupport.matchers.model.permissions
Method parameters in com.atlassian.confluence.api.testsupport.matchers.model.permissions with type arguments of type ServiceExceptionModifier and TypeMethodDescriptionstatic org.hamcrest.Matcher
<Map<Target, ValidationResult>> ValidationResultMatchers.allInvalid
(Iterable<Target> targets, Class<? extends ServiceException> expectedExceptionClass) static org.hamcrest.Matcher
<OperationCheck> OperationCheckMatchers.isInvalid
(Person person, Target target, Class<? extends ServiceException> expectedExceptionClass) static boolean
ValidationResultMatchers.isInvalid
(ValidationResult result, Class<? extends ServiceException> expectedExceptionClass) static org.hamcrest.Matcher
<ValidationResult> ValidationResultMatchers.isInvalid
(Class<? extends ServiceException> expectedExceptionClass) -
Uses of ServiceException in com.atlassian.confluence.content.service.experimental
Methods in com.atlassian.confluence.content.service.experimental that throw ServiceExceptionModifier and TypeMethodDescriptionPageUpdateService.prepare
(long id, Modification<AbstractPage> modification, @Nullable SaveContext saveContext) Prepare content (page or blogpost) for update.void
PageUpdateService.update
(PreparedAbstractPage preparedAbstractPage) Perform update of page or blogpost. -
Uses of ServiceException in com.atlassian.confluence.functest.rest
Methods in com.atlassian.confluence.functest.rest that throw ServiceExceptionModifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
BlogPostResource.moveBlogPostToSpace
(long id, String targetSpaceKey) jakarta.ws.rs.core.Response
BlogPostResource.setLastModificationDate
(long id, String lastModificationDate) -
Uses of ServiceException in com.atlassian.confluence.functest.rest.admin
Methods in com.atlassian.confluence.functest.rest.admin that throw ServiceExceptionModifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
SpaceResource.deleteSpaceById
(long spaceId) -
Uses of ServiceException in com.atlassian.confluence.impl.index
Methods in com.atlassian.confluence.impl.index that throw ServiceExceptionModifier and TypeMethodDescription<V> V
DefaultIndexJournalService.processNewEntries
(@NonNull JournalIdentifier journalId, int maxEntries, @NonNull Function<Iterable<JournalEntry>, EntryProcessorResult<V>> entryProcessor) -
Uses of ServiceException in com.atlassian.confluence.impl.journal
Methods in com.atlassian.confluence.impl.journal that throw ServiceExceptionModifier and TypeMethodDescriptionint
DefaultJournalService.countEntries
(@NonNull JournalIdentifier journalId) void
DefaultJournalManager.enqueue
(@NonNull Collection<JournalEntry> entries) long
DefaultJournalService.enqueue
(@NonNull JournalEntry entry) void
JournalManager.enqueue
(@NonNull Collection<JournalEntry> entries) Adds a collection of entries to a journal.DefaultJournalService.peek
(@NonNull JournalIdentifier journalId, int maxEntries) <V> V
DefaultJournalService.processNewEntries
(@NonNull JournalIdentifier journalId, int maxEntries, @NonNull Function<Iterable<JournalEntry>, EntryProcessorResult<V>> entryProcessor) void
DefaultJournalService.reset
(@NonNull JournalIdentifier journalId) -
Uses of ServiceException in com.atlassian.confluence.impl.retention
Methods in com.atlassian.confluence.impl.retention that throw ServiceExceptionModifier and TypeMethodDescriptionInMemorySpacePropertyService.create
(JsonSpaceProperty newProperty) -
Uses of ServiceException in com.atlassian.confluence.impl.service.finder.content
Methods in com.atlassian.confluence.impl.service.finder.content that throw ServiceExceptionModifier and TypeMethodDescriptionNoopContentFinder.fetchMany
(ContentType type, PageRequest request) NoopContentFinder.fetchManyWithAnyType
(PageRequest request) NoopContentFinder.fetchManyWithoutCaching
(ContentType type, PageRequest request) NoopContentFinder.fetchMappedByContentType
(PageRequest request) -
Uses of ServiceException in com.atlassian.confluence.internal.user
Methods in com.atlassian.confluence.internal.user that throw ServiceExceptionModifier and TypeMethodDescriptionprotected List
<com.atlassian.crowd.embedded.api.SearchRestriction> UserSearchServiceInternalImpl.convertToSearchRestrictions
(String searchTerm, com.atlassian.crowd.search.query.entity.restriction.Property<String> property) protected List
<com.atlassian.crowd.embedded.api.SearchRestriction> UserSearchServiceInternalImpl.convertToSearchRestrictions
(String searchString, List<com.atlassian.crowd.search.query.entity.restriction.Property<String>> properties) io.atlassian.fugue.Pair
<List<String>, PageResponse<ConfluenceUser>> UserSearchServiceInternal.doMemberOfGroupsSearch
(PageRequest pageRequest, GroupSearchRequest searchRequest) io.atlassian.fugue.Pair
<List<String>, PageResponse<ConfluenceUser>> UserSearchServiceInternalImpl.doMemberOfGroupsSearch
(PageRequest pageRequest, GroupSearchRequest searchRequest) UserSearchServiceInternal.doUserSearch
(PageRequest pageRequest, UserSearchRequest searchRequest) UserSearchServiceInternalImpl.doUserSearch
(PageRequest pageRequest, UserSearchRequest searchRequest) protected String
UserSearchServiceInternalImpl.removeWildcards
(String term) -
Uses of ServiceException in com.atlassian.confluence.plugins.contentproperty
Methods in com.atlassian.confluence.plugins.contentproperty that throw ServiceExceptionModifier and TypeMethodDescriptionvoid
ContentPropertyServiceImpl.copyAllJsonContentProperties
(ContentSelector source, ContentSelector target) ContentPropertyServiceImpl.create
(JsonContentProperty newProperty) void
ContentPropertyServiceImpl.delete
(JsonContentProperty property) ContentPropertyServiceImpl.update
(JsonContentProperty property) -
Uses of ServiceException in com.atlassian.confluence.plugins.contentproperty.spaceproperty
Methods in com.atlassian.confluence.plugins.contentproperty.spaceproperty that throw ServiceException -
Uses of ServiceException in com.atlassian.confluence.plugins.graphql.providers
Methods in com.atlassian.confluence.plugins.graphql.providers that throw ServiceExceptionModifier and TypeMethodDescriptionChildContentProvider.attachments
(graphql.schema.DataFetchingEnvironment env, String expand, Integer parentVersion, int offset, String afterOffset, int limit, jakarta.ws.rs.core.UriInfo uriInfo) ChildContentProvider.children
(graphql.schema.DataFetchingEnvironment env, String expand, String type, Integer parentVersion, int offset, String afterOffset, int limit, jakarta.ws.rs.core.UriInfo uriInfo) ChildContentProvider.comments
(graphql.schema.DataFetchingEnvironment env, String expand, Integer parentVersion, int offset, String afterOffset, int limit, Set<String> location, String depth, jakarta.ws.rs.core.UriInfo uriInfo) ContentLabelsProvider.labels
(List<String> prefixes, int offset, String afterOffset, int limit, jakarta.ws.rs.core.UriInfo uriInfo, graphql.schema.DataFetchingEnvironment env) ContentPropertyProvider.properties
(String key, String expand, int start, int limit, jakarta.ws.rs.core.UriInfo uriInfo, graphql.schema.DataFetchingEnvironment env) RecentSpacesProvider.recentSpaces
(graphql.schema.DataFetchingEnvironment env, int limit) Get recently viewed spaces for the current user. -
Uses of ServiceException in com.atlassian.confluence.plugins.maintenance.service.impl
Methods in com.atlassian.confluence.plugins.maintenance.service.impl that throw ServiceExceptionModifier and TypeMethodDescriptionvoid
MaintenanceServiceImpl.updateMaintenanceInfo
(MaintenanceInfo maintenanceInfo) -
Uses of ServiceException in com.atlassian.confluence.plugins.restapi.resources
Methods in com.atlassian.confluence.plugins.restapi.resources that throw ServiceExceptionModifier and TypeMethodDescriptionUserWatchResource.addContentWatcher
(com.atlassian.sal.api.user.UserKey key, String username, ContentId contentId) UserWatchResource.addSpaceWatch
(com.atlassian.sal.api.user.UserKey key, String username, List<ContentType> contentTypes, String spaceKey) ChildContentResource.children
(ContentId contentId, String expand, Integer parentVersion, int start, int limit, jakarta.ws.rs.core.UriInfo uriInfo) ChildContentResource.childrenOfType
(ContentId contentId, ContentType type, String expand, Integer parentVersion, int start, int limit, jakarta.ws.rs.core.UriInfo uriInfo) ChildContentResource.commentsOfContent
(ContentId contentId, String expand, Integer parentVersion, int start, int limit, Set<String> location, String depth, jakarta.ws.rs.core.UriInfo uriInfo) SpaceResource.contentsWithType
(String spaceKey, String expand, int limit, String cursor, jakarta.ws.rs.core.UriInfo uriInfo) SpaceResource.contentsWithType
(String spaceKey, String type, String depth, String expand, int start, int limit, jakarta.ws.rs.core.UriInfo uriInfo) ContentBodyResource.convert
(ContentBody body, ContentRepresentation toRepresentation, String expand) ContentPropertyResource.create
(ContentId contentId, JsonContentProperty newProperty) ContentPropertyResource.create
(ContentId contentId, String key, JsonContentProperty newProperty) SpacePropertyResource.create
(String spaceKey, JsonSpaceProperty newProperty) SpacePropertyResource.create
(String spaceKey, String propertyKey, JsonSpaceProperty newProperty) AttachmentResource.createAttachments
(ContentId containerId, ContentStatus containerStatus, boolean allowDuplicated, String expand, List<com.atlassian.plugins.rest.api.multipart.FilePart> fileParts, @Nullable List<com.atlassian.plugins.rest.api.multipart.FilePart> comments, @Nullable List<com.atlassian.plugins.rest.api.multipart.FilePart> minorEdits, @Nullable List<com.atlassian.plugins.rest.api.multipart.FilePart> hiddens) ContentResource.createContent
(Content content, ContentStatus status, String expand) AdminSpaceResource.createPersonalSpace
(String username, PersonalSpaceDetailsForCreation newSpaceDetail) SpaceResource.createPersonalSpace
(PersonalSpaceDetailsForCreation newSpaceDetail) SpaceResource.createPrivateSpace
(Space newSpace) SpaceResource.createSpace
(Space newSpace) jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
ContentResource.delete
(ContentId contentId, ContentStatus status) jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
ContentLabelsResource.deleteLabel
(ContentId contentId, String label) jakarta.ws.rs.core.Response
ContentLabelsResource.deleteLabelWithQueryParam
(ContentId contentId, String label) DescendantContentResource.descendants
(ContentId contentId, String expand, jakarta.ws.rs.core.UriInfo uriInfo) DescendantContentResource.descendantsOfType
(ContentId contentId, ContentType type, String expand, int start, int limit, jakarta.ws.rs.core.UriInfo uriInfo) ContentPropertyResource.findAll
(ContentId contentId, String expand, int start, int limit, jakarta.ws.rs.core.UriInfo uriInfo) SpacePropertyResource.get
(String spaceKey, String expand, int start, int limit, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.Response
AttachmentResource.getAttachmentExtractedText
(ContentId contentId, ContentId attachmentId, long limit) AttachmentResource.getAttachments
(ContentId contentId, String expand, int start, int limit, String filename, String mediaType, jakarta.ws.rs.core.UriInfo uriInfo) ClusterResource.getClusterNodeStatuses
(int start, int limit, jakarta.ws.rs.core.UriInfo uriInfo) ContentResource.getContent
(String type, String spaceKey, String title, List<ContentStatus> statuses, String postingDay, String expand, int start, int limit, List<String> ids, jakarta.ws.rs.core.UriInfo uriInfo, String username) ContentResource.getContentById
(ContentId id, List<ContentStatus> statuses, Integer version, String expand, String username) ContentResource.getHistory
(ContentId contentId, String expand) ContentResource.getMacroBodyByHash
(ContentId contentId, int versionId, String hash) Deprecated.ContentResource.getMacroBodyByMacroId
(ContentId contentId, int versionId, String macroId) jakarta.ws.rs.core.Response
UserWatchResource.isWatchingContent
(com.atlassian.sal.api.user.UserKey key, String username, ContentId contentId) jakarta.ws.rs.core.Response
UserWatchResource.isWatchingSpace
(com.atlassian.sal.api.user.UserKey key, String username, ContentType contentType, String spaceKey) ContentLabelsResource.labels
(ContentId contentId, List<String> prefixes, int offset, int limit, jakarta.ws.rs.core.UriInfo uriInfo) LabelResource.labels
(String labelName, String owner, String namespace, String spaceKey, int start, int limit, jakarta.ws.rs.core.UriInfo uriInfo) void
AttachmentResource.move
(ContentId contentId, ContentId attachmentId, ContentId newContentId, String newName) LabelResource.popular
(int start, int limit, jakarta.ws.rs.core.UriInfo uriInfo) ContentBlueprintResource.publishLegacyDraft
(ContentId draftId, Content content, ContentStatus status, String expand) ContentBlueprintResource.publishSharedDraft
(ContentId draftId, Content content, ContentStatus status, String expand) LabelResource.recent
(int start, int limit, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.Response
AttachmentResource.removeAttachment
(ContentId contentId, ContentId attachmentId) jakarta.ws.rs.core.Response
AttachmentResource.removeAttachmentVersion
(ContentId contentId, ContentId attachmentId, int version) jakarta.ws.rs.core.Response
UserWatchResource.removeContentWatcher
(com.atlassian.sal.api.user.UserKey key, String username, ContentId contentId) jakarta.ws.rs.core.Response
UserWatchResource.removeSpaceWatch
(com.atlassian.sal.api.user.UserKey key, String username, List<ContentType> contentTypes, String spaceKey) ContentResource.scanContent
(String spaceKey, List<ContentStatus> statuses, String expand, int limit, String cursor, String type, jakarta.ws.rs.core.UriInfo uriInfo) SpaceResource.spaces
(String spaceKey, List<String> spaceKeys, List<String> spaceIds, String type, String status, List<String> labelNames, List<String> contentLabelNames, Boolean favourite, Boolean hasRetentionPolicy, String expand, int offset, String afterOffset, int limit, String username, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.Response
ContentPropertyResource.update
(ContentId contentId, String key, JsonContentProperty property) ContentResource.update
(ContentId contentId, Content content, ContentStatus status, ContentDraftService.ConflictPolicy conflictPolicy, boolean asyncReconciliation) SpacePropertyResource.update
(String spaceKey, String propertyKey, JsonSpaceProperty property) AttachmentResource.updateData
(ContentId attachmentId, com.atlassian.plugins.rest.api.multipart.FilePart filePart, com.atlassian.plugins.rest.api.multipart.FilePart comment, com.atlassian.plugins.rest.api.multipart.FilePart minorEdit, com.atlassian.plugins.rest.api.multipart.FilePart hidden) -
Uses of ServiceException in com.atlassian.confluence.plugins.restapi.rvsync.resources
Methods in com.atlassian.confluence.plugins.restapi.rvsync.resources that throw ServiceExceptionModifier and TypeMethodDescriptionLimitedSpaceResource.getAllLimitedSpaces
(Integer start, Integer limit, jakarta.ws.rs.core.UriInfo uriInfo) -
Uses of ServiceException in com.atlassian.confluence.rest.client
Methods in com.atlassian.confluence.rest.client that throw ServiceExceptionModifier and TypeMethodDescriptionRemoteAttachmentService.addAttachmentsCompletionStage
(ContentId contentId, ContentStatus status, Collection<AttachmentUpload> uploads) RemoteAttachmentService.addAttachmentsCompletionStage
(ContentId containerId, ContentStatus containerStatus, Collection<AttachmentUpload> uploads, boolean allowDuplicated, Expansions expansions) RemoteAttachmentService.addAttachmentsCompletionStage
(ContentId contentId, Collection<AttachmentUpload> uploads) Add one or more attachments to a piece ofContent
.RemoteAttachmentServiceImpl.addAttachmentsCompletionStage
(ContentId contentId, ContentStatus status, Collection<AttachmentUpload> uploads) RemoteAttachmentServiceImpl.addAttachmentsCompletionStage
(ContentId containerId, ContentStatus containerStatus, Collection<AttachmentUpload> uploads, boolean allowDuplicated, Expansions expansions) RemoteAttachmentServiceImpl.addAttachmentsCompletionStage
(ContentId contentId, Collection<AttachmentUpload> uploads) RemoteContentRestrictionService.addDirectRestrictionForSubjectCompletionStage
(ContentId contentId, OperationKey operationKey, Subject subject) Adds singular directContentRestriction
foroperationKey
andsubject
to the content identified bycontentId
parameter.RemoteContentRestrictionServiceImpl.addDirectRestrictionForSubjectCompletionStage
(ContentId contentId, OperationKey operationKey, Subject subject) AbstractRemoteContentLabelService.addLabelsCompletionStage
(ContentId contentId, Iterable<Label> labels) RemoteContentLabelService.addLabelsCompletionStage
(ContentId contentId, Iterable<Label> labels) Adds the given labels to the specified contentRemoteContentRestrictionService.addRestrictionsCompletionStage
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) Attempts to add all the restrictions specified to a piece of content identified bycontentId
.RemoteContentRestrictionServiceImpl.addRestrictionsCompletionStage
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) AbstractRemoteContentService.createCompletionStage
(Content newContent, Expansion... expansions) RemoteContentService.createCompletionStage
(Content newContent, Expansion... expansions) Create a piece of content.<S extends Relatable,
T extends Relatable>
CompletionStage<Void> RemoteRelationService.createCompletionStage
(RelationInstance<S, T> relationInstance) Creates a directed relation between two relatable entities.RemoteSpaceService.createCompletionStage
(Space newSpace, boolean isPrivate) Create a new space.RemoteSpaceServiceImpl.createCompletionStage
(Space newSpace, boolean isPrivate) RemoteSpaceService.createPersonalSpaceForSelf
(PersonalSpaceDetailsForCreation spaceDetails) Create a personal space for self.RemoteSpaceServiceImpl.createPersonalSpaceForSelf
(PersonalSpaceDetailsForCreation spaceDetails) RemoteSpaceService.createPersonalSpaceForUser
(PersonalSpaceDetailsForCreation spaceDetails, String username) Create a personal space for a user by username.RemoteSpaceServiceImpl.createPersonalSpaceForUser
(PersonalSpaceDetailsForCreation spaceDetails, String username) RemoteContentRestrictionService.deleteAllDirectRestrictionsCompletionStage
(ContentId target, Expansion... expansions) Attempts to delete all the restrictions specified directly on a piece of content identified bycontentId
.RemoteContentRestrictionServiceImpl.deleteAllDirectRestrictionsCompletionStage
(ContentId target, Expansion... expansions) RemoteAttachmentService.deleteCompletionStage
(Content attachmentContent) Removes an Attachment from the system.RemoteAttachmentServiceImpl.deleteCompletionStage
(Content attachmentContent) <S extends Relatable,
T extends Relatable>
CompletionStage<Void> RemoteRelationService.deleteCompletionStage
(RelationInstance<S, T> relationInstance) Remove a relation if it exists between a source and a target relatable entityRemoteContentRestrictionService.deleteDirectRestrictionForSubjectCompletionStage
(ContentId contentId, OperationKey operationKey, Subject subject) Deletes singular directContentRestriction
foroperationKey
andsubject
from the content identified bycontentId
parameter.RemoteContentRestrictionServiceImpl.deleteDirectRestrictionForSubjectCompletionStage
(ContentId contentId, OperationKey operationKey, Subject subject) RemoteSpaceService.emptyTrash
(String spaceKey) Purge all the trash in a given space.RemoteContentLabelService.getLabelsByDetail
(PageRequest pageRequest, String labelName, String namespace, String spaceKey, String owner) Get the labels based on the given parametersRemoteContentRestrictionService.getRestrictionsForOperationCompletionStage
(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... expansions) Retrieves all restrictions for given operation key on given content.RemoteContentRestrictionServiceImpl.getRestrictionsForOperationCompletionStage
(ContentId target, OperationKey operationKey, PageRequest pageRequest, Expansion... expansions) RemoteContentRestrictionService.getRestrictionsGroupByOperationCompletionStage
(ContentId target, Expansion... expansions) List all restrictions that exist directly on the given content.RemoteContentRestrictionServiceImpl.getRestrictionsGroupByOperationCompletionStage
(ContentId target, Expansion... expansions) RemoteContentRestrictionService.hasDirectRestrictionForSubjectCompletionStage
(ContentId contentId, OperationKey operationKey, Subject subject) Returnstrue
if the User or Group specified by thesubject
parameter has restriction(s) for theoperationKey
operation which are specified directly on the Content identified bycontentId
parameter.RemoteContentRestrictionServiceImpl.hasDirectRestrictionForSubjectCompletionStage
(ContentId contentId, OperationKey operationKey, Subject subject) RemoteAttachmentService.moveAttachmentCompletionStage
(ContentId contentId, ContentId attachmentId, ContentId newContentId) Moves an Attachment from a page to new page.RemoteAttachmentService.moveAttachmentCompletionStage
(ContentId contentId, ContentId attachmentId, ContentId newContentId, String newName) Moves an Attachment from a page to new page and also rename it.RemoteAttachmentServiceImpl.moveAttachmentCompletionStage
(ContentId contentId, ContentId attachmentId, ContentId newContentId) RemoteAttachmentServiceImpl.moveAttachmentCompletionStage
(ContentId contentId, ContentId attachmentId, ContentId newContentId, String newName) RemoteAttachmentService.removeAttachmentCompletionStage
(ContentId contentId, ContentId attachmentId) Trashes an attachment associated with an attachmentId.RemoteAttachmentServiceImpl.removeAttachmentCompletionStage
(ContentId contentId, ContentId attachmentId) RemoteAttachmentService.removeAttachmentVersionCompletionStage
(ContentId contentId, ContentId attachmentId, int version) Removes a specific version of an attachment associated with given content.RemoteCategoryService.removeCategoryCompletionStage
(String spaceKey, String categoryName) Removes a category from a space's description.RemoteCategoryServiceImpl.removeCategoryCompletionStage
(String spaceKey, String categoryName) RemoteAccessModeService.updateAccessModeCompletionStage
(AccessMode accessMode) RemoteAccessModeServiceImpl.updateAccessModeCompletionStage
(AccessMode accessMode) RemoteAttachmentService.updateCompletionStage
(Content attachment) Updates the non-data parts of an AttachmentContent
instance.RemoteAttachmentServiceImpl.updateCompletionStage
(Content attachment) RemoteSpaceService.updateCompletionStage
(Space space) Updates a space.RemoteSpaceServiceImpl.updateCompletionStage
(Space space) RemoteAttachmentService.updateDataCompletionStage
(ContentId attachmentId, AttachmentUpload upload) Updates the data part of an AttachmentContent
instance.RemoteAttachmentServiceImpl.updateDataCompletionStage
(ContentId attachmentId, AttachmentUpload upload) RemoteContentRestrictionService.updateRestrictionsCompletionStage
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) Sets all the restrictions specified to a piece of content identified bycontentId
, replacing any existing permissions.RemoteContentRestrictionServiceImpl.updateRestrictionsCompletionStage
(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) <T> CompletionStage
<T> RemoteAccessModeService.withReadOnlyAccessExemptionCompletionStage
(Callable<T> callable) Execute a method that needs to be exempt from read-only access check in the permission manager layer.<T> CompletionStage
<T> RemoteAccessModeServiceImpl.withReadOnlyAccessExemptionCompletionStage
(Callable<T> callable) -
Uses of ServiceException in com.atlassian.confluence.rest.client.graphql
Methods in com.atlassian.confluence.rest.client.graphql that throw ServiceExceptionModifier and TypeMethodDescriptionGraphQLRemoteContentLabelServiceImpl.getLabelsByDetail
(PageRequest pageRequest, String labelName, String namespace, String spaceKey, String owner) -
Uses of ServiceException in com.atlassian.confluence.rest.client.impl
Methods in com.atlassian.confluence.rest.client.impl that throw ServiceExceptionModifier and TypeMethodDescription<S extends Relatable,
T extends Relatable>
CompletionStage<Void> RemoteRelationServiceImpl.createCompletionStage
(RelationInstance<S, T> relationInstance) <S extends Relatable,
T extends Relatable>
CompletionStage<Void> RemoteRelationServiceImpl.deleteCompletionStage
(RelationInstance<S, T> relationInstance) -
Uses of ServiceException in com.atlassian.confluence.rest.client.model
Methods in com.atlassian.confluence.rest.client.model that return ServiceExceptionModifier and TypeMethodDescriptionstatic ServiceException
ExceptionConverter.Client.convertToServiceException
(jakarta.ws.rs.WebApplicationException e) Converts a JerseyWebApplicationException
, such as would be received by a client for a failed request, into aServiceException
. -
Uses of ServiceException in com.atlassian.confluence.validation
Methods in com.atlassian.confluence.validation with parameters of type ServiceExceptionModifier and TypeMethodDescriptionstatic MessageHolder
XWorkValidationResultSupport.addAnyMessages
(MessageHolder holder, ServiceException e) -
Uses of ServiceException in com.atlassian.integrationtest.utils
Methods in com.atlassian.integrationtest.utils that throw ServiceException
ContentLabelServiceImpl.removeLabel(ContentId, Label)
}