public interface TaskContext extends PluginContext
Task objects.
TaskContext objects are passed in the execute
method of Task objects. Task objects can then
use the TaskContext object to get information about the HttpServletRequest
and about the user who is performing the task.
| Modifier and Type | Method and Description |
|---|---|
void |
addToHistory(ObjectEntry oe)
Add a directory object represented by ObjectEntry to the user's history list for later selection.
|
void |
addToHistory(java.lang.String objectName)
Add a directory object represented by the object's FDN of the object to the user's
history list for later selection.
|
void |
addToHistory(java.lang.String objectTypeName,
java.lang.String objectName)
Add a directory object represented by the object's type name (class) and the FDN of the object to the user's
history list for later selection.
|
void |
clearHistory()
Clears all objects from the user's history list.
|
java.lang.Object |
getAuthAttribute(java.lang.Object attrKey)
Returns the value to which the specified attribute key is associated with from the default authenticators context.
|
AuthenticationBroker |
getAuthenticationBroker()
Returns the AuthenticationBroker associated with this logged in user.
|
iMgrAuthenticator |
getAuthenticator()
Returns the iMgrAuthenticator object associated with this PluginContext.
|
java.lang.String |
getContextPath()
Returns the context path from the HttpServletRequest.
|
java.lang.String |
getDeviceType()
Returns the current device type.
|
DirUtils |
getDirUtils()
Returns the DirUtils object which contains utility methods for accessing the directory.
|
java.util.Locale |
getLocale()
Returns the Locale for use in localization.
|
java.lang.String |
getModulesPath()
Returns the path to the modules directory for use in JSPs referencing images or other files under their module
directory.
|
java.lang.String |
getPersistentData(java.lang.String configID,
java.lang.String keyId)
Reads data from the configID UserConfig persistent store.
|
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the current HttpServletRequest object for use by Tasks.
|
javax.servlet.http.HttpSession |
getSession()
Returns the HttpSession object for retrieval of information.
|
java.lang.String |
getTaskId()
Returns the unique TaskID for this task.
|
java.io.File |
getWebappHome()
Returns a File pointing to the root of webapps.
|
boolean |
isTaskAvailable(java.lang.String taskId)
Checks to see if a Task with the specified unique ID is available to be run.
|
void |
removeAuthAttribute(java.lang.Object attrKey)
Removes the attribute key and associated value if present from the default authenticators context.
|
void |
removeFromHistory(java.lang.String objectName)
Removes a directory object from the user's history list based upon the FDN of the object.
|
void |
setAuthAttribute(java.lang.Object attrKey,
java.lang.Object attrValue)
Saves the specified attribute value with the specified attribute key in the default authenticators context.
|
void |
setPersistentData(java.lang.String configID,
java.lang.String keyId,
java.lang.String data)
Saves the data for the specified key in the configID UserConfig persistent store.
|
createDocument, getAttribute, getBaseGadgetInstance, getBrowserLocale, getClientLocal, getDocument, geteMFrameConfigProperties, getGlobalVar, getHistory, getHttpServletRequest, getLiveTask, getManagementServiceSet, getProviderProperties, getResponse, getResultStrings, getSessionCache, isDisconnected, removeAttribute, removeGlobalVar, setAttribute, setGlobalVar, storeeMFrameConfigPropertyvoid addToHistory(ObjectEntry oe)
PluginContextaddToHistory in interface MContextaddToHistory in interface PluginContextoe - ObjectEntry representing the directory objectvoid addToHistory(java.lang.String objectName)
objectName - String containing the full distinguished name (FDN) of the objectvoid addToHistory(java.lang.String objectTypeName,
java.lang.String objectName)
PluginContextaddToHistory in interface MContextaddToHistory in interface PluginContextobjectTypeName - String containing the type or class name of the objectobjectName - String containing the full distinguished name (FDN) of the objectvoid clearHistory()
PluginContextclearHistory in interface MContextclearHistory in interface PluginContextjava.lang.Object getAuthAttribute(java.lang.Object attrKey)
PluginContextUse instead of getSession to get attributes off of a session specific cache of key/value pairs that automatically gets cleaned up on logout.
getAuthAttribute in interface MContextgetAuthAttribute in interface PluginContextattrKey - Object containing the attribute key whose associated value is to be returned
This may not be null.PluginContext.setAttribute(java.lang.Object, java.lang.Object),
PluginContext.getGlobalVar(java.lang.String)AuthenticationBroker getAuthenticationBroker()
PluginContextgetAuthenticationBroker in interface MContextgetAuthenticationBroker in interface PluginContextiMgrAuthenticator getAuthenticator()
PluginContextgetAuthenticator in interface MContextgetAuthenticator in interface PluginContextjava.lang.String getContextPath()
PluginContextgetContextPath in interface MContextgetContextPath in interface PluginContextjava.lang.String getDeviceType()
PluginContextThe following table lists the possible return values and their meanings:
| Return Value | Meaning |
| browser | Internet Explorer |
| mozilla | Netscape or Mozilla-based browsers |
| default | All other browsers |
| PDA devices such as Palm Pilot and Windows CE devices |
getDeviceType in interface MContextgetDeviceType in interface PluginContextDirUtils getDirUtils()
PluginContextgetDirUtils in interface MContextgetDirUtils in interface PluginContextjava.util.Locale getLocale()
PluginContextgetLocale in interface MContextgetLocale in interface PluginContextjava.lang.String getModulesPath()
PluginContextgetModulesPath in interface MContextgetModulesPath in interface PluginContextPluginContext.getContextPath()java.lang.String getPersistentData(java.lang.String configID,
java.lang.String keyId)
PluginContextgetPersistentData in interface MContextgetPersistentData in interface PluginContextconfigID - Name of the UserConfig store to retreive data from from. If null, keyId - String containing the key name of the dataPluginContext.setPersistentData(java.lang.String, java.lang.String, java.lang.String)javax.servlet.http.HttpServletRequest getRequest()
PluginContextgetRequest in interface MContextgetRequest in interface PluginContextjavax.servlet.http.HttpSession getSession()
PluginContextgetSession in interface MContextgetSession in interface PluginContextPluginContext.getAuthAttribute(java.lang.Object),
PluginContext.setAuthAttribute(java.lang.Object, java.lang.Object),
PluginContext.removeAuthAttribute(java.lang.Object)java.lang.String getTaskId()
PluginContextgetTaskId in interface MContextgetTaskId in interface PluginContextjava.io.File getWebappHome()
PluginContextgetWebappHome in interface MContextgetWebappHome in interface PluginContextboolean isTaskAvailable(java.lang.String taskId)
PluginContextisTaskAvailable in interface MContextisTaskAvailable in interface PluginContexttaskId - String containing the unique ID of the Taskvoid removeAuthAttribute(java.lang.Object attrKey)
PluginContextUse instead of getSession to remove attributes off of a session specific cache of key/value pairs that automatically gets cleaned up on logout.
removeAuthAttribute in interface MContextremoveAuthAttribute in interface PluginContextattrKey - Object containing the attribute key whose associated value is to be removed
This may not be null.PluginContext.removeGlobalVar(java.lang.String)void removeFromHistory(java.lang.String objectName)
PluginContextremoveFromHistory in interface MContextremoveFromHistory in interface PluginContextobjectName - String containing the full distinguished name (FDN) of the objectvoid setAuthAttribute(java.lang.Object attrKey,
java.lang.Object attrValue)
PluginContextUse instead of getSession to set attributes on a session specific cache of key/value pairs that automatically gets cleaned up on logout.
setAuthAttribute in interface MContextsetAuthAttribute in interface PluginContextattrKey - Object containing the attribute key whose associated value is to be set
This may not be null.attrValue - Object value to be saved. This may not be null.PluginContext.getAttribute(java.lang.Object),
PluginContext.setGlobalVar(java.lang.String, java.lang.String)void setPersistentData(java.lang.String configID,
java.lang.String keyId,
java.lang.String data)
PluginContextsetPersistentData in interface MContextsetPersistentData in interface PluginContextconfigID - Name of the UserConfig store to put data in. If null, keyId - String containing the key name of the datadata - String containing the value dataPluginContext.getPersistentData(java.lang.String, java.lang.String)
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.