Modifier and Type | Method and Description |
---|---|
void |
RemoteContentServiceAcceptanceTest.testCanFetchPageWithExpandedBody() |
void |
RemoteContentPropertyServiceAcceptanceTest.testCannotCreatePropertyOnRestrictedPage() |
void |
RemoteContentPropertyServiceAcceptanceTest.testCannotDeletePropertyOnRestrictedPage() |
void |
RemoteContentPropertyServiceAcceptanceTest.testCannotFindPropertyOnRestrictedPage() |
void |
RemoteContentPropertyServiceAcceptanceTest.testCannotUpdatePropertyOnRestrictedPage() |
void |
RemoteContentServiceAcceptanceTest.testContentWithVersionButCollapsedState() |
void |
RemoteContentBodyConversionServiceAcceptanceTest.testConvertEditorToStorage() |
void |
RemoteContentBodyConversionServiceAcceptanceTest.testConvertStorageToEditor() |
void |
RemoteContentBodyConversionServiceAcceptanceTest.testConvertStorageToStorage() |
void |
RemoteContentBodyConversionServiceAcceptanceTest.testConvertStorageToStorageWithBadRequest() |
void |
RemoteContentBodyConversionServiceAcceptanceTest.testConvertStorageToView() |
void |
RemoteContentServiceAcceptanceTest.testCreateBlogPost() |
void |
RemoteContentServiceAcceptanceTest.testCreatePage() |
void |
RemoteContentServiceAcceptanceTest.testCreatePageWithBodyRequiringContext() |
void |
RemoteContentServiceAcceptanceTest.testCreatePageWithDuplicateTitle() |
void |
RemoteContentServiceAcceptanceTest.testCreatePageWithEditorFormat() |
void |
RemoteContentPropertyServiceAcceptanceTest.testCreateWithLargeValueSucceeds() |
void |
RemoteContentPropertyServiceAcceptanceTest.testCreateWithTooLargeRequestRejected() |
void |
RemoteContentPropertyServiceAcceptanceTest.testCreateWithTooLargeValueRejected() |
void |
RemoteServiceExceptionAcceptanceTest.testDeleteUnknownContent() |
void |
RemoteContentServiceAcceptanceTest.testDeleteUnknownContent() |
void |
RemoteContentServiceAcceptanceTest.testDeleteUnpermittedAttachment() |
void |
RemoteContentServiceAcceptanceTest.testDeleteUnpermittedContent() |
void |
RemoteContentServiceAcceptanceTest.testFetchContentWithAncestorsExpanded() |
void |
RemoteContentServiceAcceptanceTest.testGetContentByIdOperationsExpansionsForComment() |
void |
RemoteContentServiceAcceptanceTest.testGetContentByIdOperationsExpansionsForPage() |
void |
RemoteContentServiceAcceptanceTest.testGetContentByIdWithLabelsExpanded() |
void |
RemoteSpaceServiceAcceptanceTest.testGetContentForNonExistentSpace() |
void |
RemoteContentServiceAcceptanceTest.testGetPageById() |
void |
RemoteContentPropertyServiceAcceptanceTest.testSearchByContentId() |
void |
RemoteContentPropertyServiceAcceptanceTest.testSimpleCreateRead() |
void |
RemoteContentPropertyServiceAcceptanceTest.testUpdateWithMissingVersion() |
void |
RemoteContentPropertyServiceAcceptanceTest.testUpdateWithOldVersion() |
Modifier and Type | Method and Description |
---|---|
void |
CommentsBenchmarkAcceptanceTest.testAddingComments() |
void |
CommentsBenchmarkAcceptanceTest.testAddingCommentsAndRetrievingPages() |
void |
CommentsBenchmarkAcceptanceTest.testAddingCommentsAndViewingPages() |
Modifier and Type | Method and Description |
---|---|
ServiceException |
CoreValidationResult.convertToServiceException(String errorMsg)
Deprecated.
|
ServiceException |
CoreValidationResult.throwIfInvalid(String msg)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ValidationResult |
CoreValidationResult.create(Message message,
com.google.common.base.Function<String,? extends ServiceException> exceptionSupplier)
Deprecated.
since 5.7, use {@link com.atlassian.confluence.api.model.validation.SimpleValidationResult.Builder instead.
|
Modifier and Type | Method and Description |
---|---|
ServiceException |
CoreValidationResult.throwIfInvalid(String msg)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
PageResponse<Content> |
AttachmentServiceImpl.addAttachments(ContentId containerId,
Collection<AttachmentUpload> uploads) |
PageResponse<Label> |
ContentLabelServiceImpl.addLabels(ContentId contentId,
Iterable<Label> labels) |
ContentBody |
ContentBodyConversionServiceImpl.convert(ContentBody contentBody,
ContentRepresentation toFormat) |
ContentBody |
ContentBodyConversionServiceImpl.convertBody(Content content,
ContentRepresentation toFormat) |
Content |
ContentServiceImpl.create(Content newContent) |
Space |
SpaceServiceImpl.create(Space space,
boolean isPrivate) |
void |
ContentServiceImpl.delete(Content content) |
void |
AttachmentServiceImpl.delete(Content attachmentContent) |
LongTaskSubmission |
SpaceServiceImpl.delete(Space spaceToDelete) |
void |
ContentLabelServiceImpl.removeLabel(ContentId contentId,
String label) |
Content |
ContentServiceImpl.update(Content updatedContent) |
Content |
AttachmentServiceImpl.update(Content updatedContent) |
Space |
SpaceServiceImpl.update(Space space) |
Content |
AttachmentServiceImpl.updateData(ContentId attachmentId,
AttachmentUpload upload) |
ValidationResult |
ContentServiceImpl.ValidatorImpl.validateCreate(Content newContent) |
Modifier and Type | Method and Description |
---|---|
ContentBody |
ContentBodyFactory.build(BodyContent bodyContent,
ContentRepresentation representation) |
Modifier and Type | Method and Description |
---|---|
PageResponse<Content> |
AttachmentContentTypeApiSupport.getAttachments(ContentId containerId,
LimitedRequest limitedRequest,
com.google.common.base.Predicate<? super Attachment> predicate,
Expansions contentExpansions) |
Modifier and Type | Method and Description |
---|---|
ServiceException |
SimpleValidationResult.convertToServiceException(String errorMsg) |
ServiceException |
ValidationResult.throwIfInvalid(String msg)
converts this validation result into an Exception and throws it
|
ServiceException |
SimpleValidationResult.throwIfInvalid(String message) |
Modifier and Type | Method and Description |
---|---|
SimpleValidationResult.Builder |
SimpleValidationResult.Builder.addExceptionSupplier(com.google.common.base.Function<String,? extends ServiceException> exceptionSupplier)
Deprecated.
Since 5.8. Use
SimpleValidationResult.Builder.addExceptionSupplier(com.atlassian.fugue.Function2) instead. |
SimpleValidationResult.Builder |
SimpleValidationResult.Builder.addExceptionSupplier(com.atlassian.fugue.Function2<String,ValidationResult,? extends ServiceException> exceptionSupplier) |
Modifier and Type | Method and Description |
---|---|
ServiceException |
ValidationResult.throwIfInvalid(String msg)
converts this validation result into an Exception and throws it
|
ServiceException |
SimpleValidationResult.throwIfInvalid(String message) |
Modifier and Type | Method and Description |
---|---|
PageResponse<Content> |
AttachmentService.addAttachments(ContentId containerId,
Collection<AttachmentUpload> uploads)
Add one or more attachments to a piece of
Content . |
PageResponse<Label> |
ContentLabelService.addLabels(ContentId contentId,
Iterable<Label> labels)
Adds the given labels to the specified content
|
ContentBody |
ContentBodyConversionService.convert(ContentBody body,
ContentRepresentation representation)
Convert a ContentBody value into another format, performing validation during the conversion.
|
ContentBody |
ContentBodyConversionService.convertBody(Content content,
ContentRepresentation representation)
Convert the single ContentBody value in a
Content body map into another format, performing
validation during the conversion. |
Content |
ContentService.create(Content newContent)
Create a piece of content.
|
JsonContentProperty |
ContentPropertyService.create(JsonContentProperty newProperty)
Create a content property.
|
Space |
SpaceService.create(Space newSpace,
boolean isPrivate)
Create a new space.
|
void |
ContentService.delete(Content content)
Removes a piece of Content from the system.
|
void |
AttachmentService.delete(Content attachment)
Moves an Attachment to trash.
|
void |
ContentPropertyService.delete(JsonContentProperty property)
Removes a content property from the system.
|
LongTaskSubmission |
SpaceService.delete(Space spaceToDelete)
Delete the given space.
|
PageResponse<Content> |
ContentService.ContentFetcher.fetchMany(ContentType type,
PageRequest request) |
Map<ContentType,PageResponse<Content>> |
ContentService.ContentFetcher.fetchMappedByContentType(PageRequest request) |
Content |
ContentService.update(Content content)
Updates a piece of content.
|
Content |
AttachmentService.update(Content attachment)
Updates the non-data parts of an Attachment
Content instance. |
JsonContentProperty |
ContentPropertyService.update(JsonContentProperty property)
Updates a content property.
|
Space |
SpaceService.update(Space space)
Updates a space.
|
Content |
AttachmentService.updateData(ContentId attachmentId,
AttachmentUpload upload)
Updates the data part of an Attachment
Content instance. |
ValidationResult |
ContentService.Validator.validateCreate(Content newContent)
Validate that a piece of content can be included, including permission checks.
|
Modifier and Type | Class and Description |
---|---|
class |
BadRequestException
Thrown when the data in the incoming request is incomplete or otherwise invalid.
|
class |
ConflictException
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 |
InternalServerException
A ServiceException wrapper for a general runtime exception.
|
class |
NotFoundException
Thrown when things that are expected to be found are NOT found.
|
class |
PermissionException
Raised when a user attempts to perform an action they do not have permission for.
|
Modifier and Type | Class and Description |
---|---|
class |
NotImplementedServiceException
Indicates that a particular service is not yet implemented, maps to a 501 error
|
Modifier and Type | Method and Description |
---|---|
int |
JournalService.countEntries(JournalIdentifier journalId)
Counts the number of entries in a journal.
|
long |
JournalService.enqueue(JournalEntry entry)
Adds the given entry to a journal.
|
Iterable<JournalEntry> |
JournalService.peek(JournalIdentifier journalId,
int maxEntries)
Return a copy of journal entries that are waiting to be processed.
|
<V> V |
JournalService.processEntries(JournalIdentifier journalId,
int maxEntries,
com.google.common.base.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(JournalIdentifier journalId)
Resets the state of the journal so that all entries currently in the
journal will be skipped.
|
Modifier and Type | Method and Description |
---|---|
int |
DefaultJournalService.countEntries(JournalIdentifier journalId) |
long |
DefaultJournalService.enqueue(JournalEntry entry) |
Iterable<JournalEntry> |
DefaultJournalService.peek(JournalIdentifier journalId,
int maxEntries) |
<V> V |
DefaultJournalService.processEntries(JournalIdentifier journalId,
int maxEntries,
com.google.common.base.Function<Iterable<JournalEntry>,EntryProcessorResult<V>> entryProcessor) |
void |
DefaultJournalService.reset(JournalIdentifier journalId) |
Modifier and Type | Method and Description |
---|---|
Content |
TestAttachmentFactory.addAttachment() |
List<Content> |
TestAttachmentFactory.addAttachments(int numFiles) |
PageResponse<Content> |
TestAttachmentFactory.addAttachments(int numFiles,
javax.ws.rs.core.MediaType contentType) |
Constructor and Description |
---|
RemoteServiceException(ServiceException cause) |
Modifier and Type | Method and Description |
---|---|
JsonContentProperty |
ContentPropertyServiceImpl.create(JsonContentProperty newProperty) |
void |
ContentPropertyServiceImpl.delete(JsonContentProperty property) |
JsonContentProperty |
ContentPropertyServiceImpl.update(JsonContentProperty property) |
Modifier and Type | Method and Description |
---|---|
PageResponse<Label> |
ContentLabelsResource.addLabels(ContentId contentId,
String labels)
Adds a list of labels to the specified content.
|
Map<ContentType,PageResponse<Content>> |
ChildContentResource.children(ContentId contentId,
String expand,
Integer parentVersion,
javax.ws.rs.core.UriInfo uriInfo)
Returns a map of the direct children of a piece of Content.
|
RestList<Content> |
ChildContentResource.childrenOfType(ContentId contentId,
ContentType type,
String expand,
Integer parentVersion,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Returns the direct children of a piece of Content, limited to a single child type.
|
RestList<Content> |
ChildContentResource.commentsOfContent(ContentId contentId,
String expand,
Integer parentVersion,
int start,
int limit,
Set<String> location,
String depth,
javax.ws.rs.core.UriInfo uriInfo)
Returns the comments of a content
|
Map<ContentType,RestList<Content>> |
SpaceResource.contents(String spaceKey,
String depth,
String expand,
int start,
int limit)
Returns the content in this given space
|
RestList<Content> |
SpaceResource.contentsWithType(String spaceKey,
String type,
String depth,
String expand,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Returns the content in this given space with the given type
|
ContentBody |
ContentBodyResource.convert(ContentBody body,
ContentRepresentation toRepresentation)
Converts between content body representations.
|
JsonContentProperty |
ContentPropertyResource.create(ContentId contentId,
JsonContentProperty newProperty)
Creates a new content property.
|
JsonContentProperty |
ContentPropertyResource.create(ContentId contentId,
String key,
JsonContentProperty newProperty)
Creates a new content property.
|
RestList<Content> |
AttachmentResource.createAttachments(ContentId contentId,
List<com.atlassian.plugins.rest.common.multipart.FilePart> fileParts,
List<com.atlassian.plugins.rest.common.multipart.FilePart> comments,
List<com.atlassian.plugins.rest.common.multipart.FilePart> minorEdits)
Add one or more attachments to a Confluence Content entity, with optional comments.
|
Content |
ContentResource.createContent(Content newContent)
Creates a new piece of Content.
|
Space |
SpaceResource.createPrivateSpace(Space newSpace)
Creates a new private Space, viewable only by its creator.
|
Space |
SpaceResource.createSpace(Space newSpace)
Creates a new Space.
|
javax.ws.rs.core.Response |
ContentResource.delete(ContentId contentId,
ContentStatus status)
Trashes or purges a piece of Content, based on its
ContentType and ContentStatus . |
javax.ws.rs.core.Response |
ContentPropertyResource.delete(ContentId contentId,
String key)
Deletes a content property.
|
javax.ws.rs.core.Response |
SpaceResource.delete(String spaceKey)
Deletes a Space.
|
javax.ws.rs.core.Response |
ContentLabelsResource.deleteLabel(ContentId contentId,
String label)
Deletes a labels to the specified content.
|
javax.ws.rs.core.Response |
ContentLabelsResource.deleteLabelWithQueryParam(ContentId contentId,
String label)
Deletes a labels to the specified content.
|
Map<ContentType,PageResponse<Content>> |
DescendantContentResource.descendants(ContentId contentId,
String expand,
javax.ws.rs.core.UriInfo uriInfo)
Returns a map of the descendants of a piece of Content.
|
RestList<Content> |
DescendantContentResource.descendantsOfType(ContentId contentId,
ContentType type,
String expand,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Returns the direct descendants of a piece of Content, limited to a single descendant type.
|
RestList<JsonContentProperty> |
ContentPropertyResource.findAll(ContentId contentId,
String expand,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Returns a paginated list of content properties.
|
JsonContentProperty |
ContentPropertyResource.findByKey(ContentId contentId,
String key,
String expand)
Returns a content property.
|
RestList<Content> |
AttachmentResource.getAttachments(ContentId contentId,
String expand,
int start,
int limit,
String filename,
String mediaType,
javax.ws.rs.core.UriInfo uriInfo)
Returns a paginated list of attachment Content entities within a single container.
|
PageResponse<Content> |
ContentResource.getContent(String type,
String spaceKey,
String title,
List<ContentStatus> statuses,
String postingDay,
String expand,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Returns a paginated list of Content.
|
Content |
ContentResource.getContentById(ContentId id,
List<ContentStatus> statuses,
Integer version,
String expand)
Returns a piece of Content.
|
History |
ContentResource.getHistory(ContentId contentId,
String expand)
Returns the history of a particular piece of content
|
MacroInstance |
ContentResource.getMacroBodyByHash(ContentId contentId,
int versionId,
String hash)
|
MacroInstance |
ContentResource.getMacroBodyByMacroId(ContentId contentId,
int versionId,
String macroId)
Returns the body of a macro (in storage format) with the given id.
|
PageResponse<Label> |
ContentLabelsResource.labels(ContentId contentId,
List<String> prefixes,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Returns the list of labels on a piece of Content.
|
PageResponse<Space> |
SpaceResource.spaces(List<String> spaceKeys,
String expand,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Returns information about a number of spaces.
|
Content |
ContentResource.update(ContentId contentId,
Content content)
Updates a piece of Content, or restores if it is trashed.
|
JsonContentProperty |
ContentPropertyResource.update(ContentId contentId,
String key,
JsonContentProperty property)
Updates a content property.
|
Content |
AttachmentResource.update(String attachmentId,
Content attachment)
Update the non-binary data of an Attachment.
|
Space |
SpaceResource.update(String spaceKey,
Space space)
Updates a Space.
|
Content |
AttachmentResource.updateData(ContentId attachmentId,
com.atlassian.plugins.rest.common.multipart.FilePart filePart,
com.atlassian.plugins.rest.common.multipart.FilePart comment,
com.atlassian.plugins.rest.common.multipart.FilePart minorEdit)
Update the binary data of an Attachment, and optionally the comment and the minor edit field.
|
Modifier and Type | Method and Description |
---|---|
static ServiceException |
ExceptionConverter.Client.convertToServiceException(com.sun.jersey.api.client.UniformInterfaceException e)
Converts a Jersey
UniformInterfaceException , such as would be received by a client for a failed
request, into a ServiceException . |
Modifier and Type | Method and Description |
---|---|
ServiceException |
RestValidationResult.throwIfInvalid(String msg) |
Modifier and Type | Method and Description |
---|---|
ServiceException |
RestValidationResult.throwIfInvalid(String msg) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<PageResponse<Content>> |
RemoteAttachmentServiceImpl.addAttachments(ContentId contentId,
Collection<AttachmentUpload> uploads) |
com.atlassian.util.concurrent.Promise<PageResponse<Content>> |
RemoteAttachmentService.addAttachments(ContentId contentId,
Collection<AttachmentUpload> uploads)
Add one or more attachments to a piece of
Content . |
com.atlassian.util.concurrent.Promise<PageResponse<Label>> |
RemoteContentLabelServiceImpl.addLabels(ContentId contentId,
Iterable<Label> labels) |
com.atlassian.util.concurrent.Promise<? extends Iterable<Label>> |
RemoteContentLabelService.addLabels(ContentId contentId,
Iterable<Label> labels)
Adds the given labels to the specified content
|
com.atlassian.util.concurrent.Promise<Space> |
RemoteSpaceServiceImpl.create(Space newSpace,
boolean isPrivate) |
com.atlassian.util.concurrent.Promise<Space> |
RemoteSpaceService.create(Space newSpace,
boolean isPrivate)
Create a new space.
|
com.atlassian.util.concurrent.Promise<Void> |
RemoteAttachmentServiceImpl.delete(Content attachmentContent) |
com.atlassian.util.concurrent.Promise<Void> |
RemoteAttachmentService.delete(Content attachmentContent)
Removes an Attachment from the system.
|
com.atlassian.util.concurrent.Promise<ContentRestriction> |
RemoteContentRestrictionServiceImpl.getRestrictionsForOperation(ContentId target,
OperationKey operationKey,
PageRequest pageRequest,
Expansion... expansions) |
com.atlassian.util.concurrent.Promise<ContentRestriction> |
RemoteContentRestrictionService.getRestrictionsForOperation(ContentId target,
OperationKey operationKey,
PageRequest pageRequest,
Expansion... expansions)
Retrieves all restrictions for given operation key on given content.
|
com.atlassian.util.concurrent.Promise<Map<OperationKey,ContentRestriction>> |
RemoteContentRestrictionServiceImpl.getRestrictionsGroupByOperation(ContentId target,
Expansion... expansions) |
com.atlassian.util.concurrent.Promise<Map<OperationKey,ContentRestriction>> |
RemoteContentRestrictionService.getRestrictionsGroupByOperation(ContentId target,
Expansion... expansions)
List all restrictions that exist directly on the given content.
|
com.atlassian.util.concurrent.Promise<Void> |
RemoteContentLabelServiceImpl.removeLabel(ContentId contentId,
String label) |
com.atlassian.util.concurrent.Promise<Void> |
RemoteContentLabelService.removeLabel(ContentId contentId,
String label)
Remove a label with labelId from the specified content
|
com.atlassian.util.concurrent.Promise<Content> |
RemoteAttachmentServiceImpl.update(Content attachment) |
com.atlassian.util.concurrent.Promise<Content> |
RemoteAttachmentService.update(Content attachment)
Updates the non-data parts of an Attachment
Content instance. |
com.atlassian.util.concurrent.Promise<Space> |
RemoteSpaceServiceImpl.update(Space space) |
com.atlassian.util.concurrent.Promise<Space> |
RemoteSpaceService.update(Space space)
Updates a space.
|
com.atlassian.util.concurrent.Promise<Content> |
RemoteAttachmentServiceImpl.updateData(ContentId attachmentId,
AttachmentUpload upload) |
com.atlassian.util.concurrent.Promise<Content> |
RemoteAttachmentService.updateData(ContentId attachmentId,
AttachmentUpload upload)
Updates the data part of an Attachment
Content instance. |
Copyright © 2003–2015 Atlassian. All rights reserved.