|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.duracloud.servicemonitor.impl.ServiceSummaryDirectoryImpl
public class ServiceSummaryDirectoryImpl
This class manages the reading, writing, and listing of ServiceSummary report content items.
| Field Summary |
|---|
| Fields inherited from interface org.duracloud.servicemonitor.ServiceSummaryDirectory |
|---|
DATE_VAR |
| Constructor Summary | |
|---|---|
ServiceSummaryDirectoryImpl(java.lang.String spaceId,
java.lang.String contentIdBase)
|
|
ServiceSummaryDirectoryImpl(java.lang.String spaceId,
java.lang.String contentIdBase,
ContentStore contentStore)
|
|
| Method Summary | |
|---|---|
void |
addServiceSummary(ServiceSummary serviceSummary)
This method adds the arg service summary to the existing summary for the month if one already exists, otherwise a new report is created with the arg summary in it. |
java.util.List<ServiceSummary> |
getCurrentServiceSummaries()
This method returns a list of ServiceSummaries for the current month. |
java.io.InputStream |
getCurrentServiceSummariesStream()
This method returns a serialized list of ServiceSummaries for the current month. |
java.util.List<ServiceSummary> |
getServiceSummariesById(java.lang.String summaryId)
This method returns a list of ServiceSummaries that correspond to the arg id. |
java.io.InputStream |
getServiceSummariesStreamById(java.lang.String summaryId)
This method returns a serialized list of ServiceSummaries that correspond to the arg id. |
java.util.List<java.lang.String> |
getServiceSummaryIds()
This method returns the list of summary ids. |
void |
initialize(ContentStoreManager storeManager)
This method initializes the ServiceSummaryDirectory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceSummaryDirectoryImpl(java.lang.String spaceId,
java.lang.String contentIdBase)
public ServiceSummaryDirectoryImpl(java.lang.String spaceId,
java.lang.String contentIdBase,
ContentStore contentStore)
| Method Detail |
|---|
public void initialize(ContentStoreManager storeManager)
ServiceSummaryDirectory
initialize in interface ServiceSummaryDirectorystoreManager - used by class
public java.util.List<ServiceSummary> getCurrentServiceSummaries()
throws ServiceSummaryNotFoundException
ServiceSummaryDirectory
getCurrentServiceSummaries in interface ServiceSummaryDirectoryServiceSummaryNotFoundException - if no summary exists
public java.io.InputStream getCurrentServiceSummariesStream()
throws ServiceSummaryNotFoundException
ServiceSummaryDirectory
getCurrentServiceSummariesStream in interface ServiceSummaryDirectoryServiceSummaryNotFoundException - if no summary exists
public java.util.List<ServiceSummary> getServiceSummariesById(java.lang.String summaryId)
throws ServiceSummaryNotFoundException
ServiceSummaryDirectory
getServiceSummariesById in interface ServiceSummaryDirectorysummaryId - of summary
ServiceSummaryNotFoundException - if no summary exists
public java.io.InputStream getServiceSummariesStreamById(java.lang.String summaryId)
throws ServiceSummaryNotFoundException
ServiceSummaryDirectory
getServiceSummariesStreamById in interface ServiceSummaryDirectorysummaryId - of summary
ServiceSummaryNotFoundException - if no summary existspublic java.util.List<java.lang.String> getServiceSummaryIds()
ServiceSummaryDirectory
getServiceSummaryIds in interface ServiceSummaryDirectorypublic void addServiceSummary(ServiceSummary serviceSummary)
ServiceSummaryDirectory
addServiceSummary in interface ServiceSummaryDirectoryserviceSummary - to add to this month's report
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||