org.nuiton.jredmine.plugin
Class DisplayDataMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.nuiton.plugin.AbstractPlugin
          extended by org.nuiton.jredmine.plugin.AbstractRedmineMojo
              extended by org.nuiton.jredmine.plugin.DisplayDataMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.nuiton.io.rest.RestClientConfiguration, org.nuiton.plugin.Plugin

public class DisplayDataMojo
extends AbstractRedmineMojo

Display in console some data from redmine's server.

Since:
1.0.0
Author:
tchemit
Is defined by the goal name:
display-data

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging
 
Field Summary
protected  java.util.List<RedmineModelEnum> actions
          list of actions to perform
protected  java.lang.String types
          The data types to display : issueSatus, issuePriority, issueCategory, tracker and user.
 
Fields inherited from class org.nuiton.jredmine.plugin.AbstractRedmineMojo
dateFormat, encoding, initOk, password, project, projectId, REDMINE_SYSTEM, releaseProject, releaseUser, releaseVersion, runOnceDone, safe, service, serviceInit, session, url, username, users, verbose, versionId
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
DisplayDataMojo()
           
 
Method Summary
protected  boolean checkRunOnceDone()
           
protected  boolean checkSkip()
           
protected  void doAction()
          Re-expose the protected method for test purposes...
protected  java.util.List<RedmineModelEnum> getDownloadActions(java.lang.String dataTypes, RedmineModelEnum... universe)
           
protected  void init()
           
protected  boolean isGoalSkip()
           
protected  boolean isRunOnce()
           
 
Methods inherited from class org.nuiton.jredmine.plugin.AbstractRedmineMojo
afterExecute, closeService, getEncoding, getProject, getRestPassword, getRestUrl, getRestUsername, initReleaseProject, initReleaseUser, initReleaseVersion, isAnonymous, isRunOnceDone, isSafe, isVerbose, setAnonymous, setEncoding, setProject, setRestPassword, setRestUrl, setRestUsername, setSafe, setVerbose
 
Methods inherited from class org.nuiton.plugin.AbstractPlugin
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addTestResourceDir, addUrlToUrlsList, backupFile, checkPackaging, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFile
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
getLog, setLog
 

Field Detail

types

protected java.lang.String types
The data types to display : issueSatus, issuePriority, issueCategory, tracker and user.

issueStatus and issuePriority are common for all projects, so for those datas, no extrat configuration is required.

isseCategoriy, tracker and user are project specific, so you have to fill also the projectId parameter to obtain data for those types.

Note : you can specifiy several types separated by comma

Since:
1.0.0
Is defined by:
expression:
${redmine.types}
Is required.

actions

protected java.util.List<RedmineModelEnum> actions
list of actions to perform

Constructor Detail

DisplayDataMojo

public DisplayDataMojo()
Method Detail

checkRunOnceDone

protected boolean checkRunOnceDone()
Specified by:
checkRunOnceDone in class AbstractRedmineMojo

isGoalSkip

protected boolean isGoalSkip()
Specified by:
isGoalSkip in class AbstractRedmineMojo

isRunOnce

protected boolean isRunOnce()
Specified by:
isRunOnce in class AbstractRedmineMojo

init

protected void init()
             throws java.lang.Exception
Overrides:
init in class AbstractRedmineMojo
Throws:
java.lang.Exception

checkSkip

protected boolean checkSkip()
Overrides:
checkSkip in class AbstractRedmineMojo

doAction

protected void doAction()
                 throws java.lang.Exception
Description copied from class: AbstractRedmineMojo
Re-expose the protected method for test purposes...

Specified by:
doAction in class AbstractRedmineMojo
Throws:
java.lang.Exception
See Also:
AbstractPlugin.doAction()

getDownloadActions

protected java.util.List<RedmineModelEnum> getDownloadActions(java.lang.String dataTypes,
                                                              RedmineModelEnum... universe)
                                                       throws org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoFailureException


Copyright © 2009-2010 CodeLutin. All Rights Reserved.