hudson.plugins.jswidgets
Class JsBuildAction

java.lang.Object
  extended by hudson.plugins.jswidgets.JsBaseAction
      extended by hudson.plugins.jswidgets.JsBuildAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

public class JsBuildAction
extends JsBaseAction

This class implements the JS widgets pages for a build.

Author:
mfriedenhagen

Constructor Summary
JsBuildAction(hudson.model.AbstractBuild<?,?> build)
          This class implements the JS widgets pages for a build.
 
Method Summary
 hudson.model.AbstractBuild<?,?> getBuild()
          Returns the build.
 java.lang.String getBuiltOn()
          Returns the Name of the Node where the AbstractBuild happened.
 java.util.Collection<java.lang.String> getChangeSetEntries(hudson.scm.ChangeLogSet.Entry entry)
          Returns a representation for affected files in entry prefixing them with the EditType of the change.
 hudson.model.AbstractProject<?,?> getProject()
          Returns the project.
 java.lang.String getUrlName()
          
 
Methods inherited from class hudson.plugins.jswidgets.JsBaseAction
getBaseUrl, getDisplayName, getIconFileName, getImagesUrl, skipDescription, wantHtml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsBuildAction

public JsBuildAction(hudson.model.AbstractBuild<?,?> build)
This class implements the JS widgets pages for a build.

Parameters:
build - this action acts on.
Method Detail

getUrlName

public java.lang.String getUrlName()

Specified by:
getUrlName in interface hudson.model.Action
Overrides:
getUrlName in class JsBaseAction

getBuild

public hudson.model.AbstractBuild<?,?> getBuild()
Returns the build.

Returns:
the build.

getProject

public hudson.model.AbstractProject<?,?> getProject()
Returns the project.

Returns:
the project.

getBuiltOn

public java.lang.String getBuiltOn()
Returns the Name of the Node where the AbstractBuild happened. If the Node is deleted meanwhile it returns UNKNOWN.

Returns:
name of the node.

getChangeSetEntries

public java.util.Collection<java.lang.String> getChangeSetEntries(hudson.scm.ChangeLogSet.Entry entry)
Returns a representation for affected files in entry prefixing them with the EditType of the change. Some SCMs do not support ChangeLogSet.Entry.getAffectedFiles(), so do fall back to ChangeLogSet.Entry.getAffectedPaths() in this case.

Parameters:
entry - changeset.
Returns:
collection of EditType prefixed paths.


Copyright © 2010. All Rights Reserved.