public class DefaultHPALMMojoDAO extends Object implements HPALMMojoDAOI
| Constructor and Description |
|---|
DefaultHPALMMojoDAO()
Default contructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
authenticateToConfluence(String confleunceUser,
String confluencePassword)
Authenticates to Confluence
|
String |
authenticateToHPALM(String targetURL,
String username,
String password)
Authenticate to HP ALM
|
HashMap<Object,Object> |
getConfluencePage(Object cookie,
String confluencePageID)
Retrieves Confluence page content
|
String |
getFromHPALM(String targetURL,
String cookie)
Get the content from target URL via GET method
|
void |
initializeXmlRpcClient(String confluenceServer)
Initialize XML RPC Client
|
String |
putToHPALM(String targetURL,
String urlParameters,
String cookie)
Send content to target URL via PUT method
|
void |
updateConfluencePage(Object cookie,
HashMap<Object,Object> page,
HashMap<Object,Object> pageUpdateOptions)
Update Confluence page with given content
|
public void updateConfluencePage(Object cookie, HashMap<Object,Object> page, HashMap<Object,Object> pageUpdateOptions) throws org.apache.xmlrpc.XmlRpcException
updateConfluencePage in interface HPALMMojoDAOIcookie - Confluence session authentication objectpage - Confluence page contentpageUpdateOptions - Update optionsorg.apache.xmlrpc.XmlRpcExceptionpublic HashMap<Object,Object> getConfluencePage(Object cookie, String confluencePageID) throws org.apache.xmlrpc.XmlRpcException
getConfluencePage in interface HPALMMojoDAOIcookie - Confluence session authentication objectconfluencePageID - CID of Confluence page to retrieveorg.apache.xmlrpc.XmlRpcExceptionpublic Object authenticateToConfluence(String confleunceUser, String confluencePassword) throws org.apache.xmlrpc.XmlRpcException
authenticateToConfluence in interface HPALMMojoDAOIconfleunceUser - Confluence userconfluencePassword - Confluence passwordorg.apache.xmlrpc.XmlRpcExceptionpublic void initializeXmlRpcClient(String confluenceServer) throws MalformedURLException
initializeXmlRpcClient in interface HPALMMojoDAOIconfluenceServer - Confluence addressMalformedURLExceptionpublic String putToHPALM(String targetURL, String urlParameters, String cookie) throws org.apache.maven.plugin.MojoFailureException
putToHPALM in interface HPALMMojoDAOItargetURL - - target to send the content tourlParameters - - the content to be sentcookie - - cookie to be set in Cookie header fileorg.apache.maven.plugin.MojoFailureException - if server responded with code different than 200public String getFromHPALM(String targetURL, String cookie) throws org.apache.maven.plugin.MojoFailureException
getFromHPALM in interface HPALMMojoDAOItargetURL - - target to get the content fromcookie - - cookie to be set in Cookie header fileorg.apache.maven.plugin.MojoFailureException - if server responded with code different than 200public String authenticateToHPALM(String targetURL, String username, String password) throws org.apache.maven.plugin.MojoFailureException
authenticateToHPALM in interface HPALMMojoDAOItargetURL - - target to authenticate tousername - - HP ALM userpassword - - HP ALM passwordorg.apache.maven.plugin.MojoFailureException - if server responded with code different than 200Copyright © 2015. All rights reserved.