|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.csv.CSVReaderService
fr.paris.lutece.portal.service.admin.ImportAdminUserService
public class ImportAdminUserService
Class to import Admin Users from CSV files.
| Constructor Summary | |
|---|---|
ImportAdminUserService()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class fr.paris.lutece.portal.service.csv.CSVReaderService |
|---|
checkCSVFileValidity, checkCSVLineColumnNumber, getCSVEscapeCharacter, getCSVSeparator, getDefaultCSVEscapeCharacter, getDefaultCSVSeparator, readCSVFile, readCSVFile, readCSVFile, readCSVFile, readCSVFile, setCSVEscapeCharacter, setCSVSeparator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImportAdminUserService()
| Method Detail |
|---|
protected 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 URL
protected 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 locale
INFO 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 locale
public Character getAttributesSeparator()
public boolean getUpdateExistingUsers()
public void setUpdateExistingUsers(boolean bUpdateExistingUsers)
bUpdateExistingUsers - True if existing users should be updated,
false if they should be ignored.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||