hudson.scm
Class AbstractReleaseScmTagAction

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.TaskAction
          extended by hudson.scm.AbstractReleaseScmTagAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.BuildBadgeAction, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem
Direct Known Subclasses:
SubversionReleaseTagAction

public abstract class AbstractReleaseScmTagAction
extends hudson.model.TaskAction
implements hudson.model.BuildBadgeAction

Common part of CVSSCM.TagAction and SubversionTagAction.

This class implements the action that tags the modules. Derived classes need to provide tagForm.jelly view that displays a form for letting user start tagging.

Author:
Kohsuke Kawaguchi

Field Summary
protected  hudson.model.AbstractBuild build
           
 
Fields inherited from class hudson.model.TaskAction
log, workerThread
 
Constructor Summary
protected AbstractReleaseScmTagAction(hudson.model.AbstractBuild build)
           
 
Method Summary
protected  java.lang.String chooseAction()
           
 void doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
protected  hudson.security.ACL getACL()
           
 hudson.model.AbstractBuild getBuild()
           
protected  hudson.security.Permission getPermission()
          Defaults to SCM#TAG.
 java.lang.String getTooltip()
          This message is shown as the tool tip of the build badge icon.
 java.lang.String getUrlName()
           
abstract  boolean isTagged()
          Returns true if the build is tagged already.
 
Methods inherited from class hudson.model.TaskAction
doClearError, doProgressiveLog, getLog, getSearchUrl, getWorkerThread
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName
 

Field Detail

build

protected final hudson.model.AbstractBuild build
Constructor Detail

AbstractReleaseScmTagAction

protected AbstractReleaseScmTagAction(hudson.model.AbstractBuild build)
Method Detail

getUrlName

public final java.lang.String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

getPermission

protected hudson.security.Permission getPermission()
Defaults to SCM#TAG.

Specified by:
getPermission in class hudson.model.TaskAction

getBuild

public hudson.model.AbstractBuild getBuild()

getTooltip

public java.lang.String getTooltip()
This message is shown as the tool tip of the build badge icon.


isTagged

public abstract boolean isTagged()
Returns true if the build is tagged already.


getACL

protected hudson.security.ACL getACL()
Specified by:
getACL in class hudson.model.TaskAction

doIndex

public void doIndex(org.kohsuke.stapler.StaplerRequest req,
                    org.kohsuke.stapler.StaplerResponse rsp)
             throws java.io.IOException,
                    javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

chooseAction

protected java.lang.String chooseAction()


Copyright © 2009. All Rights Reserved.