Class ConfluenceUtil


  • public class ConfluenceUtil
    extends java.lang.Object

    Utility class for Confluence connectors

    Author:
    Antonio David Perez Morales <adperezmorales@gmail.com>
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfluenceUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String generateRepositoryDocumentIdentifier​(java.lang.String attachmentId, java.lang.String pageId)
      Generates a repository document identifier for the specific attachment and page to be used for Repository Documents for attachment pages
      static java.lang.String[] getAttachmentAndPageId​(java.lang.String id)
      Gets the attachment id and page id from a repository document id
      static boolean isAttachment​(java.lang.String id)
      Checks if the given id is an attachment or not
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfluenceUtil

        public ConfluenceUtil()
    • Method Detail

      • generateRepositoryDocumentIdentifier

        public static java.lang.String generateRepositoryDocumentIdentifier​(java.lang.String attachmentId,
                                                                            java.lang.String pageId)

        Generates a repository document identifier for the specific attachment and page to be used for Repository Documents for attachment pages

        Parameters:
        attachmentId -
        pageId -
        Returns:
        a generated
      • isAttachment

        public static boolean isAttachment​(java.lang.String id)

        Checks if the given id is an attachment or not

        Parameters:
        id -
        Returns:
        a Boolean indicating if the id is related to an attachment or not
      • getAttachmentAndPageId

        public static java.lang.String[] getAttachmentAndPageId​(java.lang.String id)

        Gets the attachment id and page id from a repository document id

        Parameters:
        id - the repository document id
        Returns:
        an Array containing the attachment and page ids where index 0 is the attachment id and index 1 is the page id