Class PrototypeContentResource
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.resources.AbstractResource
-
- com.atlassian.confluence.plugins.rest.resources.PrototypeContentResource
-
@Deprecated public class PrototypeContentResource extends AbstractResource
Deprecated.since 5.10. Use the official REST API that lives in confluence-rest-resources.Rest resource for accessing Confluence content.Currently supports only read access for pages, blogs and comments.
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.plugins.rest.resources.AbstractResource
authContext, uriInfo, userAccessor
-
-
Constructor Summary
Constructors Constructor Description PrototypeContentResource(UserAccessor userAccessor, RestContentManager restContentManager, SpacePermissionManager spacePermissionManager)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.ws.rs.core.Response
get()
Deprecated.Returns HTTP 404 (not found) as there is no content to return if no ID is passed.javax.ws.rs.core.Response
getAttachments(Long id, String startIndexString, String maxResultsString, Set<String> mime, Set<String> nice, boolean reverseOrder)
Deprecated.Returns the attachments for a given resource.javax.ws.rs.core.Response
getContent(Long id)
Deprecated.Returns the content for the given ID.-
Methods inherited from class com.atlassian.confluence.plugins.rest.resources.AbstractResource
createRequestContext, getAnonymousUserUriBuilder, getAttachmentUriBuilder, getContentUriBuilder, getCurrentUser, getMissingUserUriBuilder, getSpaceUriBuilder, getUserUriBuilder
-
-
-
-
Constructor Detail
-
PrototypeContentResource
public PrototypeContentResource(UserAccessor userAccessor, RestContentManager restContentManager, SpacePermissionManager spacePermissionManager)
Deprecated.
-
-
Method Detail
-
get
public javax.ws.rs.core.Response get()
Deprecated.Returns HTTP 404 (not found) as there is no content to return if no ID is passed.- Returns:
- not found
-
getContent
public javax.ws.rs.core.Response getContent(Long id)
Deprecated.Returns the content for the given ID.- Parameters:
id
-- Returns:
- the content
-
getAttachments
public javax.ws.rs.core.Response getAttachments(Long id, String startIndexString, String maxResultsString, Set<String> mime, Set<String> nice, boolean reverseOrder)
Deprecated.Returns the attachments for a given resource. The results are ordered by the creation date.- Parameters:
id
- ID of resource (such as a page or blog post)startIndexString
- Index of first item (inclusive) to return.maxResultsString
- Maximum number of items to return. Default is 50.mimeType
- Mime types to filter the attachments by, such as: image/jpegattachmentType
- 'Nice' type to filter the attachments by. Filtering is case insensititve. Can be one or more of: PDF, IMAGE, XML, HTML, TEXT, WORD, EXCEL, POWERPOINT, JAVA_SOURCE, JAVA_ARCHIVE, ZIP. You can specify multiple types like this: ?attachmentType=image&attachmentType=pdfreverseOrder
- set to true to have the results returned in reverse chronological order.- Returns:
- attachmentEntityList
-
-