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 TypeMethodDescriptionvoidAccessModeServiceImpl.updateAccessMode(AccessMode accessMode) <T> TAccessModeServiceImpl.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) voidCategoryServiceImpl.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) voidvoidvoidSpaceServiceImpl.delete(long spaceId) Deletes space.voidSpaceServiceImpl.deleteSynchronously(long spaceId) Deletes space synchronously.voidSpaceServiceImpl.emptyTrash(String spaceKey) voidAttachmentServiceImpl.moveAttachment(ContentId attachmentId, ContentId contentId, ContentId newContentId, String newName) voidAttachmentServiceImpl.removeAttachment(ContentId contentId, ContentId attachmentId) voidAttachmentServiceImpl.removeAttachmentVersion(ContentId contentId, ContentId attachmentId, int version) voidCategoryServiceImpl.removeCategory(String spaceKey, String categoryName) voidContentLabelServiceImpl.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 TypeMethodDescriptionvoidContentRestrictionServiceImpl.addDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject) ContentRestrictionServiceImpl.addRestrictions(ContentId target, Collection<? extends ContentRestriction> contentRestrictions, Expansion... expansions) ContentRestrictionServiceImpl.deleteAllDirectRestrictions(ContentId target, Expansion... expansions) voidContentRestrictionServiceImpl.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) booleanContentRestrictionServiceImpl.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 ServiceExceptionValidationResult.convertToServiceException(@Nullable String errorMsg) Converts this validation result into aServiceExceptionwithout throwing.SimpleMergeValidationResult.throwIfInvalid()Deprecated.since 5.10 please useSimpleMergeValidationResult.throwIfNotSuccessful()SimpleMergeValidationResult.throwIfInvalid(String msg) Deprecated.since 5.10 please useSimpleMergeValidationResult.throwIfNotSuccessful(String)default ServiceExceptionValidationResult.throwIfInvalid()Deprecated.since 5.10 please useValidationResult.throwIfNotSuccessful()default ServiceExceptionValidationResult.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 ServiceExceptionValidationResult.throwIfInvalid()Deprecated.since 5.10 please useValidationResult.throwIfNotSuccessful()default ServiceExceptionValidationResult.throwIfInvalid(String msg) Deprecated.since 5.10 please useValidationResult.throwIfNotSuccessful(String)voidSimpleMergeValidationResult.throwIfNotSuccessful()voidSimpleMergeValidationResult.throwIfNotSuccessful(String msg) default voidValidationResult.throwIfNotSuccessful()Converts this validation result into aServiceExceptionand throws it.default voidValidationResult.throwIfNotSuccessful(String msg) Converts this validation result into aServiceExceptionand throws it.voidSimpleMergeValidationResult.throwIfNotValid(String msg) Deprecated.since 5.10 please useSimpleMergeValidationResult.throwIfNotSuccessful(String)default voidValidationResult.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 TypeMethodDescriptionvoidAccessModeService.updateAccessMode(AccessMode accessMode) Update the access mode if the current user is a sysadmin<T> TAccessModeService.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.voidCategoryService.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 aContentbody map into another format, performing validation during the conversion.default voidContentPropertyService.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.voidMoves an Attachment to trash.voidContentPropertyService.delete(JsonContentProperty property) Removes a content property from the system.voidRemoves a piece of Content from the system.voidSpaceService.delete(long spaceId) Deletes space.Delete the given space.voidSpaceService.deleteSynchronously(long spaceId) Deletes space synchronously.voidSpaceService.emptyTrash(String spaceKey) Purge all the trash in a given space.ContentService.ContentFetcher.fetchMany(ContentType type, PageRequest request) ContentService.ContentFetcher.fetchManyWithAnyType(PageRequest request) ContentService.ContentFetcher.fetchManyWithoutCaching(ContentType type, PageRequest request) ContentService.ContentFetcher.fetchMappedByContentType(PageRequest request) voidAttachmentService.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.voidAttachmentService.removeAttachment(ContentId contentId, ContentId attachmentId) Trashes an attachment by attachmentIdvoidCategoryService.removeCategory(String spaceKey, String categoryName) Removes a category from a space's description.Updates the non-data parts of an AttachmentContentinstance.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 AttachmentContentinstance.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 TypeClassDescriptionclassThrown when the data in the incoming request is incomplete or otherwise invalid.classThrown when a request cannot be performed due to the state of the content, as per the semantics of the HTTP 409 'Conflict' status code.classThrown when things that are expected to be found are GONE.classCustom Exception thrown when a URL is outside the whitelisted URLsclassA ServiceException wrapper for a general runtime exception.classThrown when no more licenses available to perform an operation as per the semantics of the HTTP 402 'Payment Required' status code.classThrown when user is not authenticated as per the semantics of the HTTP 401 'Unauthorised' status code.classThrown when things that are expected to be found are NOT found.classRaised when a user attempts to perform an action they do not have permission for.classThis exception is thrown when things that are expected to be read-onlyclassRaised to return an http 303 'see other' to the client. -
Uses of ServiceException in com.atlassian.confluence.api.service.exceptions.unchecked
Modifier and TypeClassDescriptionclassIndicates 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 TypeMethodDescriptionintJournalService.countEntries(@NonNull JournalIdentifier journalId) Counts the number of entries in a journal.longJournalService.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> VJournalService.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.voidJournalService.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 TypeMethodDescriptionvoidContentRestrictionService.addDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject) Adds singular directContentRestrictionforoperationKeyandsubjectto the content identified bycontentIdparameter.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.voidContentRestrictionService.deleteDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject) Deletes singular directContentRestrictionforoperationKeyandsubjectfrom the content identified bycontentIdparameter.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.booleanContentRestrictionService.hasDirectRestrictionForSubject(ContentId contentId, OperationKey operationKey, Subject subject) Returnstrueif the User or Group specified by thesubjectparameter has restriction(s) for theoperationKeyoperation which are specified directly on the Content identified bycontentIdparameter.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 booleanValidationResultMatchers.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.voidPageUpdateService.update(PreparedAbstractPage preparedAbstractPage) Perform update of page or blogpost. -
Uses of ServiceException in com.atlassian.confluence.functest.rest.admin
Methods in com.atlassian.confluence.functest.rest.admin that throw ServiceExceptionModifier and TypeMethodDescriptionjavax.ws.rs.core.ResponseSpaceResource.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> VDefaultIndexJournalService.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 TypeMethodDescriptionintDefaultJournalService.countEntries(@NonNull JournalIdentifier journalId) voidDefaultJournalManager.enqueue(@NonNull Collection<JournalEntry> entries) longDefaultJournalService.enqueue(@NonNull JournalEntry entry) voidJournalManager.enqueue(@NonNull Collection<JournalEntry> entries) Adds a collection of entries to a journal.DefaultJournalService.peek(@NonNull JournalIdentifier journalId, int maxEntries) <V> VDefaultJournalService.processNewEntries(@NonNull JournalIdentifier journalId, int maxEntries, @NonNull Function<Iterable<JournalEntry>, EntryProcessorResult<V>> entryProcessor) voidDefaultJournalService.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) com.atlassian.fugue.Pair<List<String>,PageResponse<ConfluenceUser>> UserSearchServiceInternal.doMemberOfGroupsSearch(PageRequest pageRequest, GroupSearchRequest searchRequest) com.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 StringUserSearchServiceInternalImpl.removeWildcards(String term) -
Uses of ServiceException in com.atlassian.confluence.plugins.contentproperty
Methods in com.atlassian.confluence.plugins.contentproperty that throw ServiceExceptionModifier and TypeMethodDescriptionvoidContentPropertyServiceImpl.copyAllJsonContentProperties(ContentSelector source, ContentSelector target) ContentPropertyServiceImpl.create(JsonContentProperty newProperty) voidContentPropertyServiceImpl.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, javax.ws.rs.core.UriInfo uriInfo) ChildContentProvider.children(graphql.schema.DataFetchingEnvironment env, String expand, String type, Integer parentVersion, int offset, String afterOffset, int limit, javax.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, javax.ws.rs.core.UriInfo uriInfo) ContentLabelsProvider.labels(List<String> prefixes, int offset, String afterOffset, int limit, javax.ws.rs.core.UriInfo uriInfo, graphql.schema.DataFetchingEnvironment env) ContentPropertyProvider.properties(String key, String expand, int start, int limit, javax.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 TypeMethodDescriptionvoidMaintenanceServiceImpl.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, javax.ws.rs.core.UriInfo uriInfo) ChildContentResource.childrenOfType(ContentId contentId, ContentType type, String expand, Integer parentVersion, int start, int limit, javax.ws.rs.core.UriInfo uriInfo) ChildContentResource.commentsOfContent(ContentId contentId, String expand, Integer parentVersion, int start, int limit, Set<String> location, String depth, javax.ws.rs.core.UriInfo uriInfo) SpaceResource.contentsWithType(String spaceKey, String expand, int limit, String cursor, javax.ws.rs.core.UriInfo uriInfo) SpaceResource.contentsWithType(String spaceKey, String type, String depth, String expand, int start, int limit, javax.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) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponseContentResource.delete(ContentId contentId, ContentStatus status) javax.ws.rs.core.Responsejavax.ws.rs.core.Responsejavax.ws.rs.core.ResponseContentLabelsResource.deleteLabel(ContentId contentId, String label) javax.ws.rs.core.ResponseContentLabelsResource.deleteLabelWithQueryParam(ContentId contentId, String label) DescendantContentResource.descendants(ContentId contentId, String expand, javax.ws.rs.core.UriInfo uriInfo) DescendantContentResource.descendantsOfType(ContentId contentId, ContentType type, String expand, int start, int limit, javax.ws.rs.core.UriInfo uriInfo) ContentPropertyResource.findAll(ContentId contentId, String expand, int start, int limit, javax.ws.rs.core.UriInfo uriInfo) SpacePropertyResource.get(String spaceKey, String expand, int start, int limit, javax.ws.rs.core.UriInfo uriInfo) AttachmentResource.getAttachments(ContentId contentId, String expand, int start, int limit, String filename, String mediaType, javax.ws.rs.core.UriInfo uriInfo) ClusterResource.getClusterNodeStatuses(int start, int limit, javax.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, javax.ws.rs.core.UriInfo uriInfo) ContentResource.getContentById(ContentId id, List<ContentStatus> statuses, Integer version, String expand) ContentResource.getHistory(ContentId contentId, String expand) ContentResource.getMacroBodyByHash(ContentId contentId, int versionId, String hash) Deprecated.ContentResource.getMacroBodyByMacroId(ContentId contentId, int versionId, String macroId) javax.ws.rs.core.ResponseUserWatchResource.isWatchingContent(com.atlassian.sal.api.user.UserKey key, String username, ContentId contentId) javax.ws.rs.core.ResponseUserWatchResource.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, javax.ws.rs.core.UriInfo uriInfo) LabelResource.labels(String labelName, String owner, String namespace, String spaceKey, int start, int limit, javax.ws.rs.core.UriInfo uriInfo) voidAttachmentResource.move(ContentId contentId, ContentId attachmentId, ContentId newContentId, String newName) LabelResource.popular(int start, int limit, javax.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, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponseAttachmentResource.removeAttachment(ContentId contentId, ContentId attachmentId) javax.ws.rs.core.ResponseAttachmentResource.removeAttachmentVersion(ContentId contentId, ContentId attachmentId, int version) javax.ws.rs.core.ResponseUserWatchResource.removeContentWatcher(com.atlassian.sal.api.user.UserKey key, String username, ContentId contentId) javax.ws.rs.core.ResponseUserWatchResource.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, javax.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, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponseContentPropertyResource.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.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 directContentRestrictionforoperationKeyandsubjectto the content identified bycontentIdparameter.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 directContentRestrictionforoperationKeyandsubjectfrom the content identified bycontentIdparameter.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) Returnstrueif the User or Group specified by thesubjectparameter has restriction(s) for theoperationKeyoperation which are specified directly on the Content identified bycontentIdparameter.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 AttachmentContentinstance.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 AttachmentContentinstance.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 ServiceExceptionExceptionConverter.Client.convertToServiceException(javax.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 MessageHolderXWorkValidationResultSupport.addAnyMessages(MessageHolder holder, ServiceException e) -
Uses of ServiceException in com.atlassian.integrationtest.confluence.api.service.content
Methods in com.atlassian.integrationtest.confluence.api.service.content that throw ServiceExceptionModifier and TypeMethodDescriptionMockContentPropertyService.create(JsonContentProperty newProperty) voidMockContentPropertyService.delete(JsonContentProperty property) MockContentPropertyService.update(JsonContentProperty property) -
Uses of ServiceException in com.atlassian.integrationtest.utils
Methods in com.atlassian.integrationtest.utils that throw ServiceException
ContentLabelServiceImpl.removeLabel(ContentId, Label)}