org.apache.maven.plugins.patchtracker.tracking.jira
Class JiraPatchTracker

java.lang.Object
  extended by org.apache.maven.plugins.patchtracker.tracking.jira.JiraPatchTracker
All Implemented Interfaces:
PatchTracker

public class JiraPatchTracker
extends Object
implements PatchTracker

Author:
Olivier Lamy
Plexus component:
role:
"org.apache.maven.plugins.patchtracker.tracking.PatchTracker"
role-hint:
"jira"

Constructor Summary
JiraPatchTracker()
           
 
Method Summary
 PatchTrackerResult createPatch(PatchTrackerRequest patchTrackerRequest, Log log)
          create a new entry in the patch tracker
 JiraSession createSession(PatchTrackerRequest patchTrackerRequest, Log log)
           
protected  String extractBaseUrl(String url)
           
protected  URL extractBaseUrlAsUrl(String url)
           
protected  String extractProjectKey(String url)
           
protected  String getComponentId(String url, String projectKey)
           
 PatchTrackerResult updatePatch(PatchTrackerRequest patchTrackerRequest, Log log)
          update a patch entry in the patch tracker patchTrackerRequest.patchId is mandatory!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraPatchTracker

public JiraPatchTracker()
Method Detail

createPatch

public PatchTrackerResult createPatch(PatchTrackerRequest patchTrackerRequest,
                                      Log log)
                               throws PatchTrackerException
Description copied from interface: PatchTracker
create a new entry in the patch tracker

Specified by:
createPatch in interface PatchTracker
Returns:
Throws:
PatchTrackerException

updatePatch

public PatchTrackerResult updatePatch(PatchTrackerRequest patchTrackerRequest,
                                      Log log)
                               throws PatchTrackerException
Description copied from interface: PatchTracker
update a patch entry in the patch tracker patchTrackerRequest.patchId is mandatory!

Specified by:
updatePatch in interface PatchTracker
Returns:
Throws:
PatchTrackerException

createSession

public JiraSession createSession(PatchTrackerRequest patchTrackerRequest,
                                 Log log)
                          throws PatchTrackerException
Throws:
PatchTrackerException

extractProjectKey

protected String extractProjectKey(String url)
Parameters:
url - https://jira.codehaus.org/browse/MNG
Returns:
the project key MNG

extractBaseUrl

protected String extractBaseUrl(String url)
Parameters:
url - https://jira.codehaus.org/browse/MNG
Returns:
https://jira.codehaus.org

extractBaseUrlAsUrl

protected URL extractBaseUrlAsUrl(String url)
                           throws MalformedURLException
Throws:
MalformedURLException

getComponentId

protected String getComponentId(String url,
                                String projectKey)


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.