com.ptc.windchill.uwgm.task.autoassociate
Class AutoAssociateTask

java.lang.Object
  extended bycom.ptc.core.task.Task
      extended bycom.ptc.core.task.AtomicTask
          extended bycom.ptc.windchill.uwgm.task.autoassociate.AutoAssociateTask
All Implemented Interfaces:
Externalizable, Serializable, TransactionalTask

public class AutoAssociateTask
extends AtomicTask
implements TransactionalTask

See Also:
Serialized Form

Nested Class Summary
private  class AutoAssociateTask.AutoAssociateTaskExecutor
           
 
Field Summary
private  ArrayList autoAssocExecutorCache
           
private  EPMWorkspace currentWorkspace
           
private  String defaultPartFolderOid
           
private  AutoAssociatePartFinderCreator finderCreator
           
private  boolean isActiveWorkspace
           
private  Locale locale
           
static String RESOURCE
           
private static ReferenceFactory rf
           
private static String UNIQUE_OID_SEPERATOR
           
 
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
AutoAssociateTask()
           
 
Method Summary
 TaskResult _run()
          

Supported API: false
private  void createAndSaveAssociations(Vector refreshCCWTParts)
           
private  String getDefaultFolderOid(EPMWorkspace workspace, Class objectClass)
           
 String getName()
          Gets the value of the attribute: name; Localized String that represents the "user task" label

Supported API: false
private  RevisionControlled getObjectFromOid(String oid)
           
private  WTKeyedMap getTargetFolderForNewParts()
           
private  void logErrorMessage(String messageId, Object[] param)
           
 TaskResult processAction(DefaultTaskData df)
           
 
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, 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
 

Field Detail

RESOURCE

public static final String RESOURCE
See Also:
Constant Field Values

UNIQUE_OID_SEPERATOR

private static final String UNIQUE_OID_SEPERATOR
See Also:
Constant Field Values

rf

private static ReferenceFactory rf

currentWorkspace

private EPMWorkspace currentWorkspace

isActiveWorkspace

private boolean isActiveWorkspace

locale

private Locale locale

defaultPartFolderOid

private String defaultPartFolderOid

finderCreator

private AutoAssociatePartFinderCreator finderCreator

autoAssocExecutorCache

private ArrayList autoAssocExecutorCache
Constructor Detail

AutoAssociateTask

public AutoAssociateTask()
Method Detail

_run

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


Supported API: false

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

getName

public String getName()
Description copied from class: Task
Gets the value of the attribute: name; Localized String that represents the "user task" label

Supported API: false

Overrides:
getName in class Task
Returns:
String

processAction

public TaskResult processAction(DefaultTaskData df)
                         throws WTException
Throws:
WTException

getTargetFolderForNewParts

private WTKeyedMap getTargetFolderForNewParts()
                                       throws WTException
Throws:
WTException

createAndSaveAssociations

private void createAndSaveAssociations(Vector refreshCCWTParts)
                                throws WTPropertyVetoException,
                                       WTException
Throws:
WTPropertyVetoException
WTException

getObjectFromOid

private RevisionControlled getObjectFromOid(String oid)
                                     throws WTException
Throws:
WTException

getDefaultFolderOid

private String getDefaultFolderOid(EPMWorkspace workspace,
                                   Class objectClass)
                            throws WTException
Throws:
WTException

logErrorMessage

private void logErrorMessage(String messageId,
                             Object[] param)
                      throws WTException
Throws:
WTException