hudson.scm
Class SubversionTagAction

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.TaskAction
          extended by hudson.scm.AbstractScmTagAction
              extended by hudson.scm.SubversionTagAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.BuildBadgeAction, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem

public class SubversionTagAction
extends hudson.scm.AbstractScmTagAction

Action that lets people create tag for the given build.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 class SubversionTagAction.TagWorkerThread
          The thread that performs tagging operation asynchronously.
 
Field Summary
 
Fields inherited from class hudson.scm.AbstractScmTagAction
build
 
Fields inherited from class hudson.model.TaskAction
log, workerThread
 
Method Summary
 void doSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Invoked to actually tag the workspace.
 java.lang.String getDisplayName()
           
 java.lang.String getIconFileName()
           
 hudson.security.Permission getPermission()
           
 java.util.Map<SubversionSCM.SvnInfo,java.util.List<java.lang.String>> getTags()
           
 java.lang.String getTooltip()
           
 boolean hasTags()
          Was any tag created by the user already?
 boolean isTagged()
          Returns true if this build has already been tagged at least once.
 java.lang.String makeTagURL(SubversionSCM.SvnInfo si)
          Creates a URL, to be used as the default value of the module tag URL.
 
Methods inherited from class hudson.scm.AbstractScmTagAction
chooseAction, doIndex, getACL, getBuild, getUrlName
 
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, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasTags

public boolean hasTags()
Was any tag created by the user already?


getIconFileName

public java.lang.String getIconFileName()

getDisplayName

public java.lang.String getDisplayName()

getTags

public java.util.Map<SubversionSCM.SvnInfo,java.util.List<java.lang.String>> getTags()
See Also:
tags

isTagged

public boolean isTagged()
Returns true if this build has already been tagged at least once.

Specified by:
isTagged in class hudson.scm.AbstractScmTagAction

getTooltip

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

makeTagURL

public java.lang.String makeTagURL(SubversionSCM.SvnInfo si)
Creates a URL, to be used as the default value of the module tag URL.

Returns:
null if failed to guess.

doSubmit

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

Throws:
java.io.IOException
javax.servlet.ServletException

getPermission

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


Copyright © 2009. All Rights Reserved.