public class ImportAdminUserService extends CSVReaderService
| Constructor and Description |
|---|
ImportAdminUserService() |
| Modifier and Type | Method and Description |
|---|---|
protected List<CSVMessageDescriptor> |
checkLineOfCSVFile(String[] strLineDataArray,
int nLineNumber,
Locale locale)
Check the line of the CSV file.
|
Character |
getAttributesSeparator()
Get the separator used for attributes of admin users.
|
protected List<CSVMessageDescriptor> |
getEndOfProcessMessages(int nNbLineParses,
int nNbLinesWithoutErrors,
Locale locale)
Get messages after the process is completed.
|
boolean |
getUpdateExistingUsers()
Get the update users flag
|
protected List<CSVMessageDescriptor> |
readLineOfCSVFile(String[] strLineDataArray,
int nLineNumber,
Locale locale,
String strBaseUrl)
Read a line of the CSV file.
|
void |
setUpdateExistingUsers(boolean bUpdateExistingUsers)
Set the update users flag
|
checkCSVFileValidity, checkCSVLineColumnNumber, getCSVEscapeCharacter, getCSVSeparator, getDefaultCSVEscapeCharacter, getDefaultCSVSeparator, readCSVFile, readCSVFile, readCSVFile, readCSVFile, readCSVFile, setCSVEscapeCharacter, setCSVSeparatorprotected List<CSVMessageDescriptor> readLineOfCSVFile(String[] strLineDataArray, int nLineNumber, Locale locale, String strBaseUrl)
readLineOfCSVFile in class CSVReaderServicestrLineDataArray - The content of the line of the CSV file.nLineNumber - Number of the current linelocale - the localestrBaseUrl - The base URLprotected List<CSVMessageDescriptor> checkLineOfCSVFile(String[] strLineDataArray, int nLineNumber, Locale locale)
checkLineOfCSVFile in class CSVReaderServicestrLineDataArray - The content of the line of the CSV file.nLineNumber - Number of the current linelocale - the localeINFO will NOT be processed, and the
global processing may stop if the ExitOnError flag has been set
to true !protected List<CSVMessageDescriptor> getEndOfProcessMessages(int nNbLineParses, int nNbLinesWithoutErrors, Locale locale)
getEndOfProcessMessages in class CSVReaderServicenNbLineParses - The number of lines parses. If the first line was
skipped, it is not counted.nNbLinesWithoutErrors - the number of lines parses whitout error.locale - The localepublic Character getAttributesSeparator()
public boolean getUpdateExistingUsers()
public void setUpdateExistingUsers(boolean bUpdateExistingUsers)
bUpdateExistingUsers - True if existing users should be updated,
false if they should be ignored.Copyright © 2016 City of Paris. All rights reserved.