org.bsc.maven.plugin.confluence
Class ConfluenceUtils
java.lang.Object
org.bsc.maven.plugin.confluence.ConfluenceUtils
public class ConfluenceUtils
- extends Object
- Author:
- Sorrentino
|
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 boolean |
addAttchment(Confluence confluence,
org.codehaus.swizzle.confluence.Page page,
Attachment attachment,
URL 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 |
ConfluenceUtils
public ConfluenceUtils()
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,
URL source)
throws Exception
- 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 © 2013. All Rights Reserved.