wt.clients.part
Class WTProductConfigurationTaskDelegate

java.lang.Object
  extended bywt.clients.util.TaskDelegate
      extended bywt.clients.part.WTProductConfigurationTaskDelegate

public class WTProductConfigurationTaskDelegate
extends TaskDelegate


Field Summary
 
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
WTProductConfigurationTaskDelegate()
           
 
Method Summary
 Applet getApplet()
          Return the parent applet.
 void launchNewInstanceTask()
          Method launchNewInstanceTask creates a new product instance for the configuration which is the context of this TaskDelegate.
 void launchSaveAsTask()
          Method launchSaveAsTask launches the CopyDialog to create a new WTPart part from the original selected part..
 void launchViewTask()
          Method launchViewTask is invoked to launch the task to view a particular business object.
 
Methods inherited from class wt.clients.util.TaskDelegate
confirmAction, deleteObject, displayPropertiesPage, getObject, getParentApplet, getParentFolder, getParentFrame, launchCreateTask, launchDeleteTask, launchUpdateTask, launchViewDistributionListTask, setObject, setObjectReference, setParentApplet, setParentFolder, setParentFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WTProductConfigurationTaskDelegate

public WTProductConfigurationTaskDelegate()
Method Detail

getApplet

public Applet getApplet()
Return the parent applet.

Returns:
the parent applet

launchViewTask

public void launchViewTask()
                    throws ObjectNoLongerExistsException,
                           NotAuthorizedException,
                           TaskDelegateException,
                           WTException
Description copied from class: TaskDelegate
Method launchViewTask is invoked to launch the task to view a particular business object. Subclasses of this TaskDelegate class should implement the view task to support viewing instances of the business object they represent. The particular object to be viewed is specified via setObject. This method currently only contains the code to refresh the object to be viewed.

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)

launchNewInstanceTask

public void launchNewInstanceTask()
                           throws TaskDelegateException,
                                  ObjectNoLongerExistsException,
                                  NotAuthorizedException,
                                  WTException
Method launchNewInstanceTask creates a new product instance for the configuration which is the context of this TaskDelegate.

Throws:
TaskDelegateException - if no object has been given or the given object is not a WTProdutConfiguration
NotAuthorizedException - if the current user does not have permission to modify nor view the given WTProductConfiguration
ObjectNoLongerExistsException - the given WTProductConfiguration no longer exists in the database
WTException
See Also:
WTProduct

launchSaveAsTask

public void launchSaveAsTask()
Method launchSaveAsTask launches the CopyDialog to create a new WTPart part from the original selected part..

Supported API: false

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