|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.util.TaskDelegate
wt.clients.part.WTSerialNumberedPartTaskDelegate
Class WTSerialNumberedPartTaskDelegate
provides support for launching
the tasks to create, update and view WTSerialNumberedParts
.
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: false
Extendable: false
TaskDelegate
,
TaskDelegateFactory
Field Summary | |
private static String |
VIEW_DISTRIBUTION_LIST_ACTION
|
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 | |
WTSerialNumberedPartTaskDelegate()
Create the task delegate. |
Method Summary | |
Applet |
getApplet()
Return the parent applet. |
Frame |
getFrame()
Return the parent frame. |
Object |
getObject()
Return the object the manipulate. |
void |
launchCreateTask()
Method launchCreateTask launches the
CreateSerialNumberedPartFrame to create a new serial
numbered part. |
void |
launchDeleteTask()
Method launchDeleteTask delete the specified Serial
Numbered Part. |
void |
launchNewConfigurationTask()
Method launchNewConfigurationTask creates a new configuration
for the serial numbered part which is the context of this TaskDelegate. |
void |
launchSaveAsTask()
Method launchSaveAsTask launches the
CopyDialog to create a new WTSerialNumberedPart
from the original selected serial numbered part. |
void |
launchUpdateTask()
Method launchUpdateTask launches the
UpdateSerailNumberedPartFrame to update a given
WTSerialNumberedPart . |
void |
launchViewDistributionListTask()
Method launchViewDistributionListTask displays the HTML properties page
for the part which is the context of this TaskDelegate. |
void |
launchViewTask()
Method launchViewTask displays the HTML properties page
for the serial numbered part which is the context of this TaskDelegate. |
static void |
main(String[] args)
A main method that demonstrates how to use this class and allows testing |
Methods inherited from class wt.clients.util.TaskDelegate |
confirmAction, deleteObject, displayPropertiesPage, getParentApplet, getParentFolder, getParentFrame, 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 |
private static final String VIEW_DISTRIBUTION_LIST_ACTION
Constructor Detail |
public WTSerialNumberedPartTaskDelegate()
Method Detail |
public Object getObject()
getObject
in class TaskDelegate
TaskDelegate.getObject()
,
TaskDelegate.launchViewTask()
,
TaskDelegate.launchUpdateTask()
,
TaskDelegate.launchDeleteTask()
,
WTReference
public Frame getFrame()
public Applet getApplet()
public void launchCreateTask() throws TaskDelegateException
launchCreateTask
launches the
CreateSerialNumberedPartFrame
to create a new serial
numbered part.
launchCreateTask
in class TaskDelegate
TaskDelegateException
- if an error occurs attempting to
set the folder in which to create the documentCreateSerialNumberedPartFrame
,
WTSerialNumberedPart
public void launchSaveAsTask() throws TaskDelegateException
launchSaveAsTask
launches the
CopyDialog
to create a new WTSerialNumberedPart
from the original selected serial numbered part.
launchSaveAsTask
in class TaskDelegate
TaskDelegateException
- if an error occurs attempting to
set the folder in which to create the documentwt.clients.save.SaveAsViewDialog
,
WTSerialNumberedPart
public void launchViewTask() throws TaskDelegateException, ObjectNoLongerExistsException, NotAuthorizedException, WTException
launchViewTask
displays the HTML properties page
for the serial numbered part which is the context of this TaskDelegate.
launchViewTask
in class TaskDelegate
TaskDelegateException
- if no object has been given to update or
the given object is not a WTSerialNumberedPart
NotAuthorizedException
- if the current user does not have permission to
modify nor view the given WTSerialNumberedPart
ObjectNoLongerExistsException
- the given WTSerialNumberedPart no longer exists in the
database
WTException
- if an error occurs preparing the given WTSerialNumberedPart
for modificationWTSerialNumberedPart
public void launchViewDistributionListTask() throws TaskDelegateException, ObjectNoLongerExistsException, NotAuthorizedException, WTException
launchViewDistributionListTask
displays the HTML properties page
for the part which is the context of this TaskDelegate.
launchViewDistributionListTask
in class TaskDelegate
TaskDelegateException
- if no object has been given to update or
the given object is not a WTPart
NotAuthorizedException
- if the current user does not have permission to
modify nor view the given WTPart
ObjectNoLongerExistsException
- the given WTPart no longer exists in the
database
WTException
- if an error occurs preparing the given WTPart
for modificationWTPart
public void launchUpdateTask() throws TaskDelegateException, ObjectNoLongerExistsException, ModificationNotAllowedException, NotAuthorizedException, WTException
launchUpdateTask
launches the
UpdateSerailNumberedPartFrame
to update a given
WTSerialNumberedPart
. Before launching the frame in
which to update the serial numbered part, this method will verify
that the given serial numbered part is available for modification.
launchUpdateTask
in class TaskDelegate
TaskDelegateException
- if no object has been given to update or
the given object is not a WTSerialNumberedPart
ModificationNotAllowedException
- if the current user has permission to view but
not to modify the given WTSerialNumberedPart
NotAuthorizedException
- if the current user does not have permission to
modify nor view the given WTSerialNumberedPart
ObjectNoLongerExistsException
- the given WTSerialNumberedPart no longer exists in the
database
WTException
- if an error occurs preparing the given WTSerialNumberedPart
for modificationUpdatePartFrame
,
WTSerialNumberedPart
public void launchDeleteTask() throws TaskDelegateException, WTException
launchDeleteTask
delete the specified Serial
Numbered Part.
launchDeleteTask
in class TaskDelegate
TaskDelegateException
- if no object has been given to
delete or the given object is
not a WTSerialNumberedPart
or if error deleting the
WTSerialNumberedPart.
WTException
WTSerialNumberedPart
public void launchNewConfigurationTask() throws TaskDelegateException, ObjectNoLongerExistsException, NotAuthorizedException, WTException
launchNewConfigurationTask
creates a new configuration
for the serial numbered part which is the context of this TaskDelegate.
TaskDelegateException
- if no object has been given to update or
the given object is not a WTSerialNumberedPart
NotAuthorizedException
- if the current user does not have permission to
modify nor view the given WTSerialNumberedPart
ObjectNoLongerExistsException
- the given WTSerialNumberedPart no longer exists in the
database
WTException
- if an error occurs preparing the given WTSerialNumberedPart
for modificationWTSerialNumberedPart
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |