wt.clients.lifecycle
Class LifeCycleTemplateTaskDelegate

java.lang.Object
  extended bywt.clients.util.TaskDelegate
      extended bywt.clients.lifecycle.LifeCycleTemplateTaskDelegate

public class LifeCycleTemplateTaskDelegate
extends TaskDelegate

Class which allows the Windchill folder explorer to manipulate life cycle templates.


Nested Class Summary
(package private)  class LifeCycleTemplateTaskDelegate.DialogListener
           
 
Field Summary
private  Workable original
           
private static String RESOURCE
           
(package private)  LifeCycleTemplate tempobject
           
private static String VC_RESOURCES
           
 
Fields inherited from class wt.clients.util.TaskDelegate
ACTION_KEY, OBJ_PROPS_ACTION, object, objReference, OID_KEY, parentApplet, parentFolder, parentFrame, URL_TEMPLATE_ACTION, URLPROCESSOR_CLASS
 
Constructor Summary
LifeCycleTemplateTaskDelegate()
           
 
Method Summary
protected  void deleteObject()
           
 void launchCheckInTask()
          Method which checks in the selected life cycle templates.
 void launchCheckInTask(WTContainerRef context)
          Method which checks in the selected life cycle templates.
 void launchCheckOutTask()
          Method which checks out the selected life cycle templates.
 void launchCreateTask()
          Method which launches the create task for life cycle templates.
 void launchDeleteTask()
          Launches the delete task to delete the template associated with this task delegate.
 void launchRenameTask()
          Method which copies the selected life cycle templates.
 void launchSaveAsTask()
          Method which copies the selected life cycle templates.
 void launchUndoCheckOutTask()
          Method which undos a check out of the selected life cycle templates.
 void launchUpdateTask()
          Method which launches the update task for life cycle templates.
 void launchViewTask()
          Method which launches the view task for life cycle templates.
 
Methods inherited from class wt.clients.util.TaskDelegate
confirmAction, displayPropertiesPage, getObject, getParentApplet, getParentFolder, getParentFrame, launchViewDistributionListTask, setObject, setObjectReference, setParentApplet, setParentFolder, setParentFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

VC_RESOURCES

private static final String VC_RESOURCES
See Also:
Constant Field Values

original

private Workable original

tempobject

LifeCycleTemplate tempobject
Constructor Detail

LifeCycleTemplateTaskDelegate

public LifeCycleTemplateTaskDelegate()
Method Detail

launchCreateTask

public void launchCreateTask()
                      throws TaskDelegateException
Method which launches the create task for life cycle templates.

Overrides:
launchCreateTask in class TaskDelegate
Throws:
TaskDelegateException - if an error occurs launching a create task

launchUpdateTask

public void launchUpdateTask()
                      throws TaskDelegateException,
                             NotAuthorizedException,
                             ObjectNoLongerExistsException,
                             ModificationNotAllowedException,
                             WTException
Method which launches the update task for life cycle templates.

Overrides:
launchUpdateTask in class TaskDelegate
Throws:
WTException - if an error occurs preparing the object for modification
NotAuthorizedException - if the current user does not have permission to modify nor view the object
ModificationNotAllowedException - if the current user has permission to view but not modify the object
TaskDelegateException - if an error occurs launching a update task
ObjectNoLongerExistsException - if the object no longer exists in the database

launchViewTask

public void launchViewTask()
                    throws TaskDelegateException,
                           NotAuthorizedException,
                           ObjectNoLongerExistsException,
                           WTException
Method which launches the view task for life cycle templates.

Overrides:
launchViewTask in class TaskDelegate
Throws:
ObjectNoLongerExistsException - if the object no longer exists in the database
NotAuthorizedException - if the current user does not have permission to view the object
TaskDelegateException - if an error occurs launching a view task
WTException - if an error occurs preparing the object for viewing
See Also:
TaskDelegate.setObject(java.lang.Object)

launchCheckOutTask

public void launchCheckOutTask()
                        throws TaskDelegateException,
                               NotAuthorizedException,
                               ObjectNoLongerExistsException,
                               WTException
Method which checks out the selected life cycle templates.

Throws:
TaskDelegateException
NotAuthorizedException
ObjectNoLongerExistsException
WTException

launchCheckInTask

public void launchCheckInTask()
                       throws TaskDelegateException,
                              NotAuthorizedException,
                              ObjectNoLongerExistsException,
                              WTException
Method which checks in the selected life cycle templates.

Throws:
TaskDelegateException
NotAuthorizedException
ObjectNoLongerExistsException
WTException

launchCheckInTask

public void launchCheckInTask(WTContainerRef context)
                       throws TaskDelegateException,
                              NotAuthorizedException,
                              ObjectNoLongerExistsException,
                              WTException
Method which checks in the selected life cycle templates.

Throws:
TaskDelegateException
NotAuthorizedException
ObjectNoLongerExistsException
WTException

launchRenameTask

public void launchRenameTask()
                      throws WTException
Method which copies the selected life cycle templates.

Throws:
WTException

launchSaveAsTask

public void launchSaveAsTask()
Method which copies the selected life cycle templates.

Overrides:
launchSaveAsTask in class TaskDelegate

launchUndoCheckOutTask

public void launchUndoCheckOutTask()
                            throws TaskDelegateException,
                                   NotAuthorizedException,
                                   ObjectNoLongerExistsException,
                                   WTException
Method which undos a check out of the selected life cycle templates.

Throws:
TaskDelegateException
NotAuthorizedException
ObjectNoLongerExistsException
WTException

launchDeleteTask

public void launchDeleteTask()
                      throws TaskDelegateException,
                             WTException
Launches the delete task to delete the template associated with this task delegate. This method will prompt the user for confirmation to delete the document.

Supported API: true

Overrides:
launchDeleteTask in class TaskDelegate
Throws:
TaskDelegateException - if the context object associated with this task delegate is null or is not a document.
WTException - if an error occurs deleting the document.
See Also:
RefreshEvent, RefreshListener

deleteObject

protected void deleteObject()
                     throws WTException
Overrides:
deleteObject in class TaskDelegate
Throws:
WTException