public abstract 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.
|
abstract String |
getAccessCode(String[] strLineDataArray)
Get the access code from data array
|
Character |
getAttributesSeparator()
Get the separator used for attributes of admin users.
|
abstract String |
getEmail(String[] strLineDataArray)
Get the email from CSV columns
|
protected List<CSVMessageDescriptor> |
getEndOfProcessMessages(int nNbLineParses,
int nNbLinesWithoutErrors,
Locale locale)
Get messages after the process is completed.
|
abstract String |
getImportFromFileTemplate()
Get the HTML template for importing users from file
|
abstract int |
getNbMinColumns()
Get the number min of CSV columns
|
boolean |
getUpdateExistingUsers()
Get the update users flag
|
protected abstract 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> 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.public abstract String getImportFromFileTemplate()
public abstract int getNbMinColumns()
public abstract String getAccessCode(String[] strLineDataArray)
strLineDataArray - the data arraypublic abstract String getEmail(String[] strLineDataArray)
strLineDataArray - the data arrayprotected abstract 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 URLCopyright © 2021 City of Paris. All rights reserved.