Class 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.

    • 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/jpeg
        attachmentType - '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=pdf
        reverseOrder - set to true to have the results returned in reverse chronological order.
        Returns:
        attachmentEntityList