org.nuiton.jredmine.plugin.announcement
Class AnnouncementGenerator

java.lang.Object
  extended by org.nuiton.jredmine.plugin.announcement.AnnouncementGenerator

public class AnnouncementGenerator
extends java.lang.Object

Since:
1.0.0
Author:
chemit

Constructor Summary
AnnouncementGenerator(AnnouncementGeneratorConfiguration configuration)
           
 
Method Summary
 boolean canGenerateAttachmentLinks()
          Checks whether links to the issues can be generated.
 org.apache.velocity.context.Context createVelocityContext(java.util.List<?> releases)
           
 void doGenerate(org.apache.velocity.app.VelocityEngine engine, org.apache.velocity.context.Context context, java.io.File out, java.lang.String templatePath, java.lang.String templateEncoding)
           
 java.lang.String getAttachmentLinkTemplate()
           
 java.util.Map<Attachment,java.lang.String> getAttachmentsUrls(Attachment[] attachments)
           
 org.apache.maven.plugins.changes.model.Release getLatestRelease(java.util.List<?> releases, java.lang.String releaseVersion)
          Get the latest release by matching the supplied releases with the version from the pom.
 org.apache.maven.plugin.logging.Log getLog()
           
protected  org.apache.maven.plugins.changes.model.Release getRelease(java.util.List<?> releases, java.lang.String version)
           
 java.lang.String getUrl()
           
protected  java.lang.String parseAttachmentLink(java.lang.String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnouncementGenerator

public AnnouncementGenerator(AnnouncementGeneratorConfiguration configuration)
Method Detail

getAttachmentLinkTemplate

public java.lang.String getAttachmentLinkTemplate()

getLog

public org.apache.maven.plugin.logging.Log getLog()

getUrl

public java.lang.String getUrl()

getAttachmentsUrls

public java.util.Map<Attachment,java.lang.String> getAttachmentsUrls(Attachment[] attachments)

createVelocityContext

public org.apache.velocity.context.Context createVelocityContext(java.util.List<?> releases)
                                                          throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

doGenerate

public void doGenerate(org.apache.velocity.app.VelocityEngine engine,
                       org.apache.velocity.context.Context context,
                       java.io.File out,
                       java.lang.String templatePath,
                       java.lang.String templateEncoding)
                throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

canGenerateAttachmentLinks

public boolean canGenerateAttachmentLinks()
Checks whether links to the issues can be generated.

Returns:
true if issue links can be generated, false otherwise.

parseAttachmentLink

protected java.lang.String parseAttachmentLink(java.lang.String id)

getLatestRelease

public org.apache.maven.plugins.changes.model.Release getLatestRelease(java.util.List<?> releases,
                                                                       java.lang.String releaseVersion)
                                                                throws org.apache.maven.plugin.MojoExecutionException
Get the latest release by matching the supplied releases with the version from the pom.

Parameters:
releases - list of releases
releaseVersion - the release version
Returns:
A Release that matches the next release of the current project
Throws:
org.apache.maven.plugin.MojoExecutionException - if any pb

getRelease

protected org.apache.maven.plugins.changes.model.Release getRelease(java.util.List<?> releases,
                                                                    java.lang.String version)


Copyright © 2009-2010 CodeLutin. All Rights Reserved.