Modifier and Type | Method and Description |
---|---|
void |
RemoteCQLSearchServiceAcceptanceTest.deleteContentProperty(Content content,
String propertyKey) |
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.testConvertStorageToStyledView() |
void |
RemoteContentBodyConversionServiceAcceptanceTest.testConvertStorageToView() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testCreateAndFind() |
void |
RemoteContentServiceAcceptanceTest.testCreateBlogPost() |
void |
RemoteContentServiceAcceptanceTest.testCreateDraftBlogPost() |
void |
RemoteContentServiceAcceptanceTest.testCreateDraftPage() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testCreateDuplicate() |
void |
RemoteContentServiceAcceptanceTest.testCreatePage() |
void |
RemoteContentServiceAcceptanceTest.testCreatePageWithBodyRequiringContext() |
void |
RemoteContentServiceAcceptanceTest.testCreatePageWithDuplicateTitle() |
void |
RemoteContentServiceAcceptanceTest.testCreatePageWithEditorFormat() |
void |
RemoteContentServiceAcceptanceTest.testCreatePageWithLargeContentExceedMaxLimitRequestSize() |
void |
RemoteContentServiceAcceptanceTest.testCreatePageWithLargeContentMaintainedMaxLimitRequestSize() |
void |
RemoteContentServiceAcceptanceTest.testCreatePageWithTitleTooLong() |
void |
RemoteContentServiceAcceptanceTest.testCreatePageWithWrongMacroBodyTypeIsSafe() |
void |
RemoteContentPropertyServiceAcceptanceTest.testCreateWithLargeValueSucceeds() |
void |
RemoteContentPropertyServiceAcceptanceTest.testCreateWithTooLargeRequestRejected() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testCreateWithTooLargeRequestRejected() |
void |
RemoteContentPropertyServiceAcceptanceTest.testCreateWithTooLargeValueRejected() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testCreateWithTooLargeValueRejected() |
void |
RemoteContentPropertyServiceAcceptanceTest.testDelete() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testDelete() |
void |
RemoteContentPropertyServiceAcceptanceTest.testDeleteById() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testDeleteNoPermission() |
void |
RemoteServiceExceptionAcceptanceTest.testDeleteUnknownContent() |
void |
RemoteContentServiceAcceptanceTest.testDeleteUnknownContent() |
void |
RemoteContentServiceAcceptanceTest.testDeleteUnpermittedAttachment() |
void |
RemoteContentServiceAcceptanceTest.testDeleteUnpermittedContent() |
void |
RemoteContentServiceAcceptanceTest.testFetchContentWithAncestorsExpanded() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testFindNoViewPermissions() |
void |
RemoteContentServiceAcceptanceTest.testGetContentByIdOperationsExpansionsForBlogPost() |
void |
RemoteContentServiceAcceptanceTest.testGetContentByIdOperationsExpansionsForComment() |
void |
RemoteContentServiceAcceptanceTest.testGetContentByIdOperationsExpansionsForPage() |
void |
RemoteContentServiceAcceptanceTest.testGetContentByIdWithLabelsExpanded() |
void |
RemoteContentServiceAcceptanceTest.testGetContentByIdWithPropertiesExpanded() |
void |
RemoteSpaceServiceAcceptanceTest.testGetContentForNonExistentSpace() |
void |
RemoteContentServiceAcceptanceTest.testGetPageById() |
void |
RemoteContentPropertyServiceAcceptanceTest.testSearchByContentId() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testSearchBySpaceKey() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testSearchNoViewPermissions() |
void |
RemoteContentPropertyServiceAcceptanceTest.testSimpleCreateRead() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testUnauthorizedNoEditPermission() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testUnauthorizedNoViewPermissions() |
void |
RemoteContentPropertyServiceAcceptanceTest.testUpdate() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testUpdateAndFind() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testUpdateUnauthorizedNoEditPermissions() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testUpdateUnauthorizedNoViewPermissions() |
void |
RemoteContentPropertyServiceAcceptanceTest.testUpdateWithIncorrectContentPropertyId() |
void |
RemoteContentPropertyServiceAcceptanceTest.testUpdateWithMissingVersion() |
void |
RemoteContentPropertyServiceAcceptanceTest.testUpdateWithOldVersion() |
void |
RemoteContentPropertyServiceAcceptanceTest.testUpdateWithoutContentPropertyId() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testUpdateWithTooLargeRequestRejected() |
void |
RemoteSpacePropertyServiceAcceptanceTest.testUpdateWithTooLargeValueRejected() |
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.
|
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 |
---|---|
AuditRecord |
AuditServiceImpl.storeRecord(AuditRecord record) |
Modifier and Type | Method and Description |
---|---|
PageResponse<Content> |
AttachmentServiceImpl.addAttachments(ContentId containerId,
Collection<AttachmentUpload> uploads) |
PageResponse<Content> |
AttachmentServiceImpl.addAttachments(ContentId containerId,
ContentStatus containerStatus,
Collection<AttachmentUpload> uploads) |
PageResponse<Label> |
ContentLabelServiceImpl.addLabels(ContentId contentId,
Iterable<Label> labels) |
ContentBody |
ContentBodyConversionServiceImpl.convert(ContentBody body,
ContentRepresentation toFormat) |
ContentBody |
ContentBodyConversionServiceImpl.convert(ContentBody contentBody,
ContentRepresentation toFormat,
Expansion... expansions) |
ContentBody |
ContentBodyConversionServiceImpl.convertBody(Content content,
ContentRepresentation toFormat) |
ContentBody |
ContentBodyConversionServiceImpl.convertBody(Content content,
ContentRepresentation toFormat,
Expansion... expansions) |
Content |
ContentServiceImpl.create(Content newContent) |
Content |
ContentServiceImpl.create(Content newContent,
Expansion... expansions) |
Space |
SpaceServiceImpl.create(Space space,
boolean isPrivate) |
void |
AttachmentServiceImpl.delete(Content attachmentContent) |
void |
ContentServiceImpl.delete(Content content) |
LongTaskSubmission |
SpaceServiceImpl.delete(Space spaceToDelete) |
void |
ContentLabelServiceImpl.removeLabel(ContentId contentId,
String label)
Deprecated.
since 6.5.0 use {
ContentLabelServiceImpl.removeLabel(ContentId, Label) } |
Content |
AttachmentServiceImpl.update(Content updatedContent) |
Content |
ContentServiceImpl.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 |
---|---|
Content |
LegacyContentDraftServiceImpl.publishNewDraft(Content content,
Expansion... expansions) |
Content |
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
|
Modifier and Type | Method and Description |
---|---|
ContentBody |
ContentBodyFactory.build(ContentEntityObject ceo,
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 |
---|---|
<S extends Relatable,T extends Relatable> |
RelationServiceImpl.create(RelationInstance<S,T> relationInstance) |
<S extends Relatable,T extends Relatable> |
RelationServiceImpl.delete(RelationInstance<S,T> relationInstance) |
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 |
SimpleMergeValidationResult.throwIfInvalid()
Deprecated.
since 5.10 please use
SimpleMergeValidationResult.throwIfNotSuccessful() |
default ServiceException |
ValidationResult.throwIfInvalid()
Deprecated.
since 5.10 please use
ValidationResult.throwIfNotSuccessful() |
ServiceException |
SimpleMergeValidationResult.throwIfInvalid(String msg)
Deprecated.
since 5.10 please use
SimpleMergeValidationResult.throwIfNotSuccessful(String) |
default ServiceException |
ValidationResult.throwIfInvalid(String msg)
Deprecated.
since 5.10 please use
ValidationResult.throwIfNotSuccessful(String) |
void |
SimpleMergeValidationResult.throwIfNotSuccessful() |
default void |
ValidationResult.throwIfNotSuccessful()
Converts this validation result into a
ServiceException and throws it. |
void |
SimpleMergeValidationResult.throwIfNotSuccessful(String msg) |
default void |
ValidationResult.throwIfNotSuccessful(String msg)
Converts this validation result into a
ServiceException and throws it. |
void |
SimpleMergeValidationResult.throwIfNotValid(String msg)
Deprecated.
since 5.10 please use
SimpleMergeValidationResult.throwIfNotSuccessful(String) |
default void |
ValidationResult.throwIfNotValid(String msg)
Deprecated.
since 5.10 please use
ValidationResult.throwIfNotSuccessful(String) |
Modifier and Type | Method and Description |
---|---|
RetentionPeriod |
AuditService.setRetentionPeriod(RetentionPeriod retentionPeriod)
Set the configured retention period for audit records.
|
AuditRecord |
AuditService.storeRecord(AuditRecord record)
Persist the given
AuditRecord . |
ValidationResult |
AuditService.Validator.validateCreate(AuditRecord record)
Validate that an audit record can be created.
|
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<Content> |
AttachmentService.addAttachments(ContentId containerId,
ContentStatus containerStatus,
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)
Same as calling
ContentBodyConversionService.convert(ContentBody, ContentRepresentation, Expansion...) with an empty expansion. |
ContentBody |
ContentBodyConversionService.convert(ContentBody body,
ContentRepresentation representation,
Expansion... expansions)
Convert a ContentBody value into another format, performing validation during the conversion.
|
ContentBody |
ContentBodyConversionService.convertBody(Content content,
ContentRepresentation representation)
Same as calling
ContentBodyConversionService.convertBody(Content, ContentRepresentation, Expansion...) with an empty expansion. |
ContentBody |
ContentBodyConversionService.convertBody(Content content,
ContentRepresentation representation,
Expansion... expansions)
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.
|
Content |
ContentService.create(Content newContent,
Expansion... expansions)
Create a piece of content.
|
JsonContentProperty |
ContentPropertyService.create(JsonContentProperty newProperty)
Create a content property.
|
JsonSpaceProperty |
SpacePropertyService.create(JsonSpaceProperty 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 | Method and Description |
---|---|
ValidationResult |
ContentTemplateService.Validator.validateCreate(ContentTemplate newContentTemplate)
Validate that the specified contentTemplate can be created by the current user.
|
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 |
GoneException
Thrown when things that are expected to be found are GONE.
|
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 |
---|---|
void |
ContentRestrictionService.addDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Adds singular direct
ContentRestriction for operationKey and subject to the content identified by contentId parameter. |
ContentRestrictionsPageResponse |
ContentRestrictionService.addRestrictions(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions)
Attempts to add all the restrictions specified to a piece of content identified by
contentId . |
ContentRestrictionsPageResponse |
ContentRestrictionService.deleteAllDirectRestrictions(ContentId target,
Expansion... expansions)
Attempts to delete all the restrictions specified directly on a piece of content identified by
contentId . |
void |
ContentRestrictionService.deleteDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Deletes singular direct
ContentRestriction for operationKey and subject from the content identified by contentId parameter. |
ContentRestriction |
ContentRestrictionService.getRestrictionsForOperation(ContentId target,
OperationKey operationKey,
PageRequest pageRequest,
Expansion... expansions)
Retrieves all restrictions for given operation key on given content.
|
Map<OperationKey,ContentRestriction> |
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)
Returns
true if the User or Group specified by the subject parameter has restriction(s) for the operationKey operation
which are specified directly on the Content identified by contentId parameter. |
ContentRestrictionsPageResponse |
ContentRestrictionService.updateRestrictions(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions)
Sets all the restrictions specified to a piece of content identified by
contentId , replacing any existing permissions. |
Modifier and Type | Method and Description |
---|---|
<S extends Relatable,T extends Relatable> |
RelationService.create(RelationInstance<S,T> relationInstance)
Creates a directed relation between two relatable entities.
|
<S extends Relatable,T extends Relatable> |
RelationService.delete(RelationInstance<S,T> relationInstance)
Remove a relation if it exists between a source and a target relatable entity
|
PageResponse<R> |
RelationService.RelatableFinder.fetchMany(PageRequest pageRequest,
Expansion... expansions) |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<ServiceException> |
ContentMatchers.hasValidationError(String key) |
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 |
---|---|
protected List<com.atlassian.crowd.embedded.api.SearchRestriction> |
UserSearchServiceInternalImpl.convertToSearchRestrictions(String searchString,
List<com.atlassian.crowd.search.query.entity.restriction.Property<String>> properties) |
protected List<com.atlassian.crowd.embedded.api.SearchRestriction> |
UserSearchServiceInternalImpl.convertToSearchRestrictions(String searchTerm,
com.atlassian.crowd.search.query.entity.restriction.Property<String> property) |
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) |
PageResponse<ConfluenceUser> |
UserSearchServiceInternal.doUserSearch(PageRequest pageRequest,
UserSearchRequest searchRequest) |
PageResponse<ConfluenceUser> |
UserSearchServiceInternalImpl.doUserSearch(PageRequest pageRequest,
UserSearchRequest searchRequest) |
protected String |
UserSearchServiceInternalImpl.removeWildcards(String term) |
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 |
---|---|
JsonSpaceProperty |
SpacePropertyServiceImpl.create(JsonSpaceProperty newProperty) |
Modifier and Type | Method and Description |
---|---|
ContentWatch |
UserWatchResource.addContentWatcher(com.atlassian.sal.api.user.UserKey key,
String username,
ContentId contentId)
Create a new watcher for the given user and content id.
|
PageResponse<Label> |
ContentLabelsResource.addLabels(ContentId contentId,
String labels)
Adds a list of labels to the specified content.
|
SpaceWatch |
UserWatchResource.addSpaceWatch(com.atlassian.sal.api.user.UserKey key,
String username,
String spaceKey)
Create a new watcher for the given user and space key.
|
Map<ContentType,PageResponse<Content>> |
ChildContentResource.children(ContentId contentId,
String expand,
Integer parentVersion,
int start,
int limit,
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,
String expand)
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.
|
JsonSpaceProperty |
SpacePropertyResource.create(String spaceKey,
JsonSpaceProperty newProperty)
Creates a new space property.
|
JsonSpaceProperty |
SpacePropertyResource.create(String spaceKey,
String propertyKey,
JsonSpaceProperty newProperty)
Creates a new space property.
|
RestList<Content> |
AttachmentResource.createAttachments(ContentId containerId,
ContentStatus containerStatus,
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,
List<com.atlassian.plugins.rest.common.multipart.FilePart> hiddens)
Add one or more attachments to a Confluence Content entity, with optional comments.
|
Content |
ContentResource.createContent(Content content,
ContentStatus status,
String expand)
Creates a new piece of Content or publishes the draft if the content id is present.
|
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 |
SpacePropertyResource.delete(String spaceKey,
String propertyKey)
Deletes a space property.
|
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.
|
PageResponse<JsonSpaceProperty> |
SpacePropertyResource.get(String spaceKey,
String expand,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Returns a paginated list of space properties.
|
JsonSpaceProperty |
SpacePropertyResource.get(String spaceKey,
String propertyKey,
String expand)
Returns a space 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.
|
javax.ws.rs.core.Response |
UserWatchResource.isWatchingContent(com.atlassian.sal.api.user.UserKey key,
String username,
ContentId contentId)
Get information about whether a user is watching a specified content.
|
javax.ws.rs.core.Response |
UserWatchResource.isWatchingSpace(com.atlassian.sal.api.user.UserKey key,
String username,
String spaceKey)
Get information about whether a user is watching a specified space.
|
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.
|
Content |
ContentBlueprintResource.publishLegacyDraft(ContentId draftId,
Content content,
ContentStatus status,
String expand)
Publishes a legacy draft of a Content created from a ContentBlueprint
|
Content |
ContentBlueprintResource.publishSharedDraft(ContentId draftId,
Content content,
ContentStatus status,
String expand)
Publishes a shared draft of a Content created from a ContentBlueprint
|
javax.ws.rs.core.Response |
UserWatchResource.removeContentWatcher(com.atlassian.sal.api.user.UserKey key,
String username,
ContentId contentId)
Delete an existing watcher for the given user and content id.
|
javax.ws.rs.core.Response |
UserWatchResource.removeSpaceWatch(com.atlassian.sal.api.user.UserKey key,
String username,
String spaceKey)
Delete an existing watcher for the given user and space key.
|
PageResponse<Space> |
SpaceResource.spaces(List<String> spaceKeys,
String type,
String status,
List<String> labelNames,
Boolean favourite,
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,
ContentStatus status,
ContentDraftService.ConflictPolicy conflictPolicy)
Updates a piece of Content, including changes to content status
|
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.
|
JsonSpaceProperty |
SpacePropertyResource.update(String spaceKey,
String propertyKey,
JsonSpaceProperty property)
Updates a space property.
|
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,
com.atlassian.plugins.rest.common.multipart.FilePart hidden)
Update the binary data of an Attachment, and optionally the comment and the minor edit field.
|
Modifier and Type | Method and Description |
---|---|
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<Content>> |
RemoteAttachmentServiceImpl.addAttachments(ContentId contentId,
Collection<AttachmentUpload> uploads) |
com.atlassian.util.concurrent.Promise<PageResponse<Content>> |
RemoteAttachmentService.addAttachments(ContentId contentId,
ContentStatus status,
Collection<AttachmentUpload> uploads) |
com.atlassian.util.concurrent.Promise<PageResponse<Content>> |
RemoteAttachmentServiceImpl.addAttachments(ContentId contentId,
ContentStatus status,
Collection<AttachmentUpload> uploads) |
com.atlassian.util.concurrent.Promise<Void> |
RemoteContentRestrictionServiceImpl.addDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject) |
com.atlassian.util.concurrent.Promise<Void> |
RemoteContentRestrictionService.addDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Adds singular direct
ContentRestriction for operationKey and subject to the content identified by contentId parameter. |
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<ContentRestrictionsPageResponse> |
RemoteContentRestrictionServiceImpl.addRestrictions(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions) |
com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse> |
RemoteContentRestrictionService.addRestrictions(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions)
Attempts to add all the restrictions specified to a piece of content identified by
contentId . |
com.atlassian.util.concurrent.Promise<Content> |
RemoteContentService.create(Content newContent,
Expansion... expansions)
Create a piece of content.
|
<S extends Relatable,T extends Relatable> |
RemoteRelationService.create(RelationInstance<S,T> relationInstance)
Creates a directed relation between two relatable entities.
|
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> |
RemoteAttachmentService.delete(Content attachmentContent)
Removes an Attachment from the system.
|
com.atlassian.util.concurrent.Promise<Void> |
RemoteAttachmentServiceImpl.delete(Content attachmentContent) |
<S extends Relatable,T extends Relatable> |
RemoteRelationService.delete(RelationInstance<S,T> relationInstance)
Remove a relation if it exists between a source and a target relatable entity
|
com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse> |
RemoteContentRestrictionServiceImpl.deleteAllDirectRestrictions(ContentId target,
Expansion... expansions) |
com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse> |
RemoteContentRestrictionService.deleteAllDirectRestrictions(ContentId target,
Expansion... expansions)
Attempts to delete all the restrictions specified directly on a piece of content identified by
contentId . |
com.atlassian.util.concurrent.Promise<Void> |
RemoteContentRestrictionServiceImpl.deleteDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject) |
com.atlassian.util.concurrent.Promise<Void> |
RemoteContentRestrictionService.deleteDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Deletes singular direct
ContentRestriction for operationKey and subject from the content identified by contentId parameter. |
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<Boolean> |
RemoteContentRestrictionServiceImpl.hasDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject) |
com.atlassian.util.concurrent.Promise<Boolean> |
RemoteContentRestrictionService.hasDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Returns
true if the User or Group specified by the subject parameter has restriction(s) for the operationKey operation
which are specified directly on the Content identified by contentId parameter. |
com.atlassian.util.concurrent.Promise<Void> |
RemoteContentLabelServiceImpl.removeLabel(ContentId contentId,
String label)
Deprecated.
since 6.5.0 use {
RemoteContentLabelServiceImpl.removeLabel(ContentId, Label) } |
com.atlassian.util.concurrent.Promise<Void> |
RemoteContentLabelService.removeLabel(ContentId contentId,
String label)
Deprecated.
since 6.5.0 use
RemoteContentLabelService.removeLabel(ContentId, Label) |
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<Content> |
RemoteAttachmentServiceImpl.update(Content attachment) |
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> |
RemoteAttachmentService.updateData(ContentId attachmentId,
AttachmentUpload upload)
Updates the data part of an Attachment
Content instance. |
com.atlassian.util.concurrent.Promise<Content> |
RemoteAttachmentServiceImpl.updateData(ContentId attachmentId,
AttachmentUpload upload) |
com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse> |
RemoteContentRestrictionServiceImpl.updateRestrictions(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions) |
com.atlassian.util.concurrent.Promise<ContentRestrictionsPageResponse> |
RemoteContentRestrictionService.updateRestrictions(ContentId target,
Collection<? extends ContentRestriction> contentRestrictions,
Expansion... expansions)
Sets all the restrictions specified to a piece of content identified by
contentId , replacing any existing permissions. |
Modifier and Type | Method and Description |
---|---|
<S extends Relatable,T extends Relatable> |
RemoteRelationServiceImpl.create(RelationInstance<S,T> relationInstance) |
<S extends Relatable,T extends Relatable> |
RemoteRelationServiceImpl.delete(RelationInstance<S,T> relationInstance) |
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 |
---|---|
static MessageHolder |
XWorkValidationResultSupport.addAnyMessages(MessageHolder holder,
ServiceException e) |
Copyright © 2003–2018 Atlassian. All rights reserved.