|
||||||||||
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.SAPResourceAdapter
Provides an interface to SAP systems via SAP's Java Connector (JCO). Performs RFC calls called BAPIs to do the work of the adapter.
Nested Class Summary | |
protected class |
SAPResourceAdapter.AcctIter
|
protected class |
SAPResourceAdapter.Function
|
static interface |
SAPResourceAdapter.ObjectType
|
Nested classes inherited from class com.waveset.adapter.ResourceAdapterBase |
ResourceAdapterBase.SimpleAccountIterator |
Nested classes inherited from class com.waveset.adapter.ResourceAdapter |
ResourceAdapter.ActionResult, ResourceAdapter.Features |
Field Summary | |
protected java.util.Set |
_filteredAccounts
Accounts listed here cannot be edited, listed, created, etc. |
protected java.lang.String |
_poolKey
|
protected com.sap.mw.jco.JCO.Client |
_serverConnection
Our connection to SAP Managed by connect() and disconnect() only. |
protected int |
_traceLevel
|
static java.lang.String |
AA_ACTIVITY_GROUP_OBJECTS_MAPNAME
|
static java.lang.String |
AA_ACTIVITY_GROUPS
|
static java.lang.String |
AA_ACTIVITY_GROUPS_MAPNAME
|
static java.lang.String |
AA_ACTIVITY_GROUPS_SHADOW
|
static java.lang.String |
AA_BAPI_CUA_SYSTEMS
bapi based cua systems list |
static java.lang.String |
AA_BAPI_CUA_SYSTEMS_MAPNAME
|
static java.lang.String |
AA_BAPI_CUA_SYSTEMS_SHADOW
|
static java.lang.String |
AA_DIRECT_ACTIVITY_GROUPS_SHADOW
|
static java.lang.String |
AA_DIRECT_LOCAL_ACTIVITYGROUPS
|
static java.lang.String |
AA_DIRECT_LOCAL_PROFILES
|
static java.lang.String |
AA_DIRECT_PROFILES_SHADOW
|
static java.lang.String |
AA_LOCAL_ACTIVITYGROUPS
|
static java.lang.String |
AA_LOCAL_PROFILES
attributes for local profiles and activity groups |
static java.lang.String |
AA_LOGONDATA_LTIME
|
static java.lang.String |
AA_PROFILES
global profiles and activity groups |
static java.lang.String |
AA_PROFILES_MAPNAME
|
static java.lang.String |
AA_PROFILES_SHADOW
|
static java.lang.String |
ACTIVITY_GROUP_FROM_DATE
|
static java.lang.String |
ACTIVITY_GROUP_NAME
|
static java.lang.String |
ACTIVITY_GROUP_TO_DATE
|
static java.lang.String |
code_id
|
static java.lang.String |
DISPLAY_PASSWORD
|
static java.lang.String |
DISPLAY_USER
|
protected boolean |
jcoTrace
|
static java.lang.String |
LOGIN_PASSWORD
|
static java.lang.String |
LOGIN_USER
Pass thru authentication variables. |
static java.lang.String |
RA_BAPI_RETRY_COUNT
|
static java.lang.String |
RA_CONNECT_RETRY_COUNT
|
static java.lang.String |
RA_CONNECT_RETRY_WAIT_TIME
|
static java.lang.String |
RA_FILTERED_ACCOUNTS
|
static java.lang.String |
RA_GATEWAY
|
static java.lang.String |
RA_GATEWAY_SERVICE
|
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_JCO_TRACE_LEVEL
|
static java.lang.String |
RA_JCO_TRACE_PATH
|
static java.lang.String |
RA_LANGUAGE
|
static java.lang.String |
RA_NUMBER_OF_CONNECTIONS
|
static java.lang.String |
RA_PASSWORD
|
static java.lang.String |
RA_RETURN_SAP_TEMP_PWD
|
static java.lang.String |
RA_SAP_CLIENT
|
static java.lang.String |
RA_SYSTEM_NUMBER
|
static java.lang.String |
RA_UPPER_CASE_PASSWORDS
|
static java.lang.String |
RA_USE_CUA
|
static java.lang.String |
RA_USE_SAP_TEMP_PWD
|
static java.lang.String |
RA_USER
The account name, password, and Language used to connect to the resource. |
static java.lang.String |
RA_USER_PWD_ON_CHG
|
static java.lang.String |
RESOURCE_LOGIN_MODULE
|
static java.lang.String |
RESOURCE_NAME
|
static java.lang.String |
RESOURCE_USER_FORM
|
protected static java.util.Collection |
SAP_TIMEZONES
|
protected com.sap.mw.jco.IRepository |
sapRepository
|
static java.lang.String |
TEMP_PASSWORD_RESULT
|
static java.lang.String |
WS_PASSWORD_EXPIRED
|
static java.lang.String |
WS_RESET_FAILED_LOGIN_COUNT
|
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 | |
SAPResourceAdapter()
|
|
SAPResourceAdapter(Resource res,
ObjectCache cache)
|
Method Summary | |
protected void |
addAttrIfMapped(WSUser user,
java.lang.String attrName,
java.lang.Object value)
Add the named attribute and value to the user. |
protected void |
addAttrIfMapped(WSUser user,
java.lang.String attrName,
java.lang.Object[] values)
|
WavesetResult |
authenticate(java.util.HashMap loginInfo)
Authenticates the user against the resource. |
protected java.lang.String |
booleanToString(boolean b)
Deprecated. for release 7.0 |
protected void |
callBAPIFunction(com.sap.mw.jco.JCO.Client serverConnection,
com.sap.mw.jco.JCO.Function function)
Deprecated. for release 7.0. use #callBAPIFunction(Function) . |
protected void |
callBAPIFunction(SAPResourceAdapter.Function function)
Makes the actual call to the SAP server. |
protected void |
changeUserPassword(WSUser user,
WavesetResult result)
Sets the user's password with a different BAPI call so that the password history and other password data (like "Password Last Changed Date") is set correctly. |
WavesetResult |
checkCreateAccount(WSUser user)
|
WavesetResult |
checkDeleteAccount(WSUser user)
|
protected boolean |
checkIfUserExists(WSUser user)
Check the SAP resource to see if the specified user exists. |
WavesetResult |
checkUpdateAccount(WSUser user)
|
protected void |
connect()
Connect to the SAP system via the SAP JCO library. |
protected void |
connect(boolean retry)
Connect to the SAP system via the SAP JCO library |
protected java.util.List |
convertAttrToList(WSAttribute attr)
|
protected com.sap.mw.jco.JCO.Function |
createFunction(java.lang.String functionName)
Deprecated. for release 7.0 |
protected com.sap.mw.jco.JCO.Function |
createFunction(java.lang.String functionName,
boolean retryConnectionOnFail)
Deprecated. for release 7.0 use Function(String,boolean) . |
Resource |
createPrototypeResource()
|
protected java.lang.String |
dateToString(java.util.Date d)
Deprecated. for release 7.0 use Util.dateToString(Date,String) . |
protected void |
disconnect()
|
protected int |
errorCheck(com.sap.mw.jco.JCO.Function function,
int noErrorNum,
WavesetResult result)
Deprecated. for release 7.0 |
protected void |
extractData(WSUser _newUser,
com.sap.mw.jco.JCO.Function _function,
java.lang.String structOrTable,
java.lang.String attributeName,
java.lang.String name)
Deprecated. for release 7.0 |
protected void |
extractData(WSUser _newUser,
SAPResourceAdapter.Function function,
java.lang.String structOrTable,
java.lang.String attributeName,
java.lang.String name)
|
AccountIterator |
getAccountIterator()
|
protected void |
getActivityGroups(WSUser user,
com.sap.mw.jco.JCO.Function _function,
WavesetResult result)
Deprecated. for release 7.0.use #getActivityGroups(WSUser, Function, WavesetResult) . |
protected void |
getActivityGroups(WSUser user,
SAPResourceAdapter.Function function,
WavesetResult result)
Get the activity groups assigned to this user. |
GenericObject |
getFeatures()
Expose features supported by the Resource Adapter. |
protected java.util.List |
getHelpValues(java.lang.String objName,
java.lang.String method,
java.lang.String parameter,
java.lang.String field,
WavesetResult result,
boolean throwException)
|
java.lang.String |
getIdentity(WSUser user)
Return the account id for the user, fetched from the resource info. |
protected int |
getIntRequiredResAttrVal(java.lang.String name)
|
protected void |
getLocalActivityGroupsAndCUASystems(WSUser user,
WavesetResult result)
Get the local activity groups assigned to this user. |
protected void |
getLocalProfiles(WSUser user,
WavesetResult result)
Get the local profiles assigned to this user. |
WSUser |
getUser(WSUser user)
Retrieves account information from the resource for the specified WSUser and returns a new WSUser based on the information from the resource. |
protected java.lang.String |
getUserPassword(WSUser user)
|
protected java.lang.String |
getWsAttrsString()
Deprecated. for release 7.0 - obsolete |
protected void |
init_internal()
|
protected void |
jcoErrorStructureCheck(com.sap.mw.jco.JCO.Function function,
WavesetResult result)
|
protected void |
jcoErrorStructureCheck(SAPResourceAdapter.Function function,
WavesetResult result)
|
protected void |
jcoErrorTableCheck(com.sap.mw.jco.JCO.ParameterList returnTableList,
WavesetResult result)
|
protected void |
jcoErrorTableCheck(SAPResourceAdapter.Function function,
WavesetResult result)
|
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. |
protected void |
maintainLocalActivityGroups(WSUser user,
java.util.List groups,
WavesetResult result)
Set the local activity groups using BAPI_USER_LOCACTGROUPS_ASSIGN. |
protected void |
maintainLocalProfiles(WSUser user,
java.util.List groups,
WavesetResult result)
Set the local activity groups using BAPI_USER_LOCPROFILES_ASSIGN. |
protected void |
maintainSapActivityGroups(WSUser user,
WavesetResult result)
Set the activity groups on the SAP user. |
protected void |
maintainSapProfiles(WSUser user,
WavesetResult result)
|
protected void |
realCreate(WSUser user,
WavesetResult result)
Needs to be overridden by subclass if default createAccounts() implementation is used. |
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 void |
resetFailedLoginCount(WSUser user,
WavesetResult result)
Unlocks an SAP user's account if the account was locked because the number of failed login attempts was exceeded. |
protected WSAttribute |
reverseMapAttr(java.lang.String attr,
java.lang.Object value)
Map from a resource attribute to a waveset attribute. |
protected WSAttribute |
reverseMapAttr(java.lang.String attr,
java.lang.Object[] values)
Map from a resource attribute to a waveset attribute. |
protected void |
reverseMapMultiAttr(java.lang.String attr,
java.lang.Object value,
WSUser user)
Map from a resource attribute to multiple waveset attributes and add them to the user. |
protected void |
sapSetValues(com.sap.mw.jco.JCO.Function _function,
java.lang.String structOrTable,
java.lang.String attributeName,
java.lang.String value,
boolean update)
Deprecated. for release 7.0 |
void |
setResource(Resource res)
|
protected void |
setupJCOTrace()
Sets the jcoTrace variable and initializes JCO variables to the appropriate trace level. |
protected void |
setUserField(com.sap.mw.jco.JCO.Function function,
java.lang.String identity)
Deprecated. for release 7.0 |
protected void |
startConnection()
Creates a connection to the SAP server. |
protected void |
startConnectionWrapper()
Needed so that test connection will not perform connection retries |
static Resource |
staticCreatePrototypeResource()
|
protected void |
stopConnection()
Needs to be overridden by subclass if default createAccounts() implementation is used. |
protected boolean |
stringToBoolean(java.lang.String s)
Deprecated. for release 7.0 |
protected java.util.Date |
stringToDate(java.lang.String s)
Deprecated. for release 7.0 use Util.stringToDate(String) . |
boolean |
supportsAccountDisable()
Indicates whether or not this resource supports account disable. |
protected void |
unexpirePassword(java.lang.String identity,
java.lang.String currentPassword,
java.lang.String newPassword,
WavesetResult result)
SAP passwords are expired in the default case. |
protected void |
unexpirePassword(java.lang.String identity,
WavesetResult result)
Deprecated. for release 7.0. use unexpirePassword(String,String,String,WavesetResult) . |
protected void |
unexpirePassword(WSUser user,
WavesetResult result)
Deprecated. fro release 7.0. use unexpirePassword(String,String,String,WavesetResult) . |
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 RA_HOST
public static final java.lang.String RA_SYSTEM_NUMBER
public static final java.lang.String RA_USER
public static final java.lang.String RA_PASSWORD
public static final java.lang.String RA_LANGUAGE
public static final java.lang.String RA_NUMBER_OF_CONNECTIONS
public static final java.lang.String RA_SAP_CLIENT
public static final java.lang.String RA_GATEWAY
public static final java.lang.String RA_GATEWAY_SERVICE
public static final java.lang.String RA_USE_CUA
public static final java.lang.String RA_FILTERED_ACCOUNTS
public static final java.lang.String RA_UPPER_CASE_PASSWORDS
public static final java.lang.String RA_USER_PWD_ON_CHG
public static final java.lang.String RA_USE_SAP_TEMP_PWD
public static final java.lang.String RA_RETURN_SAP_TEMP_PWD
public static final java.lang.String RA_JCO_TRACE_LEVEL
public static final java.lang.String RA_JCO_TRACE_PATH
public static final java.lang.String RA_BAPI_RETRY_COUNT
public static final java.lang.String RA_CONNECT_RETRY_COUNT
public static final java.lang.String RA_CONNECT_RETRY_WAIT_TIME
public static final java.lang.String LOGIN_USER
public static final java.lang.String LOGIN_PASSWORD
public static final java.lang.String DISPLAY_USER
public static final java.lang.String DISPLAY_PASSWORD
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String RESOURCE_USER_FORM
public static final java.lang.String RESOURCE_LOGIN_MODULE
public static final java.lang.String TEMP_PASSWORD_RESULT
public static final java.lang.String AA_LOCAL_PROFILES
public static final java.lang.String AA_LOCAL_ACTIVITYGROUPS
public static final java.lang.String AA_DIRECT_LOCAL_PROFILES
public static final java.lang.String AA_DIRECT_LOCAL_ACTIVITYGROUPS
public static final java.lang.String AA_PROFILES
public static final java.lang.String AA_PROFILES_MAPNAME
public static final java.lang.String AA_ACTIVITY_GROUPS
public static final java.lang.String AA_ACTIVITY_GROUPS_MAPNAME
public static final java.lang.String AA_ACTIVITY_GROUP_OBJECTS_MAPNAME
public static final java.lang.String ACTIVITY_GROUP_NAME
public static final java.lang.String ACTIVITY_GROUP_FROM_DATE
public static final java.lang.String ACTIVITY_GROUP_TO_DATE
public static final java.lang.String AA_BAPI_CUA_SYSTEMS
public static final java.lang.String AA_BAPI_CUA_SYSTEMS_MAPNAME
public static final java.lang.String AA_BAPI_CUA_SYSTEMS_SHADOW
public static final java.lang.String AA_ACTIVITY_GROUPS_SHADOW
public static final java.lang.String AA_PROFILES_SHADOW
public static final java.lang.String AA_DIRECT_ACTIVITY_GROUPS_SHADOW
public static final java.lang.String AA_DIRECT_PROFILES_SHADOW
public static final java.lang.String AA_LOGONDATA_LTIME
public static final java.lang.String WS_PASSWORD_EXPIRED
public static final java.lang.String WS_RESET_FAILED_LOGIN_COUNT
protected java.util.Set _filteredAccounts
protected com.sap.mw.jco.JCO.Client _serverConnection
protected java.lang.String _poolKey
protected com.sap.mw.jco.IRepository sapRepository
protected int _traceLevel
protected static final java.util.Collection SAP_TIMEZONES
protected boolean jcoTrace
Constructor Detail |
public SAPResourceAdapter(Resource res, ObjectCache cache)
public SAPResourceAdapter()
Method Detail |
public void setResource(Resource res)
setResource
in interface ResourceAdapter
setResource
in class ResourceAdapterBase
protected void init_internal()
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class ResourceAdapterBase
WavesetException
public GenericObject getFeatures()
getFeatures
in interface ResourceAdapter
getFeatures
in class ResourceAdapterBase
ResourceAdapter.Features
protected WSAttribute reverseMapAttr(java.lang.String attr, java.lang.Object[] values)
protected WSAttribute reverseMapAttr(java.lang.String attr, java.lang.Object value)
protected void reverseMapMultiAttr(java.lang.String attr, java.lang.Object value, WSUser user)
protected int getIntRequiredResAttrVal(java.lang.String name) throws WavesetException, java.lang.NumberFormatException
WavesetException
java.lang.NumberFormatException
protected void addAttrIfMapped(WSUser user, java.lang.String attrName, java.lang.Object value) throws WavesetException
WavesetException
protected void addAttrIfMapped(WSUser user, java.lang.String attrName, java.lang.Object[] values)
protected java.lang.String getUserPassword(WSUser user)
public java.lang.String getIdentity(WSUser user) throws WavesetException
ResourceAdapterBase
getIdentity
in class ResourceAdapterBase
WavesetException
protected void setUserField(com.sap.mw.jco.JCO.Function function, java.lang.String identity)
function
- - the JCO.Function object to set the USERNAMEidentity
- - the value to set for USERNAME.
protected boolean checkIfUserExists(WSUser user) throws WavesetException
user
- - the user in question
WavesetException
protected boolean stringToBoolean(java.lang.String s)
protected java.lang.String booleanToString(boolean b)
protected java.util.Date stringToDate(java.lang.String s) throws WavesetException
Util.stringToDate(String)
.
WavesetException
protected java.lang.String dateToString(java.util.Date d) throws WavesetException
Util.dateToString(Date,String)
.
WavesetException
protected void startConnectionWrapper() throws WavesetException
startConnectionWrapper
in class ResourceAdapterBase
WavesetException
protected void startConnection() throws WavesetException
startConnection
in class ResourceAdapterBase
WavesetException
protected void connect() throws WavesetException
WavesetException
protected void connect(boolean retry) throws WavesetException
retry
- perform connection retries
WavesetException
protected void stopConnection() throws WavesetException
stopConnection
in class ResourceAdapterBase
WavesetException
protected void disconnect()
public WavesetResult authenticate(java.util.HashMap loginInfo) throws WavesetException
authenticate
in interface ResourceAdapter
authenticate
in class ResourceAdapterBase
WavesetException
public WavesetResult checkDeleteAccount(WSUser user) throws WavesetException
checkDeleteAccount
in interface ResourceAdapter
checkDeleteAccount
in class ResourceAdapterBase
WavesetException
public WavesetResult checkUpdateAccount(WSUser user) throws WavesetException
checkUpdateAccount
in interface ResourceAdapter
checkUpdateAccount
in class ResourceAdapterBase
WavesetException
public WavesetResult checkCreateAccount(WSUser user) throws WavesetException
checkCreateAccount
in interface ResourceAdapter
checkCreateAccount
in class ResourceAdapterBase
WavesetException
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
protected void realDelete(WSUser user, WavesetResult result) throws WavesetException
ResourceAdapterBase
realDelete
in class ResourceAdapterBase
WavesetException
public WSUser getUser(WSUser user) throws WavesetException
ResourceAdapter
getUser
in interface ResourceAdapter
getUser
in class ResourceAdapterBase
WavesetException
protected java.lang.String getWsAttrsString()
protected void sapSetValues(com.sap.mw.jco.JCO.Function _function, java.lang.String structOrTable, java.lang.String attributeName, java.lang.String value, boolean update) throws WavesetException
WavesetException
protected void extractData(WSUser _newUser, com.sap.mw.jco.JCO.Function _function, java.lang.String structOrTable, java.lang.String attributeName, java.lang.String name) throws WavesetException
WavesetException
protected void extractData(WSUser _newUser, SAPResourceAdapter.Function function, java.lang.String structOrTable, java.lang.String attributeName, java.lang.String name) throws WavesetException
WavesetException
protected void callBAPIFunction(com.sap.mw.jco.JCO.Client serverConnection, com.sap.mw.jco.JCO.Function function)
#callBAPIFunction(Function)
.
serverConnection
- - the JCO Client to usefunction
- - the JCO.Function to call.protected void callBAPIFunction(SAPResourceAdapter.Function function) throws com.sap.mw.jco.JCO.Exception
com.sap.mw.jco.JCO.Exception
protected WSUser realGetUser(WSUser user) throws WavesetException
WavesetException
protected void realCreate(WSUser user, WavesetResult result) throws WavesetException
ResourceAdapterBase
realCreate
in class ResourceAdapterBase
WavesetException
protected void realUpdate(WSUser user, WavesetResult result) throws WavesetException
ResourceAdapterBase
realUpdate
in class ResourceAdapterBase
WavesetException
public boolean supportsAccountDisable()
ResourceAdapter
supportsAccountDisable
in interface ResourceAdapter
supportsAccountDisable
in class ResourceAdapterBase
protected int errorCheck(com.sap.mw.jco.JCO.Function function, int noErrorNum, WavesetResult result) throws WavesetException
WavesetException
protected void jcoErrorTableCheck(SAPResourceAdapter.Function function, WavesetResult result) throws WavesetException
WavesetException
protected void jcoErrorTableCheck(com.sap.mw.jco.JCO.ParameterList returnTableList, WavesetResult result) throws WavesetException
returnTableList
- result
-
WavesetException
protected void jcoErrorStructureCheck(SAPResourceAdapter.Function function, WavesetResult result) throws WavesetException
WavesetException
protected void jcoErrorStructureCheck(com.sap.mw.jco.JCO.Function function, WavesetResult result) throws WavesetException
function
- result
-
WavesetException
protected void maintainSapProfiles(WSUser user, WavesetResult result) throws WavesetException
WavesetException
protected void unexpirePassword(WSUser user, WavesetResult result) throws WavesetException
unexpirePassword(String,String,String,WavesetResult)
.
WavesetException
protected void unexpirePassword(java.lang.String identity, WavesetResult result) throws WavesetException
unexpirePassword(String,String,String,WavesetResult)
.
WavesetException
protected void unexpirePassword(java.lang.String identity, java.lang.String currentPassword, java.lang.String newPassword, WavesetResult result) throws WavesetException
WavesetException
protected void resetFailedLoginCount(WSUser user, WavesetResult result) throws WavesetException
WavesetException
protected java.util.List getHelpValues(java.lang.String objName, java.lang.String method, java.lang.String parameter, java.lang.String field, WavesetResult result, boolean throwException) throws WavesetException
WavesetException
protected void maintainLocalActivityGroups(WSUser user, java.util.List groups, WavesetResult result) throws WavesetException
user
- -
user to get attributes fromgroups
- -
a List of String of the format system:groupnameresult
- -
a result to add errors and messages to
WavesetException
protected void maintainLocalProfiles(WSUser user, java.util.List groups, WavesetResult result) throws WavesetException
user
- -
user to get attributes fromgroups
- -
a List of String of the format system:profileNameresult
- -
a result to add errors and messages to
WavesetException
protected void getActivityGroups(WSUser user, com.sap.mw.jco.JCO.Function _function, WavesetResult result) throws WavesetException
#getActivityGroups(WSUser, Function, WavesetResult)
.
WavesetException
protected void getActivityGroups(WSUser user, SAPResourceAdapter.Function function, WavesetResult result) throws WavesetException
WavesetException
protected void getLocalActivityGroupsAndCUASystems(WSUser user, WavesetResult result) throws WavesetException
WavesetException
protected void getLocalProfiles(WSUser user, WavesetResult result) throws WavesetException
WavesetException
protected void maintainSapActivityGroups(WSUser user, WavesetResult result) throws WavesetException
WavesetException
public AccountIterator getAccountIterator() throws WavesetException
getAccountIterator
in interface ResourceAdapter
getAccountIterator
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(ObjectType.ACCOUNT, null, null, null)
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
protected java.util.List convertAttrToList(WSAttribute attr)
protected void changeUserPassword(WSUser user, WavesetResult result) throws WavesetException
user
- - the target Waveset userresult
- - Waveset result
WavesetException
protected void setupJCOTrace()
protected com.sap.mw.jco.JCO.Function createFunction(java.lang.String functionName) throws WavesetException
functionName
- - the BAPI name
WavesetException
protected com.sap.mw.jco.JCO.Function createFunction(java.lang.String functionName, boolean retryConnectionOnFail) throws WavesetException
Function(String,boolean)
.
functionName
- - the BAPI nameretryConnectionOnFail
- - if true, reset the connection and
try to create the function again.
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |