Class ConfluenceUtil
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.confluence.v6.util.ConfluenceUtil
-
public class ConfluenceUtil extends java.lang.ObjectUtility 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.StringgenerateRepositoryDocumentIdentifier(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 pagesstatic java.lang.String[]getAttachmentAndPageId(java.lang.String id)Gets the attachment id and page id from a repository document idstatic java.lang.BooleanisAttachment(java.lang.String id)Checks if the given id is an attachment or not
-
-
-
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 java.lang.Boolean isAttachment(java.lang.String id)
Checks if the given id is an attachment or not
- Parameters:
id-- Returns:
- a
Booleanindicating 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
-
-