wt.clients.part
Class WTProductMasterTaskDelegate

java.lang.Object
  extended bywt.clients.util.TaskDelegate
      extended bywt.clients.part.WTPartMasterTaskDelegate
          extended bywt.clients.part.WTProductMasterTaskDelegate

public class WTProductMasterTaskDelegate
extends WTPartMasterTaskDelegate

Class WTProductTaskDelegate provides support for launching the tasks to create, update and view WTProducts. This class should not be directly instantiated or manipulated. Instead, obtain a wt.clients.util.TaskDelegate from the wt.clients.util.TaskDelegateFactory for a specific object or class, and invoke methods on that obtained TaskDelegate.

Supported API: true

Extendable: true

See Also:
TaskDelegate, TaskDelegateFactory, wt.part.WTPProductMaster

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
WTProductMasterTaskDelegate()
          Create the task delegate.
 
Method Summary
private static WTProduct getProduct(String number)
          GetProduct is just used by Main for test purposes.
 void launchDefineAlternatesTask()
          Launch the task to define alternate products of a given WTProductMaster.
 void launchViewTask()
          Launch the task to view a given WTProductMaster.
static void main(String[] args)
          A main method that demonstrates how to use this class and allows testing
 
Methods inherited from class wt.clients.part.WTPartMasterTaskDelegate
getApplet, getFrame, getObject, getVersionForMaster, launchCreateTask, launchDeleteTask, launchUpdateTask
 
Methods inherited from class wt.clients.util.TaskDelegate
confirmAction, deleteObject, displayPropertiesPage, getParentApplet, getParentFolder, getParentFrame, launchSaveAsTask, 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

WTProductMasterTaskDelegate

public WTProductMasterTaskDelegate()
Create the task delegate.

Method Detail

launchViewTask

public void launchViewTask()
                    throws TaskDelegateException,
                           ObjectNoLongerExistsException,
                           NotAuthorizedException,
                           WTException
Launch the task to view a given WTProductMaster. This method will display the HTML properties page for the master which is the context of this task delegate.

Overrides:
launchViewTask in class WTPartMasterTaskDelegate
Throws:
TaskDelegateException - if no object has been given to update or the given object is not a WTProduct
NotAuthorizedException - if the current user does not have permission to modify nor view the given WTProduct
ObjectNoLongerExistsException - the given WTProduct no longer exists in the database
WTException - if an error occurs preparing the given WTProduct for modification
See Also:
WTProduct, WTProductMaster

launchDefineAlternatesTask

public void launchDefineAlternatesTask()
                                throws TaskDelegateException,
                                       WTException
Launch the task to define alternate products of a given WTProductMaster. This method will display the HTML Define Alternates form for the master that is the context for this task delegate.

Overrides:
launchDefineAlternatesTask in class WTPartMasterTaskDelegate
Throws:
TaskDelegateException
WTException

main

public static void main(String[] args)
A main method that demonstrates how to use this class and allows testing


getProduct

private static WTProduct getProduct(String number)
                             throws WTException
GetProduct is just used by Main for test purposes.

Throws:
WTException