org.rhq.enterprise.server.rest.reporting
Class InventorySummaryHandler
java.lang.Object
org.rhq.enterprise.server.rest.AbstractRestBean
org.rhq.enterprise.server.rest.reporting.InventorySummaryHandler
- All Implemented Interfaces:
- InventorySummaryLocal
- Direct Known Subclasses:
- DriftComplianceHandler
public class InventorySummaryHandler
- extends AbstractRestBean
- implements InventorySummaryLocal
| 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 |
resourceMgr
protected ResourceManagerLocal resourceMgr
InventorySummaryHandler
public InventorySummaryHandler()
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.