@Named(value="fileUploadController") @SessionScoped public class FileUploadController extends Object implements Serializable
http://ironicprogrammer.blogspot.de/2010/03/file-upload-in-jsf2.html,
Serialized Form| Constructor and Description |
|---|
FileUploadController() |
| Modifier and Type | Method and Description |
|---|---|
void |
doClear(javax.faces.event.ActionEvent e)
Removes all new uploaded and removed Files.
|
void |
doUpload(javax.faces.event.ActionEvent e)
Adds a new file into the uploadedFiles property.
|
List<String> |
getAttachedFiles()
Returns a list of files contained by the current workitem.
|
List<String> |
getRemovedFiles()
Returns a list of files which where removed from the AttachedFiles list.
|
String |
getRestServiceURI() |
List<FileData> |
getUploadedFiles()
Returns a FileData list with uploaded files.
|
String |
getWorkitemID() |
boolean |
isDirty()
Indicates if one or more files where uploaded or a attached files were
removed.
|
String |
removeAttachmentAction(String sFilename)
Removes a attached file object from the attachment list.
|
void |
setAttachedFiles(List<String> attachedFiles)
Updates the list of attached files.
|
void |
setRemovedFiles(List<String> removedFiles) |
void |
setRestServiceURI(String restServiceURI) |
void |
setWorkitemID(String workitemID) |
void |
updateWorkitem(org.imixs.workflow.ItemCollection workitem,
boolean noContent)
Synchronize the current file list with an WorkItem.
|
public String getRestServiceURI()
public void setRestServiceURI(String restServiceURI)
public String getWorkitemID()
public void setWorkitemID(String workitemID)
public List<String> getAttachedFiles()
public void setAttachedFiles(List<String> attachedFiles)
attachedFiles - public List<String> getRemovedFiles()
public List<FileData> getUploadedFiles()
public void doUpload(javax.faces.event.ActionEvent e)
e - public String removeAttachmentAction(String sFilename)
sFilename - - filename to be removedpublic boolean isDirty()
public void doClear(javax.faces.event.ActionEvent e)
e - - action eventpublic void updateWorkitem(org.imixs.workflow.ItemCollection workitem,
boolean noContent)
workitem - - workItem to store the uploaded filesnoContent - - if true only file names will be stored.Copyright © 2006–2014 Imixs Software Solutions GmbH. All rights reserved.