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.Describable<SubversionTagAction>, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem

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

Action that lets people create tag for the given build.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class SubversionTagAction.DescriptorImpl
          Just for assisting form related stuff.
static class SubversionTagAction.TagInfo
           
 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.
 hudson.model.Descriptor<SubversionTagAction> getDescriptor()
           
 java.lang.String getDisplayName()
           
 java.lang.String getIconFileName()
           
 hudson.security.Permission getPermission()
           
 java.util.List<SubversionTagAction.TagInfo> getTagInfo()
           
 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, 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
 

Method Detail

hasTags

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


getIconFileName

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

getDisplayName

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

getTags

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

getTagInfo

@Exported(name="tags")
public java.util.List<SubversionTagAction.TagInfo> getTagInfo()

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

getDescriptor

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


Copyright © 2010. All Rights Reserved.