|
||||||||||
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
com.waveset.adapter.ACF2ResourceAdapter
Nested Class Summary | |
class |
ACF2ResourceAdapter.ACF2AccountIterator
|
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 | |
protected java.lang.String[] |
_errorMessages
|
protected HostAccess |
_hostAccess
|
protected static boolean |
_supportMultiValuedAttrs
|
static java.lang.String |
ACCESS_ACC_CNT
|
static java.lang.String |
ACCESS_ACC_CNT_MAPPED_NAME
|
static java.lang.String |
ACCESS_ACC_DATE
|
static java.lang.String |
ACCESS_ACC_DATE_MAPPED_NAME
|
static java.lang.String |
ACCESS_ACC_TIME
|
static java.lang.String |
ACCESS_ACC_TIME_MAPPED_NAME
|
static java.lang.String |
ACCOUNT_FILTER_KEY
|
static java.lang.String |
ACF2_LOGIN_MODULE
|
static java.lang.String |
ACF2_MORE
|
static java.lang.String |
ACF2_PASSWORD
|
static java.lang.String |
ACF2_PROMPT
|
static java.lang.String |
ACF2_RESOURCE_USER_FORM
|
static java.lang.String |
ACF2_USER
|
static java.lang.String |
ADDITIONAL_ATTRIBUTES_KEY
|
static java.lang.String |
ATTR_USING
|
static java.lang.String |
CANCELSUSPEND_CANCEL
|
static java.lang.String |
CANCELSUSPEND_CANCEL_MAPPED_NAME
|
static java.lang.String |
CANCELSUSPEND_CSDATE
|
static java.lang.String |
CANCELSUSPEND_CSDATE_MAPPED_NAME
|
static java.lang.String |
CANCELSUSPEND_CSWHO
|
static java.lang.String |
CANCELSUSPEND_CSWHO_MAPPED_NAME
|
static java.lang.String |
CANCELSUSPEND_SUSPEND
|
static java.lang.String |
CANCELSUSPEND_SUSPEND_MAPPED_NAME
|
static java.lang.String |
code_id
|
static java.lang.String |
DISPLAY_ACF2_PASSWORD
|
static java.lang.String |
DISPLAY_ACF2_USER
|
static java.lang.String |
EXPIRED
|
protected static java.util.Collection |
intAttrs
|
protected int |
LINE_LENGTH
|
static java.lang.String |
PASSWORD_MAXDAYS
|
static java.lang.String |
PASSWORD_MAXDAYS_MAPPED_NAME
|
static java.lang.String |
PASSWORD_MINDAYS
|
static java.lang.String |
PASSWORD_MINDAYS_MAPPED_NAME
|
static java.lang.String |
PASSWORD_PSWD_DAT
|
static java.lang.String |
PASSWORD_PSWD_DAT_MAPPED_NAME
|
static java.lang.String |
PASSWORD_PSWD_EXP
|
static java.lang.String |
PASSWORD_PSWD_EXP_MAPPED_NAME
|
static java.lang.String |
PASSWORD_PSWD_INV
|
static java.lang.String |
PASSWORD_PSWD_INV_MAPPED_NAME
|
static java.lang.String |
PASSWORD_PSWD_TOD
|
static java.lang.String |
PASSWORD_PSWD_TOD_MAPPED_NAME
|
static java.lang.String |
PASSWORD_PSWD_VIO
|
static java.lang.String |
PASSWORD_PSWD_VIO_MAPPED_NAME
|
static java.lang.String |
PRIVILEGES_ACTIVE
|
static java.lang.String |
PRIVILEGES_ACTIVE_MAPPED_NAME
|
static java.lang.String |
PRIVILEGES_EXPIRE
|
static java.lang.String |
PRIVILEGES_EXPIRE_MAPPED_NAME
|
static java.lang.String |
PRIVILEGES_RESTRICT
|
static java.lang.String |
PRIVILEGES_RESTRICT_MAPPED_NAME
|
static java.lang.String |
RA_AFFINITY_LIST
The account name used to connect to the resource. |
static java.lang.String |
RA_CMD_INTERP
|
static java.lang.String |
RA_HOST
Resource attributes are the common names that will be visible in the GUI that will prompt the user for values. |
static java.lang.String |
RA_IDLETIMEOUT
|
static java.lang.String |
RA_LIST_TIMEOUT
|
static java.lang.String |
RA_LISTUSER_ATTR_PARSE
|
static java.lang.String |
RA_PORT
The port on which to communicate to the resource. |
static java.lang.String |
RA_TIMEOUT
|
protected static java.util.Collection |
readOnlyAttributes
|
protected static java.lang.String |
SEGMENT_SEPARATOR
|
static java.lang.String |
STATISTICS_SEC_VIO
|
static java.lang.String |
STATISTICS_SEC_VIO_MAPPED_NAME
|
static java.lang.String |
USERID
|
Fields inherited from class com.waveset.adapter.HostAccessResourceAdapter |
HOST_ACCESS_GLOBAL_NAME, JAVASCRIPT_GLOBALS_ACTION_PROPERTY, USER_ATTRS_GLOBAL_NAME, USER_IDENTITY_GLOBAL_NAME |
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 | |
ACF2ResourceAdapter()
|
|
ACF2ResourceAdapter(Resource res,
ObjectCache cache)
|
Method Summary | |
protected java.lang.String |
addEol(java.lang.String s,
java.lang.String eol,
int width)
|
WavesetResult |
authenticate(java.util.HashMap loginInfo)
Authenticates the user against the resource. |
WavesetResult |
checkCreateAccount(WSUser user)
Checks to see if an account can be created. |
WavesetResult |
checkDeleteAccount(WSUser user)
|
WavesetResult |
checkUpdateAccount(WSUser user)
|
java.lang.String |
createIdentity(WSUser user)
Override base class' createIdentity to always uppercase the identity since ACF2 will upper case the user ID anyway. |
Resource |
createPrototypeResource()
|
protected java.lang.String |
doCmd(java.lang.String cmd)
|
protected void |
doCmd(java.lang.String cmd,
ScreenNotifier notifier)
|
protected java.lang.StringBuffer |
doTsoCmd(java.lang.String cmd)
|
protected boolean |
errorReported(java.lang.String resp,
java.lang.String[] errorMessages)
|
WSAttributes |
getAccountAttributes(java.lang.String accountIdentity)
This method is obsolete. |
AccountIterator |
getAccountIterator(java.util.Map filterParams)
Creates an account iterator which only iterates through accounts matching the supplied filterParams. |
java.util.List |
getAffinityList()
|
GenericObject |
getFeatures()
Expose features supported by the Resource Adapter. |
java.lang.String |
getHost()
|
protected HostAccess |
getHostAccess()
|
int |
getIdleTimeout()
|
java.lang.String |
getKey()
|
int |
getListTimeout()
|
int |
getMaxConnections()
|
java.lang.String |
getPort()
|
java.util.Properties |
getProperties()
|
int |
getRequestTimeout()
|
java.lang.String |
getUser()
|
WSUser |
getUser(WSUser user)
Retrieve information about an account, and package it as a WSUser object. |
boolean |
isAttributeParsed(java.lang.String attributeName,
Syntax attributeType)
Utility method to check if an attribute is parsed by the resource adapter. |
protected boolean |
isTso()
|
java.util.ArrayList |
listAllObjects(java.lang.String resourceObjectType,
java.util.Map options,
java.lang.String runAsUser,
EncryptedData runAsPassword)
This method will return a list of object names of the specified object type. |
void |
login(HostAccess hostAccess)
|
void |
login(HostAccess hostAccess,
ServerAffinity affinity)
|
void |
logoff(HostAccess hostAccess)
|
protected void |
realCreate(WSUser user,
WavesetResult result)
Create a new user account on the resource This method is called by createAccounts (the multiuser create method). |
protected void |
realCreateOrUpdate(WSUser user,
WavesetResult result,
java.lang.String operation)
Create a new user account on the resource This method is called by createAccounts (the multiuser create method). |
protected void |
realDelete(WSUser user,
WavesetResult result)
Needs to be overridden by subclass if default deleteAccounts() implementation is used. |
void |
realDisable(WSUser user,
WavesetResult result)
|
void |
realEnable(WSUser user,
WavesetResult result)
|
protected WSUser |
realGetUser(WSUser user)
|
protected void |
realUpdate(WSUser user,
WavesetResult result)
Needs to be overridden by subclass if default updateAccounts() implementation is used. |
protected WSAttributes |
reverseMap(java.util.Map map)
Added for backward compatability. |
protected WSAttributes |
reverseMap(java.util.Map map,
java.util.List additionalAttributeTypes)
Convert the ACF2 attribute map into WSAttributes, adding any additional attributes (WSAttributes) specified. |
protected void |
setFromResource()
|
protected void |
startConnection()
Needs to be overridden by subclass if default createAccounts() implementation is used. |
static Resource |
staticCreatePrototypeResource()
|
protected void |
stopConnection()
Needs to be overridden by subclass if default createAccounts() implementation is used. |
boolean |
supportsAccountDisable()
Indicates whether or not this resource supports account disable. |
Methods inherited from class com.waveset.adapter.HostAccessResourceAdapter |
filterAndParseData, formatOutputStr, getResourceId, lookupAndRunJavascriptAction, parseDataFromFile, readDataFile, run, runAfterJavascriptAction, runBeforeJavascriptAction, runJavascript, runJavascriptAction, runResourceAttributeJavascriptAction, supportsActions, verifyUsers |
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
protected static final boolean _supportMultiValuedAttrs
protected static final java.lang.String SEGMENT_SEPARATOR
protected HostAccess _hostAccess
protected java.lang.String[] _errorMessages
public static final java.lang.String ACCOUNT_FILTER_KEY
public static final java.lang.String ADDITIONAL_ATTRIBUTES_KEY
public static final java.lang.String CANCELSUSPEND_CANCEL
public static final java.lang.String CANCELSUSPEND_CSDATE
public static final java.lang.String CANCELSUSPEND_CSWHO
public static final java.lang.String CANCELSUSPEND_SUSPEND
public static final java.lang.String PRIVILEGES_ACTIVE
public static final java.lang.String PRIVILEGES_EXPIRE
public static final java.lang.String PRIVILEGES_RESTRICT
public static final java.lang.String ACCESS_ACC_CNT
public static final java.lang.String ACCESS_ACC_DATE
public static final java.lang.String ACCESS_ACC_TIME
public static final java.lang.String PASSWORD_MAXDAYS
public static final java.lang.String PASSWORD_MINDAYS
public static final java.lang.String PASSWORD_PSWD_DAT
public static final java.lang.String PASSWORD_PSWD_EXP
public static final java.lang.String PASSWORD_PSWD_INV
public static final java.lang.String PASSWORD_PSWD_TOD
public static final java.lang.String PASSWORD_PSWD_VIO
public static final java.lang.String STATISTICS_SEC_VIO
public static final java.lang.String CANCELSUSPEND_CANCEL_MAPPED_NAME
public static final java.lang.String CANCELSUSPEND_CSDATE_MAPPED_NAME
public static final java.lang.String CANCELSUSPEND_CSWHO_MAPPED_NAME
public static final java.lang.String CANCELSUSPEND_SUSPEND_MAPPED_NAME
public static final java.lang.String PRIVILEGES_ACTIVE_MAPPED_NAME
public static final java.lang.String PRIVILEGES_EXPIRE_MAPPED_NAME
public static final java.lang.String PRIVILEGES_RESTRICT_MAPPED_NAME
public static final java.lang.String ACCESS_ACC_CNT_MAPPED_NAME
public static final java.lang.String ACCESS_ACC_DATE_MAPPED_NAME
public static final java.lang.String ACCESS_ACC_TIME_MAPPED_NAME
public static final java.lang.String PASSWORD_MAXDAYS_MAPPED_NAME
public static final java.lang.String PASSWORD_MINDAYS_MAPPED_NAME
public static final java.lang.String PASSWORD_PSWD_DAT_MAPPED_NAME
public static final java.lang.String PASSWORD_PSWD_EXP_MAPPED_NAME
public static final java.lang.String PASSWORD_PSWD_INV_MAPPED_NAME
public static final java.lang.String PASSWORD_PSWD_TOD_MAPPED_NAME
public static final java.lang.String PASSWORD_PSWD_VIO_MAPPED_NAME
public static final java.lang.String STATISTICS_SEC_VIO_MAPPED_NAME
public static final java.lang.String RA_HOST
public static final java.lang.String RA_PORT
public static final java.lang.String RA_AFFINITY_LIST
public static final java.lang.String RA_TIMEOUT
public static final java.lang.String RA_IDLETIMEOUT
public static final java.lang.String RA_LIST_TIMEOUT
public static final java.lang.String RA_CMD_INTERP
public static final java.lang.String RA_LISTUSER_ATTR_PARSE
public static final java.lang.String ACF2_PROMPT
public static final java.lang.String ACF2_MORE
public static final java.lang.String ACF2_LOGIN_MODULE
public static final java.lang.String ACF2_RESOURCE_USER_FORM
public static final java.lang.String ACF2_USER
public static final java.lang.String ACF2_PASSWORD
public static final java.lang.String DISPLAY_ACF2_USER
public static final java.lang.String DISPLAY_ACF2_PASSWORD
public static final java.lang.String USERID
public static final java.lang.String EXPIRED
public static final java.lang.String ATTR_USING
protected static final java.util.Collection readOnlyAttributes
protected static final java.util.Collection intAttrs
protected final int LINE_LENGTH
Constructor Detail |
public ACF2ResourceAdapter(Resource res, ObjectCache cache) throws WavesetException
public ACF2ResourceAdapter() throws WavesetException
Method Detail |
protected void setFromResource()
setFromResource
in class ResourceAdapterBase
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class ResourceAdapterBase
WavesetException
public GenericObject getFeatures()
ResourceAdapterBase
getFeatures
in interface ResourceAdapter
getFeatures
in class ResourceAdapterBase
ResourceAdapter.Features
public java.lang.String createIdentity(WSUser user) throws WavesetException
createIdentity
in interface ResourceAdapter
createIdentity
in class ResourceAdapterBase
WavesetException
protected WSUser realGetUser(WSUser user) throws WavesetException
WavesetException
public WSUser getUser(WSUser user) throws WavesetException
Information required to identify the resource account is supplied in another WSUser object.
The returned user object will resemble the source object, but will have its account attribute list filled in.
Returns "null" if there is no account that corresponds to the user.
getUser
in interface ResourceAdapter
getUser
in class ResourceAdapterBase
WavesetException
protected WSAttributes reverseMap(java.util.Map map) throws WavesetException
map
-
WavesetException
protected WSAttributes reverseMap(java.util.Map map, java.util.List additionalAttributeTypes) throws WavesetException
map
- Map of ACF2 field names and valuesadditionalAttributeTypes
- List of additional AccountAttributeType to include in the result.
WavesetException
public WavesetResult checkCreateAccount(WSUser user) throws WavesetException
checkCreateAccount
in interface ResourceAdapter
checkCreateAccount
in class ResourceAdapterBase
WavesetException
protected void realCreate(WSUser user, WavesetResult result) throws WavesetException
realCreate
in class ResourceAdapterBase
WavesetException
protected void realCreateOrUpdate(WSUser user, WavesetResult result, java.lang.String operation) throws WavesetException
WavesetException
protected boolean errorReported(java.lang.String resp, java.lang.String[] errorMessages)
public WavesetResult checkUpdateAccount(WSUser user) throws WavesetException
checkUpdateAccount
in interface ResourceAdapter
checkUpdateAccount
in class ResourceAdapterBase
WavesetException
protected void realUpdate(WSUser user, WavesetResult result) throws WavesetException
ResourceAdapterBase
realUpdate
in class ResourceAdapterBase
WavesetException
public WavesetResult checkDeleteAccount(WSUser user) throws WavesetException
checkDeleteAccount
in interface ResourceAdapter
checkDeleteAccount
in class ResourceAdapterBase
WavesetException
protected void realDelete(WSUser user, WavesetResult result) throws WavesetException
ResourceAdapterBase
realDelete
in class ResourceAdapterBase
WavesetException
public WSAttributes getAccountAttributes(java.lang.String accountIdentity) throws WavesetException
ResourceAdapter
getAccountAttributes
in interface ResourceAdapter
getAccountAttributes
in class ResourceAdapterBase
WavesetException
public WavesetResult authenticate(java.util.HashMap loginInfo) throws WavesetException
ResourceAdapter
authenticate
in interface ResourceAdapter
authenticate
in class ResourceAdapterBase
WavesetException
protected void startConnection() throws WavesetException
ResourceAdapterBase
startConnection
in class ResourceAdapterBase
WavesetException
protected void stopConnection() throws WavesetException
ResourceAdapterBase
stopConnection
in class ResourceAdapterBase
WavesetException
protected java.lang.String addEol(java.lang.String s, java.lang.String eol, int width)
public boolean supportsAccountDisable()
ResourceAdapter
supportsAccountDisable
in interface ResourceAdapter
supportsAccountDisable
in class ResourceAdapterBase
public void realDisable(WSUser user, WavesetResult result) throws WavesetException
realDisable
in class ResourceAdapterBase
WavesetException
public void realEnable(WSUser user, WavesetResult result) throws WavesetException
realEnable
in class ResourceAdapterBase
WavesetException
public java.util.ArrayList listAllObjects(java.lang.String resourceObjectType, java.util.Map options, java.lang.String runAsUser, EncryptedData runAsPassword) throws WavesetException
ResourceAdapter
listAllObjects
in interface ResourceAdapter
listAllObjects
in class ResourceAdapterBase
resourceObjectType
- - a type of object
that is either well-known or is meaningful to the resource.
Every resource is expected to recognize certain values.
For example, listAllObjects(ACCOUNT)
should return a list of all account names.options
- - a map of optionsrunAsUser
- - (optional) if specified, connect as this user
to list all objects of the specified type.runAsPassword
- - (optional) if specified, connect with this
password to list all objects of the specified type.
WavesetException
public AccountIterator getAccountIterator(java.util.Map filterParams) throws WavesetException
getAccountIterator
in interface ResourceAdapter
getAccountIterator
in class ResourceAdapterBase
filterParams
- Map containing:WavesetException
public void login(HostAccess hostAccess) throws java.lang.Exception
login
in interface HostAccessLogin
java.lang.Exception
public void login(HostAccess hostAccess, ServerAffinity affinity) throws java.lang.Exception
login
in interface HostAccessLogin
java.lang.Exception
public void logoff(HostAccess hostAccess) throws java.lang.Exception
logoff
in interface HostAccessLogin
java.lang.Exception
public java.lang.String getHost() throws java.lang.Exception
getHost
in interface HostAccessLogin
java.lang.Exception
public java.lang.String getPort() throws java.lang.Exception
getPort
in interface HostAccessLogin
java.lang.Exception
public java.lang.String getUser() throws java.lang.Exception
getUser
in interface HostAccessLogin
java.lang.Exception
public java.util.List getAffinityList() throws java.lang.Exception
getAffinityList
in interface HostAccessLogin
java.lang.Exception
public java.lang.String getKey() throws java.lang.Exception
getKey
in interface HostAccessLogin
java.lang.Exception
public int getRequestTimeout() throws java.lang.Exception
getRequestTimeout
in interface HostAccessLogin
java.lang.Exception
public int getIdleTimeout() throws java.lang.Exception
getIdleTimeout
in interface HostAccessLogin
java.lang.Exception
public int getListTimeout() throws java.lang.Exception
java.lang.Exception
public java.util.Properties getProperties()
getProperties
in interface HostAccessLogin
public int getMaxConnections()
getMaxConnections
in interface HostAccessLogin
protected HostAccess getHostAccess()
getHostAccess
in class HostAccessResourceAdapter
protected boolean isTso()
protected java.lang.String doCmd(java.lang.String cmd) throws java.lang.Exception
java.lang.Exception
protected void doCmd(java.lang.String cmd, ScreenNotifier notifier) throws java.lang.Exception
java.lang.Exception
protected java.lang.StringBuffer doTsoCmd(java.lang.String cmd) throws WavesetException
WavesetException
public boolean isAttributeParsed(java.lang.String attributeName, Syntax attributeType) throws WavesetException
attributeName
- Name of desired attribute.attributeType
- Optional type of attribute.
WavesetException
AttrParse.isTokenPresent( String, Syntax )
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |