Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-21264

3.5 Documentation - Trash Management RPC Functions

XMLWordPrintable

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      The new trash management functions in the remote API need to be documented. I've written a quick first draft below, hopefully that will help.

      Under Remote Methods > Spaces > Management

      • ContentSummaries getTrashContents(String token, String spaceKey, int offset, int count) - get the contents of the trash for the given space, starting at 'offset' and returning at most 'count' items.
      • boolean purgeFromTrash(String token, String spaceKey, long contentId) - remove some content from the trash in the given space, deleting it permanently
      • boolean emptyTrash(String token, String spaceKey) - remove all content from the trash in the given space, deleting them permanently

      Under Data Objects:

      ContentSummaries

      Key Type Value
      totalAvailable int The total number of content available to be retrieved
      offset int the index of the first content retrieved
      content Vector of ContentSummary list of the retrieved content

      ContentSummary

      Key Type Value
      id String the id of the content
      type String The type of content (e.g. "page", "comment", "blog")
      space String the key of the space to which the content belongs
      status String the current status of the content (e.g. "current", "deleted")
      title String the title of the content
      created Date timestamp page was created
      creator String username of the creator
      modified Date timestamp content was modified
      modifier String username of content's last modifier

              cmiller CharlesA
              cmiller CharlesA
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: