|
Java SDK r12.5 |
||||||||
| PREV CLASS NEXT CLASS | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FeederParser
Presents services which have to be supplied when creating your personal parser.
The FeederParser implementation must be in the following package: com.ca.identitymanager.feeder.parser
The following are services that have to be implemented when creating your parser:
FeederParser().FeederParser(StringBuffer fileContent) throws FeederParserException.FeederParser(StringBuffer fileContent, Object[] params) throws FeederParserException.getHeaders).getNextRecord).setActionsAttrName).setSearchObjectAttrName).setDeletionSequence).getAllActions).getCurrentRecordActionValue) of the current record.getCurrentRecordSearchObjValue) of the current record.getRecordsCount) not including the header.hasMoreRecords).isValidFile).getDeletionSequence) of the current record.
| Method Summary | |
|---|---|
java.util.List |
getAllActions()
Get all types of actions |
java.lang.String |
getCurrentRecordActionValue()
Get the action attribute for the current record |
java.lang.String |
getCurrentRecordSearchObjValue()
Get the search object for the specific record |
java.lang.String |
getDeletionSequence()
|
java.util.List |
getHeaders()
Get the header of the file |
java.util.List |
getNextRecord()
Get the next record in the file returns a list of lists of values (each list represent attribute values which might be single or multi-valued) the returned list takes into consideration the deletionSequence value for example if the deletionSequence is set to "**NULL**" then the parser will return in getNextRecord() a list for a single record in which null will appear for each "**NULL**" value in the record and "" will appear for each attribute which should be ignored when setting a managed object. |
int |
getRecordsCount()
Get records count |
boolean |
hasMoreRecords()
Checks whether there are more records to read |
java.lang.String |
isValidFile(java.lang.String fileName)
Validate the input file. |
void |
setActionsAttrName(java.lang.String actionsAttrName)
Set actions attribute name |
void |
setDeletionSequence(java.lang.String deletionSequence)
Set deletion sequence string which is used to determine which value in the parsed file should be deleted from the managed object later. |
void |
setSearchObjectAttrName(java.lang.String searchObjAttrName)
Set search object attribute name |
| Method Detail |
|---|
java.util.List getNextRecord()
boolean hasMoreRecords()
java.lang.String getCurrentRecordActionValue()
java.lang.String getCurrentRecordSearchObjValue()
throws FeederParserException
FeederParserExceptionjava.util.List getHeaders()
java.util.List getAllActions()
int getRecordsCount()
void setActionsAttrName(java.lang.String actionsAttrName)
throws FeederParserException
actionsAttrName - the actions 'column' (attribute) presentation
FeederParserException - if the actions 'column' was not found in the headervoid setSearchObjectAttrName(java.lang.String searchObjAttrName)
searchObjAttrName - the search object 'column' (attribute) presentationjava.lang.String isValidFile(java.lang.String fileName)
NOTE! - THIS METHOD SHOULD RETURN NULL IF THE FILE IS VALID
fileName - the name of the uploaded file
void setDeletionSequence(java.lang.String deletionSequence)
deletionSequence - java.lang.String getDeletionSequence()
|
Java SDK r12.5 10/22/2009 |
||||||||
| PREV CLASS NEXT CLASS | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||