org.jenkins.plugins.audit2db.internal
Class DbAuditReportsDashboardImpl

java.lang.Object
  extended by org.jenkins.plugins.audit2db.internal.DbAuditReportsDashboardImpl
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Action, hudson.model.ModelObject, hudson.model.RootAction, DbAuditReportsDashboard

@Extension
public class DbAuditReportsDashboardImpl
extends Object
implements DbAuditReportsDashboard

Author:
Marco Scata

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
DbAuditReportsDashboardImpl()
           
 
Method Summary
 jenkins.model.ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
           
 List<DbAuditReport> getAllReports()
           
 String getDisplayName()
           
 DbAuditReport getDynamic(String name)
          Checks all registered reports and returns the one whose url name matches the given name in the Stapler request.
 String getIconFileName()
           
 String getUrlName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbAuditReportsDashboardImpl

public DbAuditReportsDashboardImpl()
Method Detail

getDisplayName

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

getIconFileName

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

getUrlName

public String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

getDynamic

public DbAuditReport getDynamic(String name)
Checks all registered reports and returns the one whose url name matches the given name in the Stapler request. For example, a request for "./myReport" will return the report whose getUrlName() methods returns "myReport".

Parameters:
name - the name parameter in the Stapler request.
Returns:
the matching report, or null if none is found.

getAllReports

public List<DbAuditReport> getAllReports()
Returns:
all registered implementations of DbAuditReport.

doContextMenu

public jenkins.model.ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request,
                                                                          org.kohsuke.stapler.StaplerResponse response)
                                                                   throws Exception
Parameters:
request - the Stapler request object.
response - the Stapler response object.
Returns:
a new context menu with all reports.
Throws:
Exception - if something goes wrong.


Copyright © 2004-2013. All Rights Reserved.