org.nuxeo.ecm.webapp.filemanager
Class FileManageActionsBean
java.lang.Object
org.nuxeo.ecm.webapp.base.InputController
org.nuxeo.ecm.webapp.filemanager.FileManageActionsBean
- All Implemented Interfaces:
- SimpleFileManager, FileManageActions
@Name(value="FileManageActions")
@Scope(value=EVENT)
@Install(precedence=10)
public class FileManageActionsBean
- extends InputController
- implements FileManageActions
- Author:
- Andreas
Kalogeropoulos
Method Summary |
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)
|
TRANSF_ERROR
public static final String TRANSF_ERROR
- See Also:
- Constant Field Values
SECURITY_ERROR
public static final String SECURITY_ERROR
- See Also:
- Constant Field Values
MOVE_ERROR
public static final String MOVE_ERROR
- See Also:
- Constant Field Values
COPY_ERROR
public static final String COPY_ERROR
- See Also:
- Constant Field Values
PASTE_ERROR
public static final String PASTE_ERROR
- See Also:
- Constant Field Values
MOVE_IMPOSSIBLE
public static final String MOVE_IMPOSSIBLE
- See Also:
- Constant Field Values
MOVE_PUBLISH
public static final String MOVE_PUBLISH
- See Also:
- Constant Field Values
MOVE_OK
public static final String MOVE_OK
- See Also:
- Constant Field Values
FileManageActionsBean
public FileManageActionsBean()
destroy
public void destroy()
display
public String display()
- Specified by:
display
in interface SimpleFileManager
- Specified by:
display
in interface FileManageActions
addFile
public String addFile()
throws ClientException
- Description copied from interface:
FileManageActions
- Adds a new File.
- Specified by:
addFile
in interface FileManageActions
- Returns:
- the page that displays the documents
- Throws:
ClientException
addFile
public String addFile(InputStream fileUpload,
String fileName)
throws ClientException
- Throws:
ClientException
canWrite
@Deprecated
@WebRemote
public boolean canWrite()
throws ClientException
- Deprecated.
- Specified by:
canWrite
in interface FileManageActions
- Throws:
ClientException
addFileFromPlugin
@Deprecated
@WebRemote
public String addFileFromPlugin(String content,
String mimetype,
String fullName,
String morePath,
Boolean UseBase64)
throws ClientException
- Deprecated. use addBinaryFileFromPlugin with a Blob argument API to
avoid loading the content in memory
- Specified by:
addFileFromPlugin
in interface FileManageActions
- Throws:
ClientException
addBinaryFileFromPlugin
@WebRemote
public String addBinaryFileFromPlugin(Blob blob,
String fullName,
String morePath)
throws ClientException
- Specified by:
addBinaryFileFromPlugin
in interface SimpleFileManager
- Throws:
ClientException
addBinaryFileFromPlugin
@WebRemote
public String addBinaryFileFromPlugin(Blob blob,
String fullName,
DocumentModel targetContainer)
throws ClientException
- Specified by:
addBinaryFileFromPlugin
in interface SimpleFileManager
- Throws:
ClientException
addBinaryFileFromPlugin
@Deprecated
public String addBinaryFileFromPlugin(byte[] content,
String mimetype,
String fullName,
String morePath)
throws ClientException
- Deprecated. Use addBinaryFileFromPlugin(Blob, String, String) to avoid
loading the data in memory as a Bytes array
- Throws:
ClientException
addFolderFromPlugin
@WebRemote
public String addFolderFromPlugin(String fullName,
String morePath)
throws ClientException
- Specified by:
addFolderFromPlugin
in interface FileManageActions
- Throws:
ClientException
moveWithId
@WebRemote
public String moveWithId(String docId,
String containerId)
throws ClientException
- Specified by:
moveWithId
in interface FileManageActions
- Throws:
ClientException
copyWithId
@WebRemote
public String copyWithId(String docId)
throws ClientException
- Specified by:
copyWithId
in interface FileManageActions
- Throws:
ClientException
pasteWithId
@WebRemote
public String pasteWithId(String docId)
throws ClientException
- Specified by:
pasteWithId
in interface FileManageActions
- Throws:
ClientException
initialize
public void initialize()
processUpload
public void processUpload(org.richfaces.event.UploadEvent uploadEvent)
validateMultiplesUpload
public void validateMultiplesUpload()
throws ClientException,
FileNotFoundException
- Throws:
ClientException
FileNotFoundException
validateMultipleUploadForDocument
public void validateMultipleUploadForDocument(DocumentModel current)
throws ClientException,
FileNotFoundException
- Throws:
ClientException
FileNotFoundException
performAction
public void performAction(ActionEvent event)
validate
public String validate()
throws ClientException
- Throws:
ClientException
getFileUpload
public InputStream getFileUpload()
- Specified by:
getFileUpload
in interface FileManageActions
setFileUpload
public void setFileUpload(InputStream fileUpload)
- Specified by:
setFileUpload
in interface FileManageActions
getFileName
public String getFileName()
- Specified by:
getFileName
in interface FileManageActions
setFileName
public void setFileName(String fileName)
- Specified by:
setFileName
in interface FileManageActions
getChangeableDocument
public DocumentModel getChangeableDocument()
setChangeableDocument
public void setChangeableDocument(DocumentModel changeableDocument)
getUploadedFiles
public Collection<org.richfaces.model.UploadItem> getUploadedFiles()
setUploadedFiles
public void setUploadedFiles(Collection<org.richfaces.model.UploadItem> uploadedFiles)
removeSingleUploadedFile
@WebRemote
public String removeSingleUploadedFile()
throws ClientException
- Specified by:
removeSingleUploadedFile
in interface FileManageActions
- Throws:
ClientException
removeAllUploadedFile
@WebRemote
public String removeAllUploadedFile()
throws ClientException
- Specified by:
removeAllUploadedFile
in interface FileManageActions
- Throws:
ClientException
removeUploadedFile
@WebRemote
public String removeUploadedFile(String fileName)
throws ClientException
- Specified by:
removeUploadedFile
in interface FileManageActions
- Throws:
ClientException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.