com.ikokoon.serenity.hudson
Class SerenityResult

java.lang.Object
  extended by com.ikokoon.serenity.hudson.SerenityResult
All Implemented Interfaces:
ISerenityResult

public class SerenityResult
extends java.lang.Object
implements ISerenityResult

This is the result that will be used to render the results on the front end.

Since:
12.08.09
Version:
01.00
Author:
Michael Couck

Field Summary
 
Fields inherited from interface com.ikokoon.serenity.hudson.ISerenityResult
HISTORY
 
Constructor Summary
SerenityResult(hudson.model.AbstractBuild<?,?> abstractBuild)
          Constructor takes the real action that generated the build for the project.
 
Method Summary
 java.lang.Object getDynamic(java.lang.String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          This method is called from the front end.
 java.lang.String getFile(java.lang.String name)
           
 java.lang.String getModel()
           
 java.lang.String getModel(java.lang.String modelName, Composite<?,?> composite)
           
 java.lang.String getName()
           
 java.lang.Object getOwner()
           
 java.util.List<Package> getPackages()
           
 Project<?,?> getProject()
           
 java.lang.String getProjectModel()
           
 java.lang.String getSource()
           
 boolean hasReport()
           
protected  void printParameters(org.kohsuke.stapler.StaplerRequest req)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerenityResult

public SerenityResult(hudson.model.AbstractBuild<?,?> abstractBuild)
Constructor takes the real action that generated the build for the project.

Parameters:
abstractBuild - the build action that generated the build for the project
Method Detail

getDynamic

public java.lang.Object getDynamic(java.lang.String token,
                                   org.kohsuke.stapler.StaplerRequest req,
                                   org.kohsuke.stapler.StaplerResponse rsp)
                            throws java.lang.Exception
This method is called from the front end. The result from the call will result in some piece of data being extracted from the database. For example if the user clicks on a package the name of the package will be used to get that package from the database and will be made available to the UI.

Parameters:
token - the token from the front end
req - the Stapler request from the ui
rsp - the Stapler response for the ui
Returns:
the result which is this class
Throws:
java.io.IOException
java.lang.Exception

getOwner

public java.lang.Object getOwner()

getName

public java.lang.String getName()

hasReport

public boolean hasReport()

getProject

public Project<?,?> getProject()

getPackages

public java.util.List<Package> getPackages()

getModel

public java.lang.String getModel()

getProjectModel

public java.lang.String getProjectModel()

getSource

public java.lang.String getSource()

getFile

public java.lang.String getFile(java.lang.String name)

getModel

public java.lang.String getModel(java.lang.String modelName,
                                 Composite<?,?> composite)

printParameters

protected void printParameters(org.kohsuke.stapler.StaplerRequest req)


Copyright © 2010. All Rights Reserved.