hudson.scm
Class TagAction

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.TaskAction
          extended by hudson.scm.AbstractScmTagAction
              extended by hudson.scm.TagAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.BuildBadgeAction, hudson.model.Describable<TagAction>, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem
Direct Known Subclasses:
CVSSCM.TagAction

@ExportedBean
public class TagAction
extends hudson.scm.AbstractScmTagAction
implements hudson.model.Describable<TagAction>

Action for a build that performs the tagging.


Nested Class Summary
static class TagAction.TagActionDescriptor
           
static class TagAction.TagWorkerThread
           
 
Field Summary
 
Fields inherited from class hudson.scm.AbstractScmTagAction
build
 
Fields inherited from class hudson.model.TaskAction
log, workerThread
 
Constructor Summary
TagAction(hudson.model.AbstractBuild build, CVSSCM scmInstance)
           
 
Method Summary
 hudson.util.FormValidation doCheckTag(String value)
          Checks if the value is a valid CVS tag name.
 void doSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Invoked to actually tag the workspace.
 hudson.model.Descriptor<TagAction> getDescriptor()
           
 String getDisplayName()
           
 String getIconFileName()
           
 hudson.security.Permission getPermission()
           
 String[] getTagNames()
           
 String getTooltip()
           
 boolean isTagged()
           
 void perform(String tagName, hudson.model.TaskListener listener)
          Performs tagging.
 
Methods inherited from class hudson.scm.AbstractScmTagAction
chooseAction, doIndex, getACL, getBuild, getUrlName
 
Methods inherited from class hudson.model.TaskAction
doClearError, doProgressiveHtml, doProgressiveLog, getLog, getSearchUrl, getWorkerThread, obtainLog
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagAction

public TagAction(hudson.model.AbstractBuild build,
                 CVSSCM scmInstance)
Method Detail

getIconFileName

public String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getTagNames

@Exported
public String[] getTagNames()

doCheckTag

public hudson.util.FormValidation doCheckTag(@QueryParameter
                                             String value)
Checks if the value is a valid CVS tag name.


getPermission

public hudson.security.Permission getPermission()
Overrides:
getPermission in class hudson.scm.AbstractScmTagAction

getTooltip

public String getTooltip()
Overrides:
getTooltip in class hudson.scm.AbstractScmTagAction

isTagged

public boolean isTagged()
Specified by:
isTagged in class hudson.scm.AbstractScmTagAction

doSubmit

public void doSubmit(org.kohsuke.stapler.StaplerRequest req,
                     org.kohsuke.stapler.StaplerResponse rsp)
              throws IOException,
                     javax.servlet.ServletException
Invoked to actually tag the workspace.

Throws:
IOException
javax.servlet.ServletException

perform

public void perform(String tagName,
                    hudson.model.TaskListener listener)
Performs tagging.


getDescriptor

public hudson.model.Descriptor<TagAction> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<TagAction>


Copyright © 2004-2011 Hudson. All Rights Reserved.