wt.clients.workflow.definer
Class WfProcessTemplateTaskDelegate

java.lang.Object
  extended bywt.clients.util.TaskDelegate
      extended bywt.clients.workflow.definer.WfProcessTemplateTaskDelegate

public class WfProcessTemplateTaskDelegate
extends TaskDelegate

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


Field Summary
(package private)  ProcessNavigatorFrame frame
           
(package private)  Workable original
           
private static String VC_RESOURCES
           
private static String versionID
           
 
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
WfProcessTemplateTaskDelegate()
           
 
Method Summary
protected  ProcessNavigatorFrame createProcessNavigatorFrame(boolean edit_mode)
           
protected  WfProcessTemplateEditor createProcessTemplateEditor()
           
protected  void deleteObject()
           
(package private)  ProcessNavigatorFrame getProcessNavigatorFrame()
           
private  boolean isCreateAllowed()
           
private  boolean isModifyAllowed(WfProcessTemplate process)
           
 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 launchSaveAsTask()
          Method launchSaveAsTask launches the CopyDialog to create a new WfProcessTemplate document from the original selected document..
 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

versionID

private static final String versionID
See Also:
Constant Field Values

VC_RESOURCES

private static final String VC_RESOURCES
See Also:
Constant Field Values

frame

ProcessNavigatorFrame frame

original

Workable original
Constructor Detail

WfProcessTemplateTaskDelegate

public WfProcessTemplateTaskDelegate()
Method Detail

getProcessNavigatorFrame

ProcessNavigatorFrame getProcessNavigatorFrame()

createProcessTemplateEditor

protected WfProcessTemplateEditor createProcessTemplateEditor()

createProcessNavigatorFrame

protected ProcessNavigatorFrame createProcessNavigatorFrame(boolean edit_mode)

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

launchSaveAsTask

public void launchSaveAsTask()
                      throws TaskDelegateException
Method launchSaveAsTask launches the CopyDialog to create a new WfProcessTemplate document from the original selected document..

Supported API: true

Overrides:
launchSaveAsTask in class TaskDelegate
Throws:
TaskDelegateException - if an error occurs attempting to set the folder in which to create the document

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)

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

isCreateAllowed

private boolean isCreateAllowed()

isModifyAllowed

private boolean isModifyAllowed(WfProcessTemplate process)