com.ptc.windchill.enterprise.dataops.server
Class TaskWrapperHelper
java.lang.Object
com.ptc.windchill.enterprise.dataops.server.TaskWrapperHelper
- public class TaskWrapperHelper
- extends Object
This class contains helper method to work with Archive, Purge and Restore command tasks.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ARCHIVE_PURGE_TASK_QUEUE
public static final String ARCHIVE_PURGE_TASK_QUEUE
- See Also:
- Constant Field Values
IN_BACKGROUND
private static boolean IN_BACKGROUND
TaskWrapperHelper
public TaskWrapperHelper()
collectObjectsTask
public static void collectObjectsTask(CollectionCriteria criteria,
PurgeRecord purgeRecord,
boolean createPreviewFile,
Integer previewLimit,
Vector conflictResolutions)
throws WTException
- Throws:
WTException
createArchiveAndPurgeTask
public static void createArchiveAndPurgeTask(WTCollection col,
PurgeRecord purgeRecord,
Vector conflictResolutions)
throws WTException
- Throws:
WTException
updateArchiveAndPurgeTask
public static void updateArchiveAndPurgeTask(WTCollection col,
PurgeRecord purgeRecord)
throws WTException
- Updates the task with the new objects and persists new information.
This is used when the user changes the list of objects in the resumed purge job.
- Parameters:
col
- purgeRecord
-
- Throws:
WTException
activateArchiveAndPurgeTask
public static void activateArchiveAndPurgeTask(PurgeRecord record)
throws WTException
- Throws:
WTException
createRestoreTask
public static void createRestoreTask(RestoreRecord restoreRecord)
throws WTException
- Throws:
WTException
activateRestoreTask
public static void activateRestoreTask(RestoreRecord record)
throws WTException
- Throws:
WTException
getTaskFromDataMaintRecord
public static Task getTaskFromDataMaintRecord(DataMaintRecord record)
throws WTException
- Throws:
WTException
runTask
protected static void runTask(Task task,
boolean inBackground)
throws WTException
- Throws:
WTException
PP
private static void PP(String s)