com.googlecode.msidor.maven.plugins.hpalm.deliverynote
Class HPALMMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.googlecode.msidor.maven.plugins.hpalm.deliverynote.HPALMMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class HPALMMojo
extends org.apache.maven.plugin.AbstractMojo

Author:
Maciej SIDOR Implementation of "generate-change" goal.

This goal generates change-log based on HP ALM issue management system. The issues to be included in change-log are queried based on the given HP ALM query statement (see ALM 11.0 REST API reference guide for more informations). Obtained issues can then be publish to CONFLUENCE page under the given keyword (or at the top of page in none given nor found). Additionally, one may select fields (and define their translations) that will be published in change-log report. There is also an option to update all queried defects with predefined values. The change-log output is compatible with maven announce plugin.

For more informations about HP ALM see ALM 11.0 REST API reference guide at https://ovrd.external.hp.com/rd/sign-in?TYPE=33554433&REALMOID =06-000d bac2-dc02-1680-9aa0-a14d91440000&GUID=&SMAUTHREASON=0&METHOD=GET &SMAGENTNAME =$SM$iZH9ShXntQjxWQQV0Oqhh1Bk9OnxvC2w1G6RIFVaWUyeFBPUD93KOaOhpUkS %2fp7X&TARGET=$SM$http%3a%2f%2fsupport% 2eopenview%2ehp%2ecom%2fselfsolve%2fdocument%2fKM997956%2fbinary%2fALM11%2e00_R E


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
HPALMMojo()
           
 
Method Summary
 void execute()
           Main plugin method
 HPALMMojoDAOI getDao()
           
 String getUpdateStatement(Entity entity)
          Prepare update statement for entity
 List<Entity> parse(String xmlBody)
          Transform the entities to object representation
 void setDao(HPALMMojoDAOI dao)
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HPALMMojo

public HPALMMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException

Main plugin method

Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

getUpdateStatement

public String getUpdateStatement(Entity entity)
Prepare update statement for entity

Parameters:
entity - - entity to update
Returns:
update statement for entity

parse

public List<Entity> parse(String xmlBody)
Transform the entities to object representation

Parameters:
xmlBody - - result of HP ALM query containing entity definitions to parse
Returns:
list of entities

getDao

public HPALMMojoDAOI getDao()

setDao

public void setDao(HPALMMojoDAOI dao)


Copyright © 2014. All rights reserved.