org.rhq.enterprise.server.rest.reporting
Class InventorySummaryHandler

java.lang.Object
  extended by org.rhq.enterprise.server.rest.AbstractRestBean
      extended by org.rhq.enterprise.server.rest.reporting.InventorySummaryHandler
All Implemented Interfaces:
InventorySummaryLocal
Direct Known Subclasses:
DriftComplianceHandler

public class InventorySummaryHandler
extends AbstractRestBean
implements InventorySummaryLocal


Field Summary
protected  ResourceManagerLocal resourceMgr
           
 
Fields inherited from class org.rhq.enterprise.server.rest.AbstractRestBean
caller
 
Constructor Summary
InventorySummaryHandler()
           
 
Method Summary
 javax.ws.rs.core.StreamingOutput generateReport(javax.servlet.http.HttpServletRequest request, String resourceTypeId, String version)
          Generates an inventory summary report.
protected  List<String> getColumns()
           
protected  String getDebugReportName()
           
protected  List<String> getDetailsColumns()
           
protected  String getDetailsHeader()
           
protected  org.rhq.core.domain.criteria.ResourceCriteria getDetailsQueryCriteria(Integer resourceTypeId, String version)
           
protected  String getHeader()
           
protected  LinkedHashMap<String,PropertyConverter<org.rhq.core.domain.resource.Resource>> getPropertyConverters(javax.servlet.http.HttpServletRequest request)
           
protected  List<org.rhq.core.domain.resource.composite.ResourceInstallCount> getSummaryCounts()
           
 
Methods inherited from class org.rhq.enterprise.server.rest.AbstractRestBean
fetchGroup, fetchResource, fillRWT, getFqn, getFromCache, getFromCache, getResourceFromCache, getResourcesFromCacheByParentId, putResourceToCache, putToCache, putToCache, removeFromCache, renderTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceMgr

protected ResourceManagerLocal resourceMgr
Constructor Detail

InventorySummaryHandler

public InventorySummaryHandler()
Method Detail

generateReport

public javax.ws.rs.core.StreamingOutput generateReport(javax.servlet.http.HttpServletRequest request,
                                                       String resourceTypeId,
                                                       String version)
Description copied from interface: InventorySummaryLocal
Generates an inventory summary report. The report can be in either a master or details format.

Specified by:
generateReport in interface InventorySummaryLocal
resourceTypeId - Corresponds to the resourceTypeId query string parameter and must be specified to generate the details version of the report.
version - Corresponds to the version query string parameter and should be specified to generate the details version of the report.
Returns:
An output stream that contains the CSV report.

getDebugReportName

protected String getDebugReportName()

getColumns

protected List<String> getColumns()

getDetailsColumns

protected List<String> getDetailsColumns()

getDetailsQueryCriteria

protected org.rhq.core.domain.criteria.ResourceCriteria getDetailsQueryCriteria(Integer resourceTypeId,
                                                                                String version)

getSummaryCounts

protected List<org.rhq.core.domain.resource.composite.ResourceInstallCount> getSummaryCounts()

getHeader

protected String getHeader()

getDetailsHeader

protected String getDetailsHeader()

getPropertyConverters

protected LinkedHashMap<String,PropertyConverter<org.rhq.core.domain.resource.Resource>> getPropertyConverters(javax.servlet.http.HttpServletRequest request)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.