|
||||||||||
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.PeopleSoftComponentResourceAdapterBase
com.waveset.adapter.PeopleSoftComponentActiveSyncAdapter
The ActiveSync adapter for PeopleSoft. The basic model is to poll a table of Audit data that is changes to personnel data. Use rows from that to read the updated user data. The audit data rows can either then be deleted or we can just search from the last row received. This assumes that setup has been done on the PeopleSoft side to add search records for user and audit data, and that audit is turned on for the PERSONAL_DATA, JOB, and EMPLOYMENT records.
Nested Class Summary | |
protected class |
PeopleSoftComponentActiveSyncAdapter.AcctIter
AccountIterator implementation that can be built by construction from the output of mast smc |
static interface |
PeopleSoftComponentActiveSyncAdapter.ObjectType
|
static class |
PeopleSoftComponentActiveSyncAdapter.UpdateRowComparator
Internal class that implements the Comparator interface for sorting the UpdateRow elements in a list by a named attribute |
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 | |
static java.lang.String |
code_id
|
protected static java.lang.String |
DEFAULT_AUDIT_STAMP_FORMAT
Deprecated. - for legacy component interface |
protected static java.lang.String |
DEFAULT_AUDIT_STAMP_START_DATE
Deprecated. - for legacy component interface |
static java.lang.String |
PS_EMPLID
|
static java.lang.String |
RA_AUDIT_COMPONENT_INTF
The component interface, for 8.x servers |
static java.lang.String |
RA_AUDIT_LEGACY_GET_UPDATE_ROWS
|
static java.lang.String |
RA_AUDIT_PROC_ORDER_WIDTH
|
static java.lang.String |
RA_AUDIT_STAMP_FORMAT
Deprecated. - for legacy component interface |
static java.lang.String |
RA_EMPLOYEE_COMPONENT_INTF
|
static java.lang.String |
RA_MAX_PS_LIST_ITEMS
|
static java.lang.String |
RA_USER_COMPONENT_INTF
|
Fields inherited from class com.waveset.adapter.PeopleSoftComponentResourceAdapterBase |
_connection, DISPLAY_PASSWORD, DISPLAY_USER, LOGIN_PASSWORD, LOGIN_USER, RA_HOST, RA_PASSWORD, RA_PORT, RA_USER, RESOURCE_NAME, 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 | |
PeopleSoftComponentActiveSyncAdapter()
|
|
PeopleSoftComponentActiveSyncAdapter(Resource res,
ObjectCache cache)
|
Method Summary | |
protected com.waveset.adapter.iapi.IAPI |
buildEvent(com.waveset.adapter.PeopleSoftComponentActiveSyncAdapter.UpdateRow row)
Give a Map, go get the PeopleSoft user associated with the event (this is a notification of change to a record, we then fetch the record to get all of the user attributes). |
void |
callCompleted(com.waveset.adapter.iapi.IAPI call)
An call generated by this resource adapter has completed. |
WavesetResult |
createAccounts(WSUser[] users)
Override all the XXXXXAccounts() methods so that they do not call startConnectionWrapper()/stopConnection(), since this adapter does not support provisioning. |
Resource |
createPrototypeResource()
|
WavesetResult |
deleteAccounts(WSUser[] users)
|
WavesetResult |
disableAccounts(WSUser[] users)
|
WavesetResult |
enableAccounts(WSUser[] users)
|
WSAttributes |
getAccountAttributes(java.lang.String accountIdentity)
This method is obsolete. |
AccountIterator |
getAccountIterator()
|
java.lang.Object |
getAttributeValue(java.lang.String name)
Get or set an attribute value for the ActiveSync. |
protected psft.pt8.joa.IObject |
getAuditComponentInterface(psft.pt8.joa.ISession oSession)
|
protected psft.pt8.joa.IObject |
getEmployeeComponentInterface(psft.pt8.joa.ISession oSession)
|
protected java.lang.StringBuffer |
getLastError()
|
WSUser |
getUser(WSUser user)
Retrieve information about an account, and package it as a WSUser object. |
protected WSUser |
getUserInternal(java.lang.String identity)
Get a peoplesoft employee record with EMPLID matching identity and EMPL_RCD matching the log entry |
protected WSUser |
getUserInternal(java.lang.String identity,
java.lang.String empl_rcd)
|
void |
init()
initialize yourself. |
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 |
logString(int level,
java.lang.String update)
|
protected void |
logUpdate(int level,
com.waveset.adapter.PeopleSoftComponentActiveSyncAdapter.UpdateRow update,
WavesetResult result)
Log whatever we want to from an update. |
int |
poll()
the poll method. |
protected void |
processUpdates(com.waveset.adapter.iapi.IAPI prox,
java.util.List list)
Take a list of Maps that are rows of the audit data and turn them into IAPI calls. |
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 |
realDelete(WSUser user,
WavesetResult result)
Needs to be overridden by subclass if default deleteAccounts() implementation is used. |
protected void |
realDisable(WSUser user,
WavesetResult result)
Disables a user, called within a connected context. |
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. |
void |
setAttributeValue(java.lang.String name,
java.lang.Object value)
|
void |
shutdown()
shutdown |
static Resource |
staticCreatePrototypeResource()
|
boolean |
supportsAccountDisable()
If true, must implement realDisable() and realEnable(). |
protected WavesetResult |
testComponentInterface()
|
WavesetResult |
updateAccounts(WSUser[] users)
|
protected boolean |
useLegacyEventGeneration()
|
protected boolean |
useLegacyGetUpdateRows()
|
Methods inherited from class com.waveset.adapter.PeopleSoftComponentResourceAdapterBase |
authenticate, checkCreateAccount, checkDeleteAccount, checkUpdateAccount, connect, disconnect, makeWavesetUser, startConnection, stopConnection, testConfiguration |
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_AUDIT_COMPONENT_INTF
public static final java.lang.String RA_USER_COMPONENT_INTF
public static final java.lang.String RA_EMPLOYEE_COMPONENT_INTF
public static final java.lang.String RA_AUDIT_LEGACY_GET_UPDATE_ROWS
public static final java.lang.String RA_AUDIT_PROC_ORDER_WIDTH
public static final java.lang.String PS_EMPLID
public static final java.lang.String RA_AUDIT_STAMP_FORMAT
public static final java.lang.String RA_MAX_PS_LIST_ITEMS
protected static final java.lang.String DEFAULT_AUDIT_STAMP_FORMAT
protected static final java.lang.String DEFAULT_AUDIT_STAMP_START_DATE
Constructor Detail |
public PeopleSoftComponentActiveSyncAdapter(Resource res, ObjectCache cache)
public PeopleSoftComponentActiveSyncAdapter()
Method Detail |
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class ResourceAdapterBase
WavesetException
public WavesetResult createAccounts(WSUser[] users) throws WavesetException
createAccounts
in interface ResourceAdapter
createAccounts
in class ResourceAdapterBase
WavesetException
public WavesetResult deleteAccounts(WSUser[] users) throws WavesetException
deleteAccounts
in interface ResourceAdapter
deleteAccounts
in class ResourceAdapterBase
WavesetException
public WavesetResult updateAccounts(WSUser[] users) throws WavesetException
updateAccounts
in interface ResourceAdapter
updateAccounts
in class ResourceAdapterBase
WavesetException
public WavesetResult enableAccounts(WSUser[] users) throws WavesetException
enableAccounts
in interface ResourceAdapter
enableAccounts
in class ResourceAdapterBase
WavesetException
public WavesetResult disableAccounts(WSUser[] users) throws WavesetException
disableAccounts
in interface ResourceAdapter
disableAccounts
in class ResourceAdapterBase
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 PeopleSoftComponentResourceAdapterBase
WavesetException
protected WSUser getUserInternal(java.lang.String identity) throws WavesetException
getUserInternal
in class PeopleSoftComponentResourceAdapterBase
WavesetException
protected WSUser getUserInternal(java.lang.String identity, java.lang.String empl_rcd) throws WavesetException
WavesetException
protected void realCreate(WSUser user, WavesetResult result) throws WavesetException
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 WSAttributes getAccountAttributes(java.lang.String accountIdentity) throws WavesetException
ResourceAdapter
getAccountAttributes
in interface ResourceAdapter
getAccountAttributes
in class ResourceAdapterBase
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(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 boolean supportsAccountDisable()
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
public java.lang.Object getAttributeValue(java.lang.String name) throws WavesetException
ActiveSync
getAttributeValue
in interface ActiveSync
WavesetException
public void setAttributeValue(java.lang.String name, java.lang.Object value) throws WavesetException
setAttributeValue
in interface ActiveSync
WavesetException
public void init() throws java.lang.Exception
init
in interface ActiveSync
java.lang.Exception
public void shutdown()
ActiveSync
shutdown
in interface ActiveSync
protected com.waveset.adapter.iapi.IAPI buildEvent(com.waveset.adapter.PeopleSoftComponentActiveSyncAdapter.UpdateRow row) throws WavesetException, com.waveset.adapter.iapi.IAPIException
WavesetException
com.waveset.adapter.iapi.IAPIException
protected boolean useLegacyEventGeneration()
protected boolean useLegacyGetUpdateRows()
protected void processUpdates(com.waveset.adapter.iapi.IAPI prox, java.util.List list) throws WavesetException, com.waveset.adapter.iapi.IAPIException
WavesetException
com.waveset.adapter.iapi.IAPIException
public int poll()
poll
in interface ActiveSync
protected void logUpdate(int level, com.waveset.adapter.PeopleSoftComponentActiveSyncAdapter.UpdateRow update, WavesetResult result)
protected void logString(int level, java.lang.String update)
public void callCompleted(com.waveset.adapter.iapi.IAPI call)
If this does not delete the call, there must be something else that deletes it - or it will just go away when it expires.
IAPI
protected WavesetResult testComponentInterface()
testComponentInterface
in class PeopleSoftComponentResourceAdapterBase
protected psft.pt8.joa.IObject getAuditComponentInterface(psft.pt8.joa.ISession oSession) throws psft.pt8.joa.JOAException
psft.pt8.joa.JOAException
protected psft.pt8.joa.IObject getEmployeeComponentInterface(psft.pt8.joa.ISession oSession) throws psft.pt8.joa.JOAException
psft.pt8.joa.JOAException
protected java.lang.StringBuffer getLastError()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |