|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.msidor.maven.plugins.hpalm.deliverynote.DefaultHPALMMojoDAO
public class DefaultHPALMMojoDAO
Default implementation of HPALMMavenPluginDAOI. This Data Access Object provides API that allows to execute remote commands on Confluence and HP ALM servers.
| Constructor Summary | |
|---|---|
DefaultHPALMMojoDAO()
Default contructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultHPALMMojoDAO()
| Method Detail |
|---|
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 options
org.apache.xmlrpc.XmlRpcException
public 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 retrieve
org.apache.xmlrpc.XmlRpcException
public Object authenticateToConfluence(String confleunceUser,
String confluencePassword)
throws org.apache.xmlrpc.XmlRpcException
authenticateToConfluence in interface HPALMMojoDAOIconfleunceUser - Confluence userconfluencePassword - Confluence password
org.apache.xmlrpc.XmlRpcException
public void initializeXmlRpcClient(String confluenceServer)
throws MalformedURLException
initializeXmlRpcClient in interface HPALMMojoDAOIconfluenceServer - Confluence address
MalformedURLException
public 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 file
org.apache.maven.plugin.MojoFailureException - if server responded with code different than 200
public 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 file
org.apache.maven.plugin.MojoFailureException - if server responded with code different than 200
public 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 password
org.apache.maven.plugin.MojoFailureException - if server responded with code different than 200
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||