org.openengsb.domain.report.common
Class AbstractReportDomain
java.lang.Object
org.openengsb.core.common.AbstractOpenEngSBService
org.openengsb.domain.report.common.AbstractReportDomain
- All Implemented Interfaces:
- Domain, OpenEngSBService, ReportDomain
public abstract class AbstractReportDomain
- extends AbstractOpenEngSBService
- implements ReportDomain
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractReportDomain
public AbstractReportDomain(String instanceId)
getAllReports
public List<Report> getAllReports(String category)
- Description copied from interface:
ReportDomain
- Get all finished reports of the given category. Reports, which are currently generated and collect data are not
included. If the given category does not exist an empty list is returned.
- Specified by:
getAllReports in interface ReportDomain
storeReport
public void storeReport(String category,
Report report)
- Description copied from interface:
ReportDomain
- Store the given report in the report store under the given category. The category is created if it is not already
present. If there is already a report with the same name under this category it is overwritten.
- Specified by:
storeReport in interface ReportDomain
removeReport
public void removeReport(String category,
Report report)
- Description copied from interface:
ReportDomain
- Remove the given report from the given category. The report is deleted and cannot be restored if it is not also
stored under another category. If no such report exist no operation is performed.
- Specified by:
removeReport in interface ReportDomain
getAllCategories
public List<String> getAllCategories()
- Description copied from interface:
ReportDomain
- Get all report categories.
- Specified by:
getAllCategories in interface ReportDomain
removeCategory
public void removeCategory(String category)
- Description copied from interface:
ReportDomain
- Remove the given category and all reports stored in this category. If no category with the specified name exists,
nothing is done.
- Specified by:
removeCategory in interface ReportDomain
createCategory
public void createCategory(String category)
- Description copied from interface:
ReportDomain
- Creates the given category, which is empty at the start. Reports can later be added by either calling
ReportDomain.storeReport(String, Report) or ReportDomain.generateReport(String, String, String) specifying the respective
category. If a category exists with the given name no operation is performed.
- Specified by:
createCategory in interface ReportDomain
setStore
public void setStore(ReportStore store)
getStore
public ReportStore getStore()
Copyright © 2009-2010. All Rights Reserved.