@Name(value="FileManageActions") @Scope(value=EVENT) @Install(precedence=10) public class FileManageActionsBean extends InputController implements FileManageActions
Modifier and Type | Field and Description |
---|---|
static String |
COPY_ERROR |
static String |
MOVE_ERROR |
static String |
MOVE_IMPOSSIBLE |
static String |
MOVE_OK |
static String |
MOVE_PUBLISH |
static String |
PASTE_ERROR |
static String |
SECURITY_ERROR |
static String |
TRANSF_ERROR |
Constructor and Description |
---|
FileManageActionsBean() |
Modifier and Type | Method and Description |
---|---|
String |
addBinaryFileFromPlugin(Blob blob,
String fullName,
DocumentModel targetContainer) |
String |
addBinaryFileFromPlugin(Blob blob,
String fullName,
String morePath) |
String |
addBinaryFileFromPlugin(byte[] content,
String mimetype,
String fullName,
String morePath)
Deprecated.
Use addBinaryFileFromPlugin(Blob, String, String) to avoid
loading the data in memory as a Bytes array
|
String |
addFile()
Adds a new File.
|
String |
addFile(InputStream fileUpload,
String fileName) |
String |
addFileFromPlugin(String content,
String mimetype,
String fullName,
String morePath,
Boolean UseBase64)
Deprecated.
use addBinaryFileFromPlugin with a Blob argument API to
avoid loading the content in memory
|
String |
addFolderFromPlugin(String fullName,
String morePath) |
boolean |
canWrite()
Deprecated.
|
String |
copyWithId(String docId) |
void |
destroy() |
String |
display() |
DocumentModel |
getChangeableDocument() |
String |
getFileName() |
InputStream |
getFileUpload() |
Collection<org.richfaces.model.UploadItem> |
getUploadedFiles() |
void |
initialize() |
String |
moveWithId(String docId,
String containerId) |
String |
pasteWithId(String docId) |
void |
performAction(ActionEvent event) |
void |
processUpload(org.richfaces.event.UploadEvent uploadEvent) |
String |
removeAllUploadedFile() |
String |
removeSingleUploadedFile() |
String |
removeUploadedFile(String fileName) |
void |
setChangeableDocument(DocumentModel changeableDocument) |
void |
setFileName(String fileName) |
void |
setFileUpload(InputStream fileUpload) |
void |
setUploadedFiles(Collection<org.richfaces.model.UploadItem> uploadedFiles) |
String |
validate() |
void |
validateMultiplesUpload() |
void |
validateMultipleUploadForDocument(DocumentModel current) |
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList
public static final String TRANSF_ERROR
public static final String SECURITY_ERROR
public static final String MOVE_ERROR
public static final String COPY_ERROR
public static final String PASTE_ERROR
public static final String MOVE_IMPOSSIBLE
public static final String MOVE_PUBLISH
public static final String MOVE_OK
public void destroy()
public String display()
display
in interface SimpleFileManager
display
in interface FileManageActions
public String addFile() throws ClientException
FileManageActions
addFile
in interface FileManageActions
ClientException
public String addFile(InputStream fileUpload, String fileName) throws ClientException
ClientException
@Deprecated @WebRemote public boolean canWrite() throws ClientException
canWrite
in interface FileManageActions
ClientException
@Deprecated @WebRemote public String addFileFromPlugin(String content, String mimetype, String fullName, String morePath, Boolean UseBase64) throws ClientException
addFileFromPlugin
in interface FileManageActions
ClientException
@WebRemote public String addBinaryFileFromPlugin(Blob blob, String fullName, String morePath) throws ClientException
addBinaryFileFromPlugin
in interface SimpleFileManager
ClientException
@WebRemote public String addBinaryFileFromPlugin(Blob blob, String fullName, DocumentModel targetContainer) throws ClientException
addBinaryFileFromPlugin
in interface SimpleFileManager
ClientException
@Deprecated public String addBinaryFileFromPlugin(byte[] content, String mimetype, String fullName, String morePath) throws ClientException
ClientException
@WebRemote public String addFolderFromPlugin(String fullName, String morePath) throws ClientException
addFolderFromPlugin
in interface FileManageActions
ClientException
@WebRemote public String moveWithId(String docId, String containerId) throws ClientException
moveWithId
in interface FileManageActions
ClientException
@WebRemote public String copyWithId(String docId) throws ClientException
copyWithId
in interface FileManageActions
ClientException
@WebRemote public String pasteWithId(String docId) throws ClientException
pasteWithId
in interface FileManageActions
ClientException
public void initialize()
public void processUpload(org.richfaces.event.UploadEvent uploadEvent)
public void validateMultiplesUpload() throws ClientException, FileNotFoundException
ClientException
FileNotFoundException
public void validateMultipleUploadForDocument(DocumentModel current) throws ClientException, FileNotFoundException
ClientException
FileNotFoundException
public void performAction(ActionEvent event)
public String validate() throws ClientException
ClientException
public InputStream getFileUpload()
getFileUpload
in interface FileManageActions
public void setFileUpload(InputStream fileUpload)
setFileUpload
in interface FileManageActions
public String getFileName()
getFileName
in interface FileManageActions
public void setFileName(String fileName)
setFileName
in interface FileManageActions
public DocumentModel getChangeableDocument()
public void setChangeableDocument(DocumentModel changeableDocument)
public Collection<org.richfaces.model.UploadItem> getUploadedFiles()
public void setUploadedFiles(Collection<org.richfaces.model.UploadItem> uploadedFiles)
@WebRemote public String removeSingleUploadedFile() throws ClientException
removeSingleUploadedFile
in interface FileManageActions
ClientException
@WebRemote public String removeAllUploadedFile() throws ClientException
removeAllUploadedFile
in interface FileManageActions
ClientException
@WebRemote public String removeUploadedFile(String fileName) throws ClientException
removeUploadedFile
in interface FileManageActions
ClientException
Copyright © 2011 Nuxeo SA. All Rights Reserved.