org.bsc.maven.plugin.confluence
Class ConfluenceUtils

java.lang.Object
  extended by org.bsc.maven.plugin.confluence.ConfluenceUtils

public class ConfluenceUtils
extends Object

Author:
Sorrentino

Constructor Summary
ConfluenceUtils()
           
 
Method Summary
static boolean addAttchment(Confluence confluence, org.codehaus.swizzle.confluence.Page page, Attachment attachment, File source)
           
static void addAttchment(Confluence confluence, org.codehaus.swizzle.confluence.Page page, Attachment attachment, InputStream source)
           
static String decode(String value)
           
static String encodeAnchor(String value)
           
static org.codehaus.swizzle.confluence.PageSummary findPageByTitle(Confluence confluence, String parentPageId, String title)
           
static org.codehaus.swizzle.confluence.Page getOrCreatePage(Confluence confluence, org.codehaus.swizzle.confluence.Page parentPage, String title)
           
static org.codehaus.swizzle.confluence.Page getOrCreatePage(Confluence confluence, String spaceKey, String parentPageTitle, String title)
           
static String getVersion(Confluence confluence)
           
static boolean removePage(Confluence confluence, org.codehaus.swizzle.confluence.Page parentPage, String title)
           
static boolean removePage(Confluence confluence, String spaceKey, String parentPageTitle, String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceUtils

public ConfluenceUtils()
Method Detail

decode

public static String decode(String value)
Parameters:
value -
Returns:

encodeAnchor

public static String encodeAnchor(String value)
Parameters:
value -
Returns:

findPageByTitle

public static org.codehaus.swizzle.confluence.PageSummary findPageByTitle(Confluence confluence,
                                                                          String parentPageId,
                                                                          String title)
                                                                   throws Exception
Parameters:
parentPageId -
title -
Returns:
Throws:
Exception

removePage

public static boolean removePage(Confluence confluence,
                                 String spaceKey,
                                 String parentPageTitle,
                                 String title)
                          throws Exception
Parameters:
confluence -
parentPageId -
title -
Returns:
Throws:
Exception

removePage

public static boolean removePage(Confluence confluence,
                                 org.codehaus.swizzle.confluence.Page parentPage,
                                 String title)
                          throws Exception
Throws:
Exception

getOrCreatePage

public static org.codehaus.swizzle.confluence.Page getOrCreatePage(Confluence confluence,
                                                                   String spaceKey,
                                                                   String parentPageTitle,
                                                                   String title)
                                                            throws Exception
Parameters:
confluence -
parentPageId -
title -
Returns:
Throws:
Exception

getOrCreatePage

public static org.codehaus.swizzle.confluence.Page getOrCreatePage(Confluence confluence,
                                                                   org.codehaus.swizzle.confluence.Page parentPage,
                                                                   String title)
                                                            throws Exception
Parameters:
confluence -
parentPage -
title -
Returns:
Throws:
Exception

addAttchment

public static boolean addAttchment(Confluence confluence,
                                   org.codehaus.swizzle.confluence.Page page,
                                   Attachment attachment,
                                   File source)
                            throws Exception
Throws:
Exception

addAttchment

public static void addAttchment(Confluence confluence,
                                org.codehaus.swizzle.confluence.Page page,
                                Attachment attachment,
                                InputStream source)
                         throws Exception
Throws:
Exception

getVersion

public static String getVersion(Confluence confluence)


Copyright © 2012. All Rights Reserved.