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

java.lang.Object
  extended bycom.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.


Field Summary
static String ARCHIVE_PURGE_TASK_QUEUE
           
private static boolean IN_BACKGROUND
           
 
Constructor Summary
TaskWrapperHelper()
           
 
Method Summary
static void activateArchiveAndPurgeTask(PurgeRecord record)
           
static void activateRestoreTask(RestoreRecord record)
           
static void collectObjectsTask(CollectionCriteria criteria, PurgeRecord purgeRecord, boolean createPreviewFile, Integer previewLimit, Vector conflictResolutions)
           
static void createArchiveAndPurgeTask(WTCollection col, PurgeRecord purgeRecord, Vector conflictResolutions)
           
static void createRestoreTask(RestoreRecord restoreRecord)
           
static Task getTaskFromDataMaintRecord(DataMaintRecord record)
           
private static void PP(String s)
           
protected static void runTask(Task task, boolean inBackground)
           
static void updateArchiveAndPurgeTask(WTCollection col, PurgeRecord purgeRecord)
          Updates the task with the new objects and persists new information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARCHIVE_PURGE_TASK_QUEUE

public static final String ARCHIVE_PURGE_TASK_QUEUE
See Also:
Constant Field Values

IN_BACKGROUND

private static boolean IN_BACKGROUND
Constructor Detail

TaskWrapperHelper

public TaskWrapperHelper()
Method Detail

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)