|
||||||||||
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.PeopleSoftCompIntfcAdapter
Description: The PeopleSoft component interface Resource adapter. This adapter is used to read/write to PeopleSoft component interfaces. The Configuration object "PeopleSoft Component Interfaces" contains the component interface map. Each entry in the map is a component interface definition used as the metadata about the real component interface on PeopleSoft. Resource object types are currently minimally supported (listAllObjects and listObjects). Notice that the 'target' attribute of the ObjectFeature element is interpreted as the name of the component interface (from the component interface map) to use for the feature. If you want active sync capabilities, look at PeopleSoftComponentActiveSyncAdapter. If you want both active sync and read/write to component interfaces, create two (or more) adapters, PeopleSoftComponentActiveSyncAdapter for active sync and one instance of PeopleSoftCompIntfcAdapter for each component interface that you want to manage.
Nested Class Summary | |
static class |
PeopleSoftCompIntfcAdapter.JOAInvocationHandler
An invocation handler for a dynamic proxy around an IObject which performs verbose tracing before and after the IObject invocation. |
static class |
PeopleSoftCompIntfcAdapter.SearchLevel
SearchLevel is used to heirarchically produce find search strings which allow you to a narrow down to a small set of results. |
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 psft.pt8.joa.ISession |
_connection
Our connection to PeopleSoft. |
static java.lang.String |
code_id
|
static java.lang.String |
RA_DELETE_COMPONENT_INTF
|
static java.lang.String |
RA_HOST
The name of the host used to communicate with the resource. |
static java.lang.String |
RA_MAX_PS_LIST_ITEMS
|
static java.lang.String |
RA_PASSWORD
The password to connect to the resource. |
static java.lang.String |
RA_PORT
The port on which to communicate to the resource. |
static java.lang.String |
RA_READWRITE_COMPONENT_INTF
The component interface, for 8.x servers |
static java.lang.String |
RA_USER
The account name to connect to the resource. |
static java.lang.String |
RESOURCE_NAME
|
static java.lang.String |
RESOURCE_USER_FORM
|
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 | |
PeopleSoftCompIntfcAdapter()
|
|
PeopleSoftCompIntfcAdapter(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)
|
Resource |
createPrototypeResource()
|
protected void |
errorHandler(WavesetResult result)
|
protected boolean |
getAccountLocked(psft.pt8.joa.IObject fetchedUser)
|
protected GenericObject |
getCompIntfcMap()
|
protected psft.pt8.joa.IObject |
getComponentInterface(java.lang.String componentIntfcName)
|
GenericObject |
getFeatures()
Expose features supported by the Resource Adapter. |
protected psft.pt8.joa.ISession |
getSession()
|
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 WSUser |
getUserInternal(java.lang.String identity)
|
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. |
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 WSUser |
makeWavesetUser(psft.pt8.joa.IObject fetchedUser,
java.lang.String keyAttrName)
Make a waveset user from a fetched component interface, mapping all available fields from the schema map. |
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. |
protected void |
realDisable(WSUser user,
WavesetResult result)
|
protected void |
realEnable(WSUser user,
WavesetResult result)
|
protected void |
realUpdate(WSUser user,
WavesetResult result)
Needs to be overridden by subclass if default updateAccounts() implementation is used. |
protected void |
setAccountLocked(WSUser user,
boolean locked,
WavesetResult result)
|
protected void |
setCIFromWSUSer(WSUser user,
psft.pt8.joa.IObject userObj,
java.lang.String updateType,
WavesetResult result)
|
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()
If true, must implement realDisable() and realEnable(). |
boolean |
supportsExcludedAccounts()
|
WavesetResult |
testConfiguration()
Method called when the "test connection" button of menu item is hit on the adapter. |
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_PORT
public static final java.lang.String RA_USER
public static final java.lang.String RA_PASSWORD
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String RESOURCE_USER_FORM
public static final java.lang.String RA_MAX_PS_LIST_ITEMS
public static final java.lang.String RA_READWRITE_COMPONENT_INTF
public static final java.lang.String RA_DELETE_COMPONENT_INTF
protected psft.pt8.joa.ISession _connection
Constructor Detail |
public PeopleSoftCompIntfcAdapter(Resource res, ObjectCache cache)
public PeopleSoftCompIntfcAdapter()
Method Detail |
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
public WSUser getUser(WSUser user) throws WavesetException
ResourceAdapter
getUser
in interface ResourceAdapter
getUser
in class ResourceAdapterBase
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
protected void realDelete(WSUser user, WavesetResult result) throws WavesetException
ResourceAdapterBase
realDelete
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 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 boolean supportsAccountDisable()
supportsAccountDisable
in interface ResourceAdapter
supportsAccountDisable
in class ResourceAdapterBase
public boolean supportsExcludedAccounts()
supportsExcludedAccounts
in interface ResourceAdapter
supportsExcludedAccounts
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
public WavesetResult testConfiguration() throws WavesetException
testConfiguration
in interface ResourceAdapter
testConfiguration
in class ResourceAdapterBase
WavesetException
public WavesetResult checkCreateAccount(WSUser user) throws WavesetException
checkCreateAccount
in interface ResourceAdapter
checkCreateAccount
in class ResourceAdapterBase
WavesetException
public WavesetResult checkUpdateAccount(WSUser user) throws WavesetException
checkUpdateAccount
in interface ResourceAdapter
checkUpdateAccount
in class ResourceAdapterBase
WavesetException
public WavesetResult checkDeleteAccount(WSUser user) throws WavesetException
checkDeleteAccount
in interface ResourceAdapter
checkDeleteAccount
in class ResourceAdapterBase
WavesetException
public WavesetResult authenticate(java.util.HashMap loginInfo) throws WavesetException
ResourceAdapter
authenticate
in interface ResourceAdapter
authenticate
in class ResourceAdapterBase
WavesetException
protected WSUser getUserInternal(java.lang.String identity) throws WavesetException
WavesetException
protected void setAccountLocked(WSUser user, boolean locked, WavesetResult result) throws WavesetException
WavesetException
protected boolean getAccountLocked(psft.pt8.joa.IObject fetchedUser) throws WavesetException
WavesetException
protected GenericObject getCompIntfcMap() throws WavesetException
WavesetException
protected WSUser makeWavesetUser(psft.pt8.joa.IObject fetchedUser, java.lang.String keyAttrName) throws psft.pt8.joa.JOAException, WavesetException
psft.pt8.joa.JOAException
WavesetException
protected void setCIFromWSUSer(WSUser user, psft.pt8.joa.IObject userObj, java.lang.String updateType, WavesetResult result) throws WavesetException
user
- updateType
- "create" or "update"result
-
WavesetException
protected void errorHandler(WavesetResult result)
protected psft.pt8.joa.IObject getComponentInterface(java.lang.String componentIntfcName)
protected psft.pt8.joa.ISession getSession()
protected void startConnection() throws WavesetException
ResourceAdapterBase
startConnection
in class ResourceAdapterBase
WavesetException
protected void stopConnection()
ResourceAdapterBase
stopConnection
in class ResourceAdapterBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |