public class GetChangeHistoryTask extends SessionedTask<java.util.List<ChangeRecord>>
Three kinds of change history can be obtained for a resource, which is governed by the value of the ChangeRecord.ChangeHistoryType parameter.
ChangeRecord.ChangeHistoryType| Constructor and Description |
|---|
GetChangeHistoryTask(Ref ref, ChangeRecord.ChangeHistoryType historyType, int resultSize) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<ChangeRecord> |
_execute()
Subclasses implement this method
|
static java.util.List<ChangeRecord> |
getChangeHistory(ConfigService configService, java.lang.String session, Ref ref, ChangeRecord.ChangeHistoryType historyType, int resultSize)
Returns a list of ChangeRecord objecs that describe changes made to a particular resource.
|
assertExists, assertLocation, assertNONResource, assertNotExists, assertNotLocationData, assertNotNull, assertNotNullElement, assertResource, assertSimple, call, doExecute, doExecute, doExecute, doExecute, expand, getConfigContext, getConfigMBean, getConfigService, getDescription, getSession, isLocation, isReadOnlyTransaction, requiresSystemTransactionpublic GetChangeHistoryTask(Ref ref, ChangeRecord.ChangeHistoryType historyType, int resultSize)
ref - resource for which to return the changeshistoryType - the type of history to returnresultSize - the number of results to return. If historyType is ChangeRecord.ChangeHistoryType#Progressive, the first resultSize changes are returned. Otherwise the most recent resultSize changes are returnedpublic static java.util.List<ChangeRecord> getChangeHistory(ConfigService configService, java.lang.String session, Ref ref, ChangeRecord.ChangeHistoryType historyType, int resultSize) throws java.lang.Exception
configService -session -ref - the reference to the resourcehistoryType - the history type. ChangeRecord.ChangeHistoryTyperesultSize - the number of results to return. If historyType is ChangeRecord.ChangeHistoryType#Progressive, the first resultSize changes are returned. Otherwise the most recent resultSize changes are returnedjava.lang.Exceptionprotected java.util.List<ChangeRecord> _execute() throws java.lang.Exception
SessionedTask_execute in class SessionedTask<java.util.List<ChangeRecord>>java.lang.Exception