|
||||||||||
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.SAPPortalResourceAdapter
Nested Class Summary | |
class |
SAPPortalResourceAdapter.AcctIter
|
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 |
LOGIN_PASSWORD
|
static java.lang.String |
LOGIN_USER
|
protected java.lang.String |
method
|
static java.lang.String |
RA_ADMIN
|
static java.lang.String |
RA_PASSWORD
|
static java.lang.String |
RA_SERVICE_ENDPOINT
Resource attribute names |
protected org.apache.soap.encoding.SOAPMappingRegistry |
smr
SOAP-related members |
protected java.lang.String |
targetURI
|
Fields inherited from class com.waveset.adapter.ResourceAdapterBase |
_cache, _context, _excludedAccountsRule, _excludedAccountsRuleInited, _listAllObjectsAttrParse, _listAllObjectsAttrParseName, _listUserAttrParse, _listUserAttrParseName, _listUserGroupsAttrParse, _listUserGroupsAttrParseName, _resource, _thread, _trace, code_id, displayInfoCode, RA_BLOCKCOUNT, RA_LOGIN_ACTION, RA_LOGOFF_ACTION, RA_MULTI_VALUED_ATTRS, RA_TEST_MODE |
Constructor Summary | |
SAPPortalResourceAdapter()
|
|
SAPPortalResourceAdapter(Resource res,
ObjectCache cache)
|
Method Summary | |
WavesetResult |
authenticate(java.util.HashMap loginInfo)
Authenticates the user against the resource. |
WavesetResult |
checkCreateAccount(WSUser user)
|
WavesetResult |
checkDeleteAccount(WSUser user)
|
WavesetResult |
checkUpdateAccount(WSUser user)
|
protected org.apache.soap.rpc.Call |
createCall()
|
protected void |
createGroup(java.lang.String objectId,
GenericObject attributes,
java.util.Map options,
WavesetResult wavesetResult)
|
WavesetResult |
createObject(GenericObject object,
java.util.Map options)
Creates the specified objectId of type objectType using the list of attributes provided. |
Resource |
createPrototypeResource()
|
protected void |
createRole(java.lang.String objectId,
GenericObject attributes,
java.util.Map options,
WavesetResult wavesetResult)
|
protected org.openspml.message.StatusRequest |
createTestRequest()
|
protected void |
deleteGroup(java.lang.String objectId,
WavesetResult wavesetResult)
|
WavesetResult |
deleteObject(GenericObject object,
java.util.Map options)
Deletes the requested objectId of the requested objectType from the resource. |
protected WavesetResult |
doCreateOrUpdateObjectRequest(java.lang.String objectType,
java.lang.String objectId,
GenericObject attributes,
java.util.Map options,
java.lang.String cmd)
|
AccountIterator |
getAccountIterator()
|
protected java.util.List |
getExtendedErrorMessages(org.openspml.message.SpmlResponse resp)
Return a List of Message from the SmplResponse extended errors |
GenericObject |
getFeatures()
Expose features supported by the Resource Adapter. |
protected java.util.ArrayList |
getGroupIds(java.util.Map options,
java.lang.String runAsUser,
EncryptedData runAsPassword)
|
protected java.util.List |
getGroups(org.openspml.message.Identifier identifier,
java.util.Map options)
|
GenericObject |
getObject(java.lang.String objectType,
java.lang.String objectId,
java.util.List attrsToGet,
java.util.Map options)
Returns the requested objectId of the requested objectType from the resource |
protected java.util.ArrayList |
getRoleIds(java.util.Map options,
java.lang.String runAsUser,
EncryptedData runAsPassword)
|
protected java.util.List |
getRoles(org.openspml.message.Identifier identifier,
java.util.Map options)
|
WSUser |
getUser(WSUser userIn)
Retrieves account information from the resource for the specified WSUser and returns a new WSUser based on the information from the resource. |
protected java.util.ArrayList |
getUserIds(java.util.Map options,
java.lang.String runAsUser,
EncryptedData runAsPassword)
|
protected java.util.List |
getUsers(java.util.Map options)
|
protected void |
init_internal()
Initialize SOAP-related members |
java.util.ArrayList |
listAllObjects(java.lang.String objectType,
java.util.Map options,
java.lang.String runAsUser,
EncryptedData runAsPassword)
This method will return a list of object names of the specified object type. |
java.util.List |
listObjects(java.lang.String objectType,
java.util.Map options)
Default implementation calls older method listAllObjects(String, Map, String, EncryptedData) , which
does not support newer options (such as "searchContext" or
"searchFilter"). |
protected void |
lockAccount(boolean lockVal,
WSUser user,
WavesetResult wavesetResult)
|
protected WSAttributes |
mapSAPAttributes(java.util.Map sapAttrs)
|
protected void |
realCreate(WSUser user,
WavesetResult wavesetResult)
Needs to be overridden by subclass if default createAccounts() implementation is used. |
protected void |
realDelete(WSUser user,
WavesetResult wavesetResult)
Needs to be overridden by subclass if default deleteAccounts() implementation is used. |
protected void |
realDisable(WSUser user,
WavesetResult result)
|
protected void |
realEnable(WSUser user,
WavesetResult result)
|
protected void |
realUpdate(WSUser user,
WavesetResult wavesetResult)
Needs to be overridden by subclass if default updateAccounts() implementation is used. |
protected void |
send(org.openspml.message.SpmlRequest req,
WavesetResult wavesetResult)
|
void |
setResource(Resource res)
|
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. |
WavesetResult |
testConfiguration()
Default implementation of test method, calls check create. |
protected void |
traceResultErrors(WavesetResult res,
long level,
java.lang.String className,
java.lang.String method)
Trace all the errors in the WavesetResult |
protected void |
traceSpmlResponseErrors(org.openspml.message.SpmlResponse resp,
long level,
java.lang.String className,
java.lang.String method)
|
protected void |
updateGroup(java.lang.String objectId,
GenericObject attributes,
WavesetResult wavesetResult)
|
WavesetResult |
updateObject(GenericObject object,
java.util.Map options)
Updates the specified objectId of type objectType using the list of attributes provided. |
protected void |
updateRole(java.lang.String objectId,
GenericObject attributes,
WavesetResult wavesetResult)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.soap.encoding.SOAPMappingRegistry smr
protected java.lang.String targetURI
protected java.lang.String method
public static final java.lang.String RA_SERVICE_ENDPOINT
public static final java.lang.String RA_ADMIN
public static final java.lang.String RA_PASSWORD
public static final java.lang.String LOGIN_USER
public static final java.lang.String LOGIN_PASSWORD
Constructor Detail |
public SAPPortalResourceAdapter()
public SAPPortalResourceAdapter(Resource res, ObjectCache cache)
Method Detail |
public void setResource(Resource res)
setResource
in interface ResourceAdapter
setResource
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()
getFeatures
in interface ResourceAdapter
getFeatures
in class ResourceAdapterBase
ResourceAdapter.Features
protected void init_internal()
public WSUser getUser(WSUser userIn) throws WavesetException
ResourceAdapter
getUser
in interface ResourceAdapter
getUser
in class ResourceAdapterBase
WavesetException
protected void realCreate(WSUser user, WavesetResult wavesetResult) throws WavesetException
ResourceAdapterBase
realCreate
in class ResourceAdapterBase
WavesetException
protected void realDelete(WSUser user, WavesetResult wavesetResult) throws WavesetException
ResourceAdapterBase
realDelete
in class ResourceAdapterBase
WavesetException
protected void realUpdate(WSUser user, WavesetResult wavesetResult) throws WavesetException
ResourceAdapterBase
realUpdate
in class ResourceAdapterBase
WavesetException
public WavesetResult createObject(GenericObject object, java.util.Map options) throws WavesetException
ResourceAdapterBase
createObject
in interface ResourceAdapter
createObject
in class ResourceAdapterBase
object
- - a GenericObject containing the objectType, objectId, and
list of attributes to be set on the new objectoptions
- -
several options can be specified which control the behavior of
the search for referenced objects (e.g. group members) They
include:
WavesetException
protected WavesetResult doCreateOrUpdateObjectRequest(java.lang.String objectType, java.lang.String objectId, GenericObject attributes, java.util.Map options, java.lang.String cmd) throws WavesetException
WavesetException
public WavesetResult deleteObject(GenericObject object, java.util.Map options) throws WavesetException
ResourceAdapterBase
deleteObject
in interface ResourceAdapter
deleteObject
in class ResourceAdapterBase
options
- -
not currently used because the objectId and objectType
parameters uniquely identify the object to delete.
WavesetException
protected void createGroup(java.lang.String objectId, GenericObject attributes, java.util.Map options, WavesetResult wavesetResult) throws WavesetException
WavesetException
protected void deleteGroup(java.lang.String objectId, WavesetResult wavesetResult) throws WavesetException
WavesetException
protected void createRole(java.lang.String objectId, GenericObject attributes, java.util.Map options, WavesetResult wavesetResult) throws WavesetException
WavesetException
public GenericObject getObject(java.lang.String objectType, java.lang.String objectId, java.util.List attrsToGet, java.util.Map options) throws WavesetException
ResourceAdapterBase
getObject
in interface ResourceAdapter
getObject
in class ResourceAdapterBase
objectType
- - a valid object type defined in the resource's
objectId
- -
a valid fully qualified object identifier on this resource
(e.g. "dn")attrsToGet
- -
a list of attribute names supported by the specified
objectType to be returned with the objectoptions
- -
not currently used since the objectId/objectType provide a
unique identifier of the object being requested
WavesetException
public WavesetResult updateObject(GenericObject object, java.util.Map options) throws WavesetException
ResourceAdapterBase
updateObject
in interface ResourceAdapter
updateObject
in class ResourceAdapterBase
object
- - a GenericObject containing the objectType, objectId, and
list of new and changed attributes to be set on the objectoptions
- -
several options can be specified which control the behavior of
the search for referenced objects (e.g. group members) They
include:
WavesetException
public java.util.List listObjects(java.lang.String objectType, java.util.Map options) throws WavesetException
ResourceAdapterBase
ResourceAdapterBase.listAllObjects(String, Map, String, EncryptedData)
, which
does not support newer options (such as "searchContext" or
"searchFilter").
Each ResourceAdapter subclass should override this default implementation as soon as possible with an implementation that supports the options specified in {#listObjects(ObjectType, Map)}.
listObjects
in interface ResourceAdapter
listObjects
in class ResourceAdapterBase
WavesetException
public java.util.ArrayList listAllObjects(java.lang.String objectType, java.util.Map options, java.lang.String runAsUser, EncryptedData runAsPassword) throws WavesetException
ResourceAdapter
listAllObjects
in interface ResourceAdapter
listAllObjects
in class ResourceAdapterBase
objectType
- -
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
public boolean supportsAccountDisable()
ResourceAdapter
supportsAccountDisable
in interface ResourceAdapter
supportsAccountDisable
in class ResourceAdapterBase
protected void realDisable(WSUser user, WavesetResult result) throws WavesetException
realDisable
in class ResourceAdapterBase
WavesetException
protected void realEnable(WSUser user, WavesetResult result) throws WavesetException
realEnable
in class ResourceAdapterBase
WavesetException
protected void lockAccount(boolean lockVal, WSUser user, WavesetResult wavesetResult) throws WavesetException
WavesetException
protected java.util.ArrayList getUserIds(java.util.Map options, java.lang.String runAsUser, EncryptedData runAsPassword) throws WavesetException
WavesetException
protected java.util.ArrayList getGroupIds(java.util.Map options, java.lang.String runAsUser, EncryptedData runAsPassword)
protected java.util.ArrayList getRoleIds(java.util.Map options, java.lang.String runAsUser, EncryptedData runAsPassword)
protected java.util.List getGroups(org.openspml.message.Identifier identifier, java.util.Map options) throws WavesetException
WavesetException
protected void updateGroup(java.lang.String objectId, GenericObject attributes, WavesetResult wavesetResult) throws WavesetException
WavesetException
protected void updateRole(java.lang.String objectId, GenericObject attributes, WavesetResult wavesetResult) throws WavesetException
WavesetException
protected java.util.List getRoles(org.openspml.message.Identifier identifier, java.util.Map options) throws WavesetException
WavesetException
protected java.util.List getUsers(java.util.Map options) throws WavesetException
WavesetException
protected void startConnection() throws WavesetException
ResourceAdapterBase
startConnection
in class ResourceAdapterBase
WavesetException
protected void stopConnection() throws WavesetException
ResourceAdapterBase
stopConnection
in class ResourceAdapterBase
WavesetException
public WavesetResult testConfiguration() throws WavesetException
ResourceAdapterBase
testConfiguration
in interface ResourceAdapter
testConfiguration
in class ResourceAdapterBase
WavesetException
public WavesetResult authenticate(java.util.HashMap loginInfo) throws WavesetException
ResourceAdapter
authenticate
in interface ResourceAdapter
authenticate
in class ResourceAdapterBase
WavesetException
public WavesetResult checkCreateAccount(WSUser user) throws WavesetException
checkCreateAccount
in interface ResourceAdapter
checkCreateAccount
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
protected org.openspml.message.StatusRequest createTestRequest()
protected void send(org.openspml.message.SpmlRequest req, WavesetResult wavesetResult)
protected org.apache.soap.rpc.Call createCall() throws WavesetException
WavesetException
protected WSAttributes mapSAPAttributes(java.util.Map sapAttrs) throws WavesetException
WavesetException
public AccountIterator getAccountIterator() throws WavesetException
getAccountIterator
in interface ResourceAdapter
getAccountIterator
in class ResourceAdapterBase
WavesetException
protected void traceResultErrors(WavesetResult res, long level, java.lang.String className, java.lang.String method)
res
- className
- method
- protected void traceSpmlResponseErrors(org.openspml.message.SpmlResponse resp, long level, java.lang.String className, java.lang.String method)
protected java.util.List getExtendedErrorMessages(org.openspml.message.SpmlResponse resp)
resp
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |