public class GetExecRecordsTask extends SessionedTask<java.util.List<ExecRecord>>
Constructor and Description |
---|
GetExecRecordsTask(java.util.Date startDate, java.util.Date endDate, java.util.Set<TaskDescription.Type> taskTypes, java.util.Set<java.lang.String> userNames, java.util.Set<ExecRecord.Status> statusSet, java.util.Set<Ref> refsAffected)
Returns ExecRecords matching the criteria formed by the input arguments.
|
GetExecRecordsTask(java.util.List<java.lang.String> taskIds)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<ExecRecord> |
_execute()
Subclasses implement this method
|
static ExecRecord |
getExecRecord(ConfigService configService, java.lang.String session, java.lang.String taskId)
Convenience method for obtaining an ExecRecord object associated with the given task Id.
|
static java.util.List<ExecRecord> |
getExecRecords(ConfigService configService, java.lang.String session, java.util.Date startDate, java.util.Date endDate, java.util.Set<TaskDescription.Type> taskTypes, java.util.Set<java.lang.String> userNames, java.util.Set<ExecRecord.Status> statusSet, java.util.Set<Ref> refsAffected)
Returns ExecRecords matching the criteria formed by the input arguments.
|
static java.util.List<ExecRecord> |
getExecRecords(ConfigService configService, java.lang.String session, java.util.List<java.lang.String> taskIds)
Convenience method for obtaining a list of ExecRecord objects associated with the given task Ids.
|
assertExists, assertLocation, assertNONResource, assertNotExists, assertNotLocationData, assertNotNull, assertNotNullElement, assertResource, assertSimple, call, doExecute, doExecute, doExecute, doExecute, expand, getConfigContext, getConfigMBean, getConfigService, getDescription, getSession, isLocation, isReadOnlyTransaction, requiresSystemTransaction
public GetExecRecordsTask(java.util.List<java.lang.String> taskIds)
taskIds
- list of takids to get the exec records ofpublic GetExecRecordsTask(java.util.Date startDate, java.util.Date endDate, java.util.Set<TaskDescription.Type> taskTypes, java.util.Set<java.lang.String> userNames, java.util.Set<ExecRecord.Status> statusSet, java.util.Set<Ref> refsAffected)
startDate
- return ExecRecords after and including this date. A null value indicates the beginning of timeendDate
- return ExecRecords before but not including this date. A null value indicates the all records since the start datetaskTypes
- return only the tasks whose type is included in this set. If null return all task typesuserNames
- return only the tasks executed by any user in this set. If null return all tasks executed by any userstatusSet
- return only the tasks whose status is in this set. If null return all tasks regardless of their statusrefsAffected
- return only the tasks that have modified any of the references included here. If null return all tasks regardless of what is modified. Renames and moves are handled in a special way. If a task renames/moves a resource from Ref1 to Ref2, it will appear as if the task has modified both Ref1 and Ref2public static ExecRecord getExecRecord(ConfigService configService, java.lang.String session, java.lang.String taskId) throws NotFoundException
session
- the session to execute against; null indicates coretaskId
- the taskidNotFoundException
- if no exec record can be found matching a supplied taskidpublic static java.util.List<ExecRecord> getExecRecords(ConfigService configService, java.lang.String session, java.util.List<java.lang.String> taskIds) throws NotFoundException
session
- the session to execute against; null indicates coretaskIds
- list of taskidsNotFoundException
- if no exec record can be found matching a supplied taskidpublic static java.util.List<ExecRecord> getExecRecords(ConfigService configService, java.lang.String session, java.util.Date startDate, java.util.Date endDate, java.util.Set<TaskDescription.Type> taskTypes, java.util.Set<java.lang.String> userNames, java.util.Set<ExecRecord.Status> statusSet, java.util.Set<Ref> refsAffected)
configService
- config service instancesession
- the session to execute against; null indicates corestartDate
- return ExecRecords after and including this date. A null value indicates the beginning of timeendDate
- return ExecRecords before but not including this date. A null value indicates the all records since the start datetaskTypes
- return only the tasks whose type is included in this set. If null return all task typesuserNames
- return only the tasks executed by any user in this set. If null return all tasks executed by any userstatusSet
- return only the tasks whose status is in this set. If null return all tasks regardless of their statusrefsAffected
- return only the tasks that have modified any of the references included here. If null return all tasks regardless of what is modified. Renames and moves are handled in a special way. If a task renames/moves a resource from Ref1 to Ref2, it will appear as if the task has modified both Ref1 and Ref2protected java.util.List<ExecRecord> _execute() throws java.lang.Exception
SessionedTask
_execute
in class SessionedTask<java.util.List<ExecRecord>>
java.lang.Exception