|
||||||||||
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.SkeletonResourceAdapter
com.waveset.adapter.FlatFileActiveSyncAdapter
ActiveSync adapter that can be used to process CSV files in a variety of ways.
Nested Class Summary | |
class |
FlatFileActiveSyncAdapter.FlatFileAccountIterator
|
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 |
code_id
|
static java.lang.String |
DEFAULT_ACCOUNTID_RHS
|
static java.lang.String |
RA_ALLOWED_ERROR_COUNT
|
static java.lang.String |
RA_DIFF_FLATFILE
|
static java.lang.String |
RA_FILE_ENCODING
|
static java.lang.String |
RA_FILE_FORMAT
|
static java.lang.String |
RA_FILENAME
|
static java.lang.String |
RA_TRACK_TIMESTAMP
|
static java.lang.String |
RA_UNIQUE_KEY
|
static java.lang.String |
TYPE_CSV
|
static java.lang.String |
TYPE_LDIF
|
static java.lang.String |
TYPE_PIPE
|
Fields inherited from class com.waveset.adapter.SkeletonResourceAdapter |
DISPLAY_PASSWORD, DISPLAY_USER, LOGIN_PASSWORD, LOGIN_USER, RA_HOST, RA_NAME1, RA_NAME2, 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 | |
FlatFileActiveSyncAdapter()
|
Method Summary | |
protected WSUser |
buildUser(java.util.Map attributes)
Build the user object given a set of attributes |
void |
callCompleted(com.waveset.adapter.iapi.IAPI call)
An call generated by this resource adapter has completed. |
WavesetResult |
checkCreateAccount(WSUser user)
Checks to see if an account can be created. |
protected void |
connect()
|
Resource |
createPrototypeResource()
|
protected void |
disconnect()
|
AccountIterator |
getAccountIterator()
|
java.lang.Object |
getAttributeValue(java.lang.String name)
These are methods implemented in sources to get and set attributes. |
GenericObject |
getFeatures()
Expose features supported by the Resource Adapter. |
void |
init()
Initialize the source adapter. |
int |
poll()
the poll method. |
protected int |
processFlatFile(FlatFileIterator itr)
|
protected boolean |
processLine(java.util.Map valueMap)
Called for each line of values in the CSV file. |
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). |
void |
setAttributeValue(java.lang.String name,
java.lang.Object value)
These are methods implemented in sources to get and set attributes. |
void |
shutdown()
Called once when the adapter is unloaded. |
static Resource |
staticCreatePrototypeResource()
|
WavesetResult |
testConfiguration()
Default implementation of test method, calls check create. |
Methods inherited from class com.waveset.adapter.SkeletonResourceAdapter |
authenticate, checkDeleteAccount, checkUpdateAccount, createObject, deleteObject, doCreateOrUpdateObjectRequest, getAccountAttributes, getUser, listObjects, realDelete, realDisable, realEnable, realUpdate, startConnection, stopConnection, supportsAccountDisable, supportsCaseInsensitiveAccountIds, updateObject |
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_FILENAME
public static final java.lang.String RA_FILE_FORMAT
public static final java.lang.String RA_FILE_ENCODING
public static final java.lang.String TYPE_CSV
public static final java.lang.String TYPE_LDIF
public static final java.lang.String TYPE_PIPE
public static final java.lang.String DEFAULT_ACCOUNTID_RHS
public static final java.lang.String RA_ALLOWED_ERROR_COUNT
public static final java.lang.String RA_TRACK_TIMESTAMP
public static final java.lang.String RA_DIFF_FLATFILE
public static final java.lang.String RA_UNIQUE_KEY
Constructor Detail |
public FlatFileActiveSyncAdapter()
Method Detail |
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class SkeletonResourceAdapter
WavesetException
public void init() throws java.lang.Exception
init
in interface ActiveSync
java.lang.Exception
public GenericObject getFeatures()
getFeatures
in interface ResourceAdapter
getFeatures
in class ResourceAdapterBase
ResourceAdapter.Features
public WavesetResult checkCreateAccount(WSUser user) throws WavesetException
SkeletonResourceAdapter
checkCreateAccount
in interface ResourceAdapter
checkCreateAccount
in class SkeletonResourceAdapter
WavesetException
protected void realCreate(WSUser user, WavesetResult result) throws WavesetException
SkeletonResourceAdapter
realCreate
in class SkeletonResourceAdapter
WavesetException
public java.lang.Object getAttributeValue(java.lang.String name) throws WavesetException
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 shutdown()
shutdown
in interface ActiveSync
protected void connect() throws WavesetException
WavesetException
protected void disconnect()
public WavesetResult testConfiguration() throws WavesetException
ResourceAdapterBase
testConfiguration
in interface ResourceAdapter
testConfiguration
in class ResourceAdapterBase
WavesetException
public AccountIterator getAccountIterator() throws WavesetException
getAccountIterator
in interface ResourceAdapter
getAccountIterator
in class SkeletonResourceAdapter
WavesetException
public int poll()
poll
in interface ActiveSync
protected int processFlatFile(FlatFileIterator itr) throws java.io.IOException
java.io.IOException
protected boolean processLine(java.util.Map valueMap)
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.
call
- -
protected WSUser buildUser(java.util.Map attributes) throws WavesetException
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |