|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.imixs.workflow.jee.faces.BLOBWorkitemController
public class BLOBWorkitemController
This BLOBWorkitemController is used to store large objects into a single ItemCollection mapped to a EntityBean. The BLOBWorkitemController supports also the management of file attachment inside an ItemCollection. So the BLOBWorkitemController can be used to save large data objects or files into a Workitem (called BlobWorkitems). The BlobWorkitem is always bounded to a parent workitem by its referrer id ($uniqueidRef). An application can implement a lazy loading for BLOBWorkitems. The read- and write access settings of BLOBWorkitems are always synchronized to the settings of the parent workitem. Before the BlobWorkitem can be accessed the workitem needs to be loaded by the load() method. The Data can be accessed by the embedded Itemcollection through the method getWorkitem(). The BlobWorkitem can be saved by calling the save() method. Both - the load() and the save() method expect the Parent ItemCollection where the BlobWorkitem should be bound to.
| Constructor Summary | |
|---|---|
BLOBWorkitemController()
|
|
| Method Summary | |
|---|---|
void |
addFile(byte[] data,
String fileName,
String contentType)
This method adds a single file to the ItemCollection. files will be stored into the property $file. |
void |
clear()
Removes the connection to the parend workitem and clear the itemCollection |
Vector<String> |
getFileList()
Returns a Vector of file names attached to the current BlobWorkitem. |
String[] |
getFiles()
Returns a list of file names attached to the current BlobWorkitem. |
org.imixs.workflow.ItemCollection |
getWorkitem()
returns the ItemCollection for the curren BlobWorkitem object. |
void |
load(org.imixs.workflow.ItemCollection itemCol)
Loads the BlobWorkitem of a given parent Workitem. |
void |
removeFile(String aFilename)
This method removes a single file attachment from the BlobWorkitem |
void |
save(org.imixs.workflow.ItemCollection parentWorkitem)
This method saves the current BlobWorkitem. |
void |
setWorkitem(org.imixs.workflow.ItemCollection aItemcol)
update the workitemAdapter and the blobworkitem reference |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BLOBWorkitemController()
| Method Detail |
|---|
public void setWorkitem(org.imixs.workflow.ItemCollection aItemcol)
aItemcol - public org.imixs.workflow.ItemCollection getWorkitem()
public String[] getFiles()
public Vector<String> getFileList()
public void clear()
public void save(org.imixs.workflow.ItemCollection parentWorkitem)
throws Exception
The method did not save the blobWorkitem if the parent workitem has no $unqiueID!
Exception
public void addFile(byte[] data,
String fileName,
String contentType)
throws Exception
data - - byte array with file datafileName - - name of the file attachmentcontentType - - the contenttype (e.g. 'Text/HTML')
Exception
public void removeFile(String aFilename)
throws Exception
Exception
public void load(org.imixs.workflow.ItemCollection itemCol)
throws Exception
itemCol - - parent workitem where the BlobWorkitem will be attached to
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||