|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.jenkins.plugins.bfa.sod.ScanOnDemandBaseAction
public class ScanOnDemandBaseAction
Action class for scanning non scanned build.
Field Summary | |
---|---|
static String |
NON_SCANNED
nonscanned build constant. |
static String |
PLUGIN_JS_URL
javascript file location. |
Constructor Summary | |
---|---|
ScanOnDemandBaseAction(hudson.model.AbstractProject project)
SODBaseAction constructor. |
Method Summary | |
---|---|
void |
checkPermission()
Checks if the current user has Item.CONFIGURE or Item.BUILD permission. |
void |
doPerformScan(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Submit method for running build scan. |
void |
doSelectBuildType(String scanTarget,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Select buildType. |
List<hudson.model.AbstractBuild> |
getAllBuilds()
Method for finding all failed builds. |
List<hudson.model.AbstractBuild> |
getBuilds()
Method for returning builds as per buildtype. |
List<hudson.model.AbstractBuild> |
getBuilds(String scanTarget)
This method will set the buildType while calling getBuilds from index.jelly. |
String |
getBuildType()
Returns the buildType. |
String |
getDisplayName()
|
String |
getIconFileName()
|
String |
getJsUrl(String jsName)
Gets the full path to the provided javascript file. |
List<hudson.model.AbstractBuild> |
getNotScannedBuilds()
Method for finding sodbuilds. |
hudson.model.AbstractProject<?,?> |
getProject()
Returns the project. |
String |
getUrlName()
|
boolean |
hasPermission()
Checks if the current user has Item.CONFIGURE or Item.BUILD permission. |
void |
removeRunActions(hudson.matrix.MatrixBuild build)
Method for remove matrix run actions. |
void |
setBuildType(String buildType)
Set buildType. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PLUGIN_JS_URL
public static final String NON_SCANNED
Constructor Detail |
---|
public ScanOnDemandBaseAction(hudson.model.AbstractProject project)
project
- current project.Method Detail |
---|
public String getJsUrl(String jsName)
jsName
- the javascript filename.
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getUrlName()
getUrlName
in interface hudson.model.Action
public boolean hasPermission()
Item.CONFIGURE
or Item.BUILD
permission.
public void checkPermission()
Item.CONFIGURE
or Item.BUILD
permission.
hasPermission()
,
ACL.checkPermission(hudson.security.Permission)
public final hudson.model.AbstractProject<?,?> getProject()
public List<hudson.model.AbstractBuild> getAllBuilds()
public List<hudson.model.AbstractBuild> getBuilds(String scanTarget)
scanTarget
- String.
public List<hudson.model.AbstractBuild> getBuilds()
public List<hudson.model.AbstractBuild> getNotScannedBuilds()
public void removeRunActions(hudson.matrix.MatrixBuild build)
build
- AbstractBuild.public void doPerformScan(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws javax.servlet.ServletException, IOException, InterruptedException
request
- StaplerRequestresponse
- StaplerResponse
javax.servlet.ServletException
- if something unfortunate happens.
IOException
- if something unfortunate happens.
InterruptedException
- if something unfortunate happens.public String getBuildType()
public void setBuildType(String buildType)
buildType
- String.public void doSelectBuildType(@QueryParameter(value="build") String scanTarget, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException, InterruptedException
scanTarget
- QueryParameter.req
- StaplerRequest.rsp
- StaplerResponse.
javax.servlet.ServletException
- if something unfortunate happens.
IOException
- if something unfortunate happens.
InterruptedException
- if something unfortunate happens.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |