| Modifier and Type | Method and Description |
|---|---|
ServiceException |
SimpleValidationResult.convertToServiceException(java.lang.String errorMsg) |
ServiceException |
SimpleValidationResult.throwIfInvalid(java.lang.String msg) |
ServiceException |
ValidationResult.throwIfInvalid(java.lang.String msg)
converts this validation result into an Exception and throws it
|
| Modifier and Type | Method and Description |
|---|---|
ServiceException |
SimpleValidationResult.throwIfInvalid(java.lang.String msg) |
ServiceException |
ValidationResult.throwIfInvalid(java.lang.String msg)
converts this validation result into an Exception and throws it
|
| Modifier and Type | Method and Description |
|---|---|
PageResponse<Content> |
AttachmentService.addAttachments(ContentId containerId,
java.util.Collection<AttachmentUpload> uploads)
Add one or more attachments to a piece of
Content. |
PageResponse<Label> |
ContentLabelService.addLabels(ContentId contentId,
java.lang.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 |
AttachmentService.delete(Content attachment)
Removes an Attachment from the system.
|
void |
ContentService.delete(Content content)
Removes a piece of Content from the system.
|
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) |
java.util.Map<ContentType,PageResponse<Content>> |
ContentService.ContentFetcher.fetchMappedByContentType(PageRequest request) |
Content |
AttachmentService.update(Content attachment)
Updates the non-data parts of an Attachment
Content instance. |
Content |
ContentService.update(Content content)
Updates a piece of content.
|
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 an UPDATE request is made with a stale version number.
|
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.
|
java.lang.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<java.lang.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.
|
Copyright © 2003-2014 Atlassian. All Rights Reserved.