@Scope(value=CONVERSATION) @Name(value="csvImportActions") @Install(precedence=10) public class CSVImportActions extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected File |
csvFile |
protected String |
csvFileName |
protected String |
csvImportId |
protected CoreSession |
documentManager |
protected NavigationContext |
navigationContext |
protected boolean |
notifyUserByEmail |
protected Boolean |
useImportMode |
Constructor and Description |
---|
CSVImportActions() |
Modifier and Type | Method and Description |
---|---|
String |
getImportingCSVFilename() |
protected CSVImporterOptions.ImportMode |
getImportMode() |
CSVImportResult |
getImportResult() |
CSVImportStatus |
getImportStatus() |
List<CSVImportLog> |
getLastLogs(int maxLogs) |
boolean |
getNotifyUserByEmail() |
List<CSVImportLog> |
getSkippedAndErrorLogs() |
Boolean |
getUseImportMode() |
void |
importCSVFile() |
void |
resetState() |
void |
setNotifyUserByEmail(boolean notifyUserByEmail) |
void |
setUseImportMode(Boolean importMode) |
void |
uploadListener(org.richfaces.event.FileUploadEvent event) |
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true, required=false) protected transient NavigationContext navigationContext
protected String csvFileName
protected boolean notifyUserByEmail
protected String csvImportId
protected Boolean useImportMode
public CSVImportActions()
public boolean getNotifyUserByEmail()
public void setNotifyUserByEmail(boolean notifyUserByEmail)
public Boolean getUseImportMode()
public void setUseImportMode(Boolean importMode)
protected CSVImporterOptions.ImportMode getImportMode()
public void uploadListener(org.richfaces.event.FileUploadEvent event) throws Exception
Exception
public void importCSVFile() throws IOException
IOException
public String getImportingCSVFilename()
public CSVImportStatus getImportStatus()
public List<CSVImportLog> getLastLogs(int maxLogs)
public List<CSVImportLog> getSkippedAndErrorLogs()
public CSVImportResult getImportResult()
@Observer(value="navigateToDocument") public void resetState()
Copyright © 2018 Nuxeo. All rights reserved.