com.ptc.windchill.enterprise.dataops.server
Class CollectionTask

java.lang.Object
  extended bycom.ptc.core.task.Task
      extended bycom.ptc.core.task.AtomicTask
          extended bycom.ptc.windchill.enterprise.dataops.server.CollectionTask
All Implemented Interfaces:
Externalizable, Serializable, TransactionalTask

public class CollectionTask
extends AtomicTask
implements TransactionalTask, Externalizable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ptc.core.task.AtomicTask
EXTERNALIZATION_VERSION_UID, OLD_FORMAT_VERSION_UID
 
Fields inherited from class com.ptc.core.task.Task
log, VERBOSE
 
Constructor Summary
CollectionTask()
           
CollectionTask(PurgeRecord purgeRecord, CollectionCriteria criteria, boolean createPreviewFile, Vector conflictResolutions)
           
 
Method Summary
protected  TaskResult _run()
          

Supported API: false
private  CollectionCriteria getCollectionCriteria()
           
private  Vector getConflictResolutions()
           
protected  PurgeRecord getPurgeRecord()
           
private  boolean isCreatePreviewFile(int collectionSize)
           
private static void PP_Objects(WTCollection objects)
           
private static void PP(String s)
           
private  void setRecordStatus(PurgeRecord record, PurgeStatus status)
           
 
Methods inherited from class com.ptc.core.task.AtomicTask
readExternal, readVersion, run, writeExternal
 
Methods inherited from class com.ptc.core.task.Task
execute, executeInBackground, getClientID, getContext, getEndDate, getInternalStatus, getName, getParentTask, getQueueName, getResolutionOptions, getStartDate, getTaskData, getTaskEventId, hasConflicts, hasErrors, hasOverridableConflicts, hasWarnings, isRunningInBackground, isTaskEventStatusStored, readVersion, setClientID, setContext, setEndDate, setInternalStatus, setName, setParentTask, setQueueName, setResolutionOptions, setRunningInBackground, setStartDate, setTaskData, setTaskEventId, setTaskEventStatusStored, toString, updateTaskEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Constructor Detail

CollectionTask

public CollectionTask()

CollectionTask

public CollectionTask(PurgeRecord purgeRecord,
                      CollectionCriteria criteria,
                      boolean createPreviewFile,
                      Vector conflictResolutions)
               throws WTException
Method Detail

_run

protected TaskResult _run()
                   throws WTException
Description copied from class: AtomicTask


Supported API: false

Specified by:
_run in class AtomicTask
Returns:
TaskResult
Throws:
WTException

getPurgeRecord

protected PurgeRecord getPurgeRecord()

getCollectionCriteria

private CollectionCriteria getCollectionCriteria()

isCreatePreviewFile

private boolean isCreatePreviewFile(int collectionSize)

getConflictResolutions

private Vector getConflictResolutions()

setRecordStatus

private void setRecordStatus(PurgeRecord record,
                             PurgeStatus status)
                      throws WTException
Throws:
WTException

PP_Objects

private static void PP_Objects(WTCollection objects)

PP

private static void PP(String s)