Return-Path: X-Original-To: apmail-manifoldcf-commits-archive@www.apache.org Delivered-To: apmail-manifoldcf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9DCEB18ADA for ; Sun, 29 Nov 2015 11:56:48 +0000 (UTC) Received: (qmail 63157 invoked by uid 500); 29 Nov 2015 11:56:48 -0000 Delivered-To: apmail-manifoldcf-commits-archive@manifoldcf.apache.org Received: (qmail 63108 invoked by uid 500); 29 Nov 2015 11:56:48 -0000 Mailing-List: contact commits-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list commits@manifoldcf.apache.org Received: (qmail 63099 invoked by uid 99); 29 Nov 2015 11:56:48 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Nov 2015 11:56:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1E0EC1A0B6C for ; Sun, 29 Nov 2015 11:56:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.447 X-Spam-Level: X-Spam-Status: No, score=0.447 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.554, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id wkYfRIj7_Fq3 for ; Sun, 29 Nov 2015 11:56:41 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id 4F73520944 for ; Sun, 29 Nov 2015 11:56:41 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0795FE0280 for ; Sun, 29 Nov 2015 11:56:41 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 056ED3A0234 for ; Sun, 29 Nov 2015 11:56:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1717047 - /manifoldcf/trunk/connectors/confluence/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/confluence/util/ConfluenceUtil.java Date: Sun, 29 Nov 2015 11:56:41 -0000 To: commits@manifoldcf.apache.org From: kwright@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20151129115641.056ED3A0234@svn01-us-west.apache.org> Author: kwright Date: Sun Nov 29 11:56:40 2015 New Revision: 1717047 URL: http://svn.apache.org/viewvc?rev=1717047&view=rev Log: Reformat as per MCF standards Modified: manifoldcf/trunk/connectors/confluence/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/confluence/util/ConfluenceUtil.java Modified: manifoldcf/trunk/connectors/confluence/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/confluence/util/ConfluenceUtil.java URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/confluence/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/confluence/util/ConfluenceUtil.java?rev=1717047&r1=1717046&r2=1717047&view=diff ============================================================================== --- manifoldcf/trunk/connectors/confluence/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/confluence/util/ConfluenceUtil.java (original) +++ manifoldcf/trunk/connectors/confluence/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/confluence/util/ConfluenceUtil.java Sun Nov 29 11:56:40 2015 @@ -25,35 +25,35 @@ package org.apache.manifoldcf.crawler.co */ public class ConfluenceUtil { - private static final String ATTACHMENT_ID_PREFIX = "att"; - - /** - *

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

- * @param attachmentId - * @param pageId - * @return a generated - */ - public static String generateRepositoryDocumentIdentifier(String attachmentId, String pageId) { - StringBuilder sb = new StringBuilder(); - sb.append(attachmentId).append("-").append(pageId); - return sb.toString(); - } - - /** - *

Checks if the given id is an attachment or not

- * @param id - * @return a {@code Boolean} indicating if the id is related to an attachment or not - */ - public static Boolean isAttachment(String id) { - return id.startsWith(ATTACHMENT_ID_PREFIX); - } - - /** - *

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

- * @param id the repository document id - * @return an Array containing the attachment and page ids where index 0 is the attachment id and index 1 is the page id - */ - public static String[] getAttachmentAndPageId(String id) { - return id.split("-"); - } + private static final String ATTACHMENT_ID_PREFIX = "att"; + + /** + *

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

+ * @param attachmentId + * @param pageId + * @return a generated + */ + public static String generateRepositoryDocumentIdentifier(String attachmentId, String pageId) { + StringBuilder sb = new StringBuilder(); + sb.append(attachmentId).append("-").append(pageId); + return sb.toString(); + } + + /** + *

Checks if the given id is an attachment or not

+ * @param id + * @return a {@code Boolean} indicating if the id is related to an attachment or not + */ + public static Boolean isAttachment(String id) { + return id.startsWith(ATTACHMENT_ID_PREFIX); + } + + /** + *

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

+ * @param id the repository document id + * @return an Array containing the attachment and page ids where index 0 is the attachment id and index 1 is the page id + */ + public static String[] getAttachmentAndPageId(String id) { + return id.split("-"); + } }