@Name(value="importActions") @Scope(value=CONVERSATION) @Install(precedence=10) public class ImportActions extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
currentBatchId |
protected DndConfigurationHelper |
dndConfigHelper |
protected CoreSession |
documentManager |
static String |
DOCUMENTS_IMPORTED |
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
protected String |
fancyboxFormId |
protected DocumentModel |
importDocumentModel |
protected List<Action> |
importOptions |
static String |
LABEL_IMPORT_CANNOT_CREATE_ERROR |
static String |
LABEL_IMPORT_PROBLEM |
protected Map<String,String> |
messages |
protected NavigationContext |
navigationContext |
protected static Random |
random |
protected String |
selectedImportFolderId |
protected Action |
selectedImportOption |
protected Collection<NxUploadedFile> |
uploadedFiles |
protected WebActions |
webActions |
Constructor and Description |
---|
ImportActions() |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
String |
generateBatchId() |
DocumentModel |
getImportDocumentModel() |
List<Action> |
getImportOptions(String dropContext) |
String |
getSelectedImportFolderId() |
Action |
getSelectedImportOption() |
String |
getSelectedImportOptionId() |
Collection<NxUploadedFile> |
getUploadedFiles() |
boolean |
hasUploadedFiles() |
String |
importDocuments() |
protected List<DocumentModel> |
importDocumentsThroughBatchManager(String chainOrOperationId,
Map<String,Object> contextParams) |
protected List<DocumentModel> |
importDocumentsThroughUploadItems(String chainOrOperationId,
Map<String,Object> contextParams) |
void |
invalidateSelectedImportFolder() |
void |
processUpload(org.richfaces.event.FileUploadEvent uploadEvent) |
void |
setSelectedImportFolderId(String selectedImportFolderId) |
void |
setSelectedImportOptionId(String id) |
void |
setUploadedFiles(Collection<NxUploadedFile> uploadedFiles) |
public static final String LABEL_IMPORT_PROBLEM
public static final String LABEL_IMPORT_CANNOT_CREATE_ERROR
public static final String DOCUMENTS_IMPORTED
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true) protected NavigationContext navigationContext
@In(create=true) protected transient WebActions webActions
@In(create=true) protected transient DndConfigurationHelper dndConfigHelper
@In(create=true, required=false) protected org.jboss.seam.faces.FacesMessages facesMessages
@RequestParameter protected String fancyboxFormId
protected DocumentModel importDocumentModel
protected Action selectedImportOption
protected List<Action> importOptions
protected String selectedImportFolderId
protected String currentBatchId
protected Collection<NxUploadedFile> uploadedFiles
public ImportActions()
public DocumentModel getImportDocumentModel()
public String getSelectedImportOptionId()
public void setSelectedImportOptionId(String id)
public Action getSelectedImportOption()
public List<Action> getImportOptions(String dropContext)
public String getSelectedImportFolderId()
public void setSelectedImportFolderId(String selectedImportFolderId)
public String generateBatchId()
public boolean hasUploadedFiles()
public String importDocuments()
protected List<DocumentModel> importDocumentsThroughBatchManager(String chainOrOperationId, Map<String,Object> contextParams)
protected List<DocumentModel> importDocumentsThroughUploadItems(String chainOrOperationId, Map<String,Object> contextParams)
public void cancel()
public Collection<NxUploadedFile> getUploadedFiles()
public void setUploadedFiles(Collection<NxUploadedFile> uploadedFiles)
@Observer(value="userAllDocumentTypesSelectionChanged") public void invalidateSelectedImportFolder()
public void processUpload(org.richfaces.event.FileUploadEvent uploadEvent)
Copyright © 2016 Nuxeo SA. All rights reserved.