wt.clients.folder
Class ShortcutTaskDelegate
java.lang.Object
wt.clients.util.TaskDelegate
wt.clients.folder.ShortcutTaskDelegate
- public class ShortcutTaskDelegate
- extends TaskDelegate
Class ShortcutTaskDelegate
supports launching the tasks to
create, update, view and delete Shortcuts
.
Supported API: true
Extendable: false
Methods inherited from class wt.clients.util.TaskDelegate |
confirmAction, deleteObject, displayPropertiesPage, getObject, 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 |
RESOURCES
private static final String RESOURCES
- See Also:
- Constant Field Values
ShortcutTaskDelegate
public ShortcutTaskDelegate()
launchCreateTask
public void launchCreateTask()
throws TaskDelegateException
- Method
launchCreateTask
launches the task to create a new
Shortcut
. If the object has been set on this
TaskDelegate
(via setObject
), the
CreateShortcutDialog
launched is initialized with that object
as the target of the Shortcut
to be created. Otherwise, if
the parent folder has been set on this TaskDelegate
, the
parent folder is used as the initial Shortcut
target in the
dialog launched. If no parent frame has been set on this
TaskDelegate
, and no frame can be retrieved from the parent
applet of this TaskDelegate
, then an exception is thrown.
- Overrides:
launchCreateTask
in class TaskDelegate
- Throws:
TaskDelegateException
- if no frame is found with which to
parent the dialog to create a new Shortcut
- See Also:
TaskDelegate
,
Supported API: true
launchViewTask
public void launchViewTask()
throws ObjectNoLongerExistsException,
NotAuthorizedException,
TaskDelegateException,
WTException
- Method
launchViewTask
launches the task to view a
Shortcut
. This view task retrieves the actual target
of the Shortcut
and attempts to launch the view task
of that target object.
- Overrides:
launchViewTask
in class TaskDelegate
- Throws:
TaskDelegateException
- if no object to be viewed has been
given, or if the object to be viewed is not a Shortcut,
or if no parent frame has been specified to launch the
view task
NotAuthorizedException
- if the current user is not authorized to view the object
ObjectNoLongerExistsException
- if the object to be viewed no longer exists
WTException
- if an error occurs getting a refreshed copy of the
object- See Also:
TaskDelegate
,
Supported API: true
launchUpdateTask
public void launchUpdateTask()
throws ModificationNotAllowedException,
NotAuthorizedException,
ObjectNoLongerExistsException,
TaskDelegateException,
WTException
- Method
launchUpdateTask
launches the task to update a
Shortcut
. This update task retrieves the actual target
of the Shortcut
and attempts to launch the update task
of that target object.
- Overrides:
launchUpdateTask
in class TaskDelegate
- Throws:
TaskDelegateException
- if no object has been given to be updated,
or if the given object is not a
Shortcut
, or no parent frame
could be found to parent the update task
ModificationNotAllowedException
- if the current user is not authorized to modify the object
NotAuthorizedException
- if the current user is not authorized to view the object
ObjectNoLongerExistsException
- if the object to be updated no longer exists
WTException
- if an error occurs getting a refreshed copy of the
object- See Also:
TaskDelegate
,
Supported API: true
launchDeleteTask
public void launchDeleteTask()
throws TaskDelegateException,
WTException
- Method
launchDeleteTask
launches the task to delete a
Shortcut
. This delete task launches a dialog which
asks the user to confirm the delete. Note that the shortcut object
itself, and not the target of the shortcut is deleted.
- Overrides:
launchDeleteTask
in class TaskDelegate
- Throws:
TaskDelegateException
- if no object has been given to be updated,
or if the given object is not a
Shortcut
WTException
- if an error occurs deleting the Shortcut- See Also:
TaskDelegate
,
Supported API: true
getTargetType
private String getTargetType()
getAttributeValue
private String getAttributeValue(Object obj,
String attribute)