|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.adapter.ResourceAdapterBase
com.waveset.adapter.HostAccessResourceAdapter
Nested Class Summary |
Nested classes inherited from class com.waveset.adapter.ResourceAdapterBase |
ResourceAdapterBase.SimpleAccountIterator |
Nested classes inherited from class com.waveset.adapter.ResourceAdapter |
ResourceAdapter.ActionResult, ResourceAdapter.Features, ResourceAdapter.ObjectType |
Field Summary | |
static java.lang.String |
CLASS
|
static java.lang.String |
code_id
|
static java.lang.String |
HOST_ACCESS_GLOBAL_NAME
Standard global variable name which is expected to be available to mainframe Javascript resource actions. |
static java.lang.String |
JAVASCRIPT_GLOBALS_ACTION_PROPERTY
Name of property on ResourceAction which contains map of globals to be passed to javascript |
static java.lang.String |
USER_ATTRS_GLOBAL_NAME
Standard global variable name which is expected to be available to mainframe Javascript resource actions. |
static java.lang.String |
USER_IDENTITY_GLOBAL_NAME
Standard global variable name which is expected to be available to mainframe Javascript resource actions. |
Fields inherited from class com.waveset.adapter.ResourceAdapterBase |
_cache, _context, _excludedAccountsRule, _excludedAccountsRuleInited, _listAllObjectsAttrParse, _listAllObjectsAttrParseName, _listUserAttrParse, _listUserAttrParseName, _listUserGroupsAttrParse, _listUserGroupsAttrParseName, _resource, _thread, _trace, displayInfoCode, RA_BLOCKCOUNT, RA_LOGIN_ACTION, RA_LOGOFF_ACTION, RA_MULTI_VALUED_ATTRS, RA_TEST_MODE |
Constructor Summary | |
HostAccessResourceAdapter()
|
|
HostAccessResourceAdapter(Resource res,
ObjectCache cache)
|
Method Summary | |
protected void |
filterAndParseData(java.lang.String resp,
boolean verbose,
java.io.BufferedWriter bw,
boolean asHtml)
|
protected void |
formatOutputStr(java.lang.String s,
java.io.BufferedWriter bw,
boolean asHtml)
|
protected HostAccess |
getHostAccess()
|
protected java.lang.String |
getResourceId()
|
protected void |
lookupAndRunJavascriptAction(HostAccess hostAccess,
WSUser user,
java.lang.String operation,
java.lang.String timing,
WavesetResult result)
Lookup and run (if present) the specified resource action (assumed to be Javascript for mainframe). |
boolean |
parseDataFromFile(java.util.Map args,
java.lang.StringBuffer resultString)
|
protected java.lang.String |
readDataFile(java.lang.String fileName,
java.io.BufferedWriter bw,
boolean asHtml)
|
WavesetResult |
run(ResourceAction resAction,
java.util.Map args)
run() provides the support for the ACTIONS feaure |
protected void |
runAfterJavascriptAction(HostAccess hostAccess,
WSUser user,
WavesetResult result,
java.lang.String operation)
Convenience wrapper around lookupAndRunJavascriptAction(HostAccess,WSUser,String,String,WavesetResult) |
protected void |
runBeforeJavascriptAction(HostAccess hostAccess,
WSUser user,
WavesetResult result,
java.lang.String operation)
Convenience wrapper around lookupAndRunJavascriptAction(HostAccess,WSUser,String,String,WavesetResult) |
static void |
runJavascript(java.lang.String script,
java.lang.String label,
java.util.Map globals,
WavesetResult result)
Run a Javascript script, allowing for stdout, stderr, and return value capture into a WavesetResult. |
WavesetResult |
runJavascriptAction(ResourceAction resAction,
java.util.Map globals)
Run the ResourceAction. |
protected void |
runResourceAttributeJavascriptAction(java.lang.String resAttrName,
HostAccess hostAccess,
HostAccessLogin hostAccessLogin,
java.lang.String user,
EncryptedData password)
|
boolean |
supportsActions()
|
protected void |
verifyUsers(java.util.ArrayList users,
boolean verbose,
java.io.BufferedWriter bw,
boolean asHtml)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String CLASS
public static final java.lang.String HOST_ACCESS_GLOBAL_NAME
public static final java.lang.String USER_ATTRS_GLOBAL_NAME
public static final java.lang.String USER_IDENTITY_GLOBAL_NAME
public static final java.lang.String JAVASCRIPT_GLOBALS_ACTION_PROPERTY
Constructor Detail |
public HostAccessResourceAdapter(Resource res, ObjectCache cache) throws WavesetException
public HostAccessResourceAdapter() throws WavesetException
Method Detail |
protected HostAccess getHostAccess()
protected java.lang.String getResourceId()
protected void runResourceAttributeJavascriptAction(java.lang.String resAttrName, HostAccess hostAccess, HostAccessLogin hostAccessLogin, java.lang.String user, EncryptedData password) throws java.lang.Exception
java.lang.Exception
protected void runBeforeJavascriptAction(HostAccess hostAccess, WSUser user, WavesetResult result, java.lang.String operation) throws WavesetException
lookupAndRunJavascriptAction(HostAccess,WSUser,String,String,WavesetResult)
WavesetException
protected void runAfterJavascriptAction(HostAccess hostAccess, WSUser user, WavesetResult result, java.lang.String operation) throws WavesetException
lookupAndRunJavascriptAction(HostAccess,WSUser,String,String,WavesetResult)
WavesetException
protected void lookupAndRunJavascriptAction(HostAccess hostAccess, WSUser user, java.lang.String operation, java.lang.String timing, WavesetResult result) throws WavesetException
hostAccess
- HostAccess to pass to Javascriptuser
- user info to pass to Javascriptoperation
- specifies which action (e.g. "delete" "create" )timing
- specifies which action ("before" or "after")result
-
WavesetException
public WavesetResult run(ResourceAction resAction, java.util.Map args) throws WavesetException
run
in interface ResourceAdapter
run
in class ResourceAdapterBase
resAction
- The action to executeargs
- Additional args, can be null.
WavesetException
public boolean supportsActions()
supportsActions
in interface ResourceAdapter
supportsActions
in class ResourceAdapterBase
public WavesetResult runJavascriptAction(ResourceAction resAction, java.util.Map globals) throws WavesetException
WavesetException
public static void runJavascript(java.lang.String script, java.lang.String label, java.util.Map globals, WavesetResult result) throws WavesetException
script
- javascript string to executelabel
- string to use in javascript error messagesglobals
- globals to make available to scriptresult
- where to store output
WavesetException
protected java.lang.String readDataFile(java.lang.String fileName, java.io.BufferedWriter bw, boolean asHtml) throws WavesetException, java.io.IOException
WavesetException
java.io.IOException
protected void verifyUsers(java.util.ArrayList users, boolean verbose, java.io.BufferedWriter bw, boolean asHtml) throws WavesetException, java.io.IOException
WavesetException
java.io.IOException
public boolean parseDataFromFile(java.util.Map args, java.lang.StringBuffer resultString)
protected void filterAndParseData(java.lang.String resp, boolean verbose, java.io.BufferedWriter bw, boolean asHtml) throws java.io.IOException, WavesetException
java.io.IOException
WavesetException
protected void formatOutputStr(java.lang.String s, java.io.BufferedWriter bw, boolean asHtml) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |