hudson.plugins.perforce
Class PerforceTagAction

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

public class PerforceTagAction
extends hudson.scm.AbstractScmTagAction

Action that lets people create tag for the given build.

Author:
Mike Wille

Nested Class Summary
static class PerforceTagAction.PerforceTag
           
 
Field Summary
 
Fields inherited from class hudson.scm.AbstractScmTagAction
build
 
Fields inherited from class hudson.model.TaskAction
log, workerThread
 
Constructor Summary
PerforceTagAction(hudson.model.AbstractBuild build, Depot depot, int changeNumber, String views, String owner)
           
PerforceTagAction(hudson.model.AbstractBuild build, Depot depot, String label, String views, String owner)
           
PerforceTagAction(PerforceTagAction tga)
           
 
Method Summary
 hudson.util.FormValidation doCheckTag(String value)
          Checks if the value is a valid Perforce tag (label) name.
 void doSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Invoked to actually tag the workspace.
 int getChangeNumber()
           
 Depot getDepot()
           
 String getDescription()
           
 String getDisplayName()
           
 String getIconFileName()
           
 String getOwner()
           
protected  hudson.security.Permission getPermission()
           
 String getTag()
           
 List<PerforceTagAction.PerforceTag> getTags()
           
 String getView()
           
 String isInvalidTag(String tag)
          Checks to see if the user entered tag matches any Perforce restrictions.
 boolean isTagged()
          Returns true if this build has already been tagged at least once.
 Object readResolve()
           
 void setDescription(String desc)
           
 void setOwner(String owner)
           
 void setTag(String tag)
           
 void setTags(List<PerforceTagAction.PerforceTag> tags)
           
 void tagBuild(String tagname, String description, String owner)
           
 
Methods inherited from class hudson.scm.AbstractScmTagAction
chooseAction, doIndex, getACL, getBuild, getTooltip, getUrlName
 
Methods inherited from class hudson.model.TaskAction
doClearError, doProgressiveHtml, doProgressiveLog, getLog, getSearchUrl, getWorkerThread, obtainLog
 
Methods inherited from class hudson.model.AbstractModelObject
getConfiguredHudsonProperty, 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

PerforceTagAction

public PerforceTagAction(hudson.model.AbstractBuild build,
                         Depot depot,
                         int changeNumber,
                         String views,
                         String owner)

PerforceTagAction

public PerforceTagAction(hudson.model.AbstractBuild build,
                         Depot depot,
                         String label,
                         String views,
                         String owner)

PerforceTagAction

public PerforceTagAction(PerforceTagAction tga)
Method Detail

getChangeNumber

public int getChangeNumber()

getView

public String getView()

getIconFileName

public String getIconFileName()

getDisplayName

public String getDisplayName()

getTag

public String getTag()

setTag

public void setTag(String tag)

getDescription

public String getDescription()

setDescription

public void setDescription(String desc)

getOwner

public String getOwner()

setOwner

public void setOwner(String owner)

getDepot

public Depot getDepot()

getTags

public List<PerforceTagAction.PerforceTag> getTags()

setTags

public void setTags(List<PerforceTagAction.PerforceTag> 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

isInvalidTag

public String isInvalidTag(String tag)
Checks to see if the user entered tag matches any Perforce restrictions.


doCheckTag

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


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

tagBuild

public void tagBuild(String tagname,
                     String description,
                     String owner)
              throws IOException
Throws:
IOException

readResolve

public Object readResolve()

getPermission

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


Copyright © 2004-2012 Hudson. All Rights Reserved.