hudson.scm
Class SubversionReleaseTagAction

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

public class SubversionReleaseTagAction
extends AbstractReleaseScmTagAction

Action that lets people create tag for the given build.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 class SubversionReleaseTagAction.TagWorkerThread
          The thread that performs tagging operation asynchronously.
 
Field Summary
 
Fields inherited from class hudson.scm.AbstractReleaseScmTagAction
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()
          Defaults to SCM#TAG.
 java.util.Map<SubversionReleaseSCM.SvnInfo,java.util.List<java.lang.String>> getTags()
           
 java.lang.String getTooltip()
          This message is shown as the tool tip of the build badge icon.
 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(SubversionReleaseSCM.SvnInfo si)
          Creates a URL, to be used as the default value of the module tag URL.
 
Methods inherited from class hudson.scm.AbstractReleaseScmTagAction
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
 
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<SubversionReleaseSCM.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 AbstractReleaseScmTagAction

getTooltip

public java.lang.String getTooltip()
Description copied from class: AbstractReleaseScmTagAction
This message is shown as the tool tip of the build badge icon.

Overrides:
getTooltip in class AbstractReleaseScmTagAction

makeTagURL

public java.lang.String makeTagURL(SubversionReleaseSCM.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()
Description copied from class: AbstractReleaseScmTagAction
Defaults to SCM#TAG.

Overrides:
getPermission in class AbstractReleaseScmTagAction


Copyright © 2009. All Rights Reserved.