|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.util.TaskDelegate
wt.clients.doc.WTDocumentTaskDelegate
Class WTDocumentTaskDelegate
provides support for launching
the tasks to create, update and view WTDocuments
.
Supported API: true
Extendable: true
Field Summary | |
private static String |
RESOURCES
|
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 | |
WTDocumentTaskDelegate()
|
Method Summary | |
void |
launchCreateTask()
Method launchCreateTask launches the
CreateDocumentFrame to create a new General
document. |
void |
launchDeleteTask()
Launches the delete task to delete the document associated with this task delegate. |
void |
launchSaveAsTask()
Method launchSaveAsTask launches the
CopyDialog to create a new WTDocument
document from the original selected document.. |
void |
launchUpdateTask()
Method launchUpdateTask launches the
UpdateDocumentFrame to update a given WTDocument . |
void |
launchViewTask()
Launches the HTML object properties page for the document which is the context of this task delegate |
Methods inherited from class wt.clients.util.TaskDelegate |
confirmAction, deleteObject, 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 |
private static final String RESOURCES
private static final String VC_RESOURCES
Constructor Detail |
public WTDocumentTaskDelegate()
Method Detail |
public void launchCreateTask() throws TaskDelegateException
launchCreateTask
launches the
CreateDocumentFrame
to create a new General
document. If the parentFolder
on this
TaskDelegate
has been set, that folder is used
to initialize the location in which to create the new
General
document.
launchCreateTask
in class TaskDelegate
TaskDelegateException
- if an error occurs attempting to
set the folder in which to create the documentCreateDocumentFrame
,
wt.doc.General
,
WTDocument
public void launchViewTask() throws NotAuthorizedException, ObjectNoLongerExistsException, TaskDelegateException, WTException
launchViewTask
in class TaskDelegate
TaskDelegateException
- if no object has been given to view or
the given object is not a WTDocument
NotAuthorizedException
- if the current user does not have permission to
view the given WTDocument
ObjectNoLongerExistsException
- the given WTDocument no longer exists in the
database
WTException
- if an error occurs preparing the given WTDocument
for viewingTaskDelegate.setObject(java.lang.Object)
public void launchSaveAsTask() throws TaskDelegateException
launchSaveAsTask
launches the
CopyDialog
to create a new WTDocument
document from the original selected document..
launchSaveAsTask
in class TaskDelegate
TaskDelegateException
- if an error occurs attempting to
set the folder in which to create the documentSaveAsDialog
,
WTDocument
public void launchUpdateTask() throws ModificationNotAllowedException, NotAuthorizedException, ObjectNoLongerExistsException, TaskDelegateException, WTException
launchUpdateTask
launches the
UpdateDocumentFrame
to update a given WTDocument
.
Before launching the frame in which to update the document, this method
will verify that the given document is available for modification.
launchUpdateTask
in class TaskDelegate
TaskDelegateException
- if no object has been given to update or
the given object is not a WTDocument
ModificationNotAllowedException
- if the current user has permission to view but
not to modify the given WTDocument
NotAuthorizedException
- if the current user does not have permission to
modify nor view the given WTDocument
ObjectNoLongerExistsException
- the given WTDocument no longer exists in the
database
WTException
- if an error occurs preparing the given WTDocument
for modificationUpdateDocumentFrame
,
WTDocument
public void launchDeleteTask() throws TaskDelegateException, WTException
launchDeleteTask
in class TaskDelegate
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.RefreshEvent
,
RefreshListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |