public interface FileManageActions extends SimpleFileManager
Modifier and Type | Field and Description |
---|---|
static String |
NUXEO_JSF_TMP_DIR_PROP |
Modifier and Type | Method and Description |
---|---|
String |
addFile()
Adds a new File.
|
String |
addFileFromPlugin(String content,
String mimetype,
String fullName,
String morePath,
Boolean UseBase64) |
String |
addFolderFromPlugin(String fullName,
String morePath) |
boolean |
canWrite() |
String |
copyWithId(String docId) |
String |
display() |
String |
getFileName() |
InputStream |
getFileUpload() |
String |
moveWithId(String docId,
String containerId) |
String |
pasteWithId(String docId) |
String |
removeAllUploadedFile() |
String |
removeOneOrAllUploadedFiles(javax.faces.event.ActionEvent action)
Removes one of all uploaded files, depending on previous call to
setFileToRemove(String) . |
String |
removeSingleUploadedFile() |
String |
removeUploadedFile(String fileName) |
void |
setFileName(String fileName) |
void |
setFileToRemove(String fileToRemove)
Setter to get the filename to remove, works in conjunction with
removeOneOrAllUploadedFiles(ActionEvent)
. |
void |
setFileUpload(InputStream fileUpload) |
addBinaryFileFromPlugin, addBinaryFileFromPlugin
static final String NUXEO_JSF_TMP_DIR_PROP
String display()
display
in interface SimpleFileManager
void setFileUpload(InputStream fileUpload)
InputStream getFileUpload()
void setFileName(String fileName)
String getFileName()
void setFileToRemove(String fileToRemove)
removeOneOrAllUploadedFiles(ActionEvent)
.String removeOneOrAllUploadedFiles(javax.faces.event.ActionEvent action)
setFileToRemove(String)
.
This is useful to remove files in an Ajax context to avoid Seam remoting, and still get the selected entry from JavaScript variables (see NXP-13234).
@WebRemote String addFolderFromPlugin(String fullName, String morePath)
@WebRemote String addFileFromPlugin(String content, String mimetype, String fullName, String morePath, Boolean UseBase64)
@WebRemote boolean canWrite()
@WebRemote String moveWithId(String docId, String containerId)
@WebRemote String copyWithId(String docId)
@WebRemote String pasteWithId(String docId)
@WebRemote String removeUploadedFile(String fileName)
@WebRemote String removeAllUploadedFile()
@WebRemote String removeSingleUploadedFile()
Copyright © 2018 Nuxeo. All rights reserved.