|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.imixs.workflow.jee.jsf.util.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 into a Workitem (called BlobWorkitems). The BlobWorkitem is always bounded to a parent workitem by its referrer id ($uniqueidRef). So 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.
| Field Summary | |
|---|---|
protected org.imixs.workflow.util.ItemCollectionAdapter |
workitemAdapter
|
| Constructor Summary | |
|---|---|
BLOBWorkitemController()
|
|
| Method Summary | |
|---|---|
void |
addFile(byte[] data,
java.lang.String fileName,
java.lang.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 |
java.lang.String[] |
getFiles()
Returns a list of file names attached to the current BlobWorkitem. |
java.util.Map |
getItem()
returns a workitemAdapter Item field |
java.util.Map |
getItemList()
returns a workitemAdapter ItemList |
java.util.Map |
getItemListArray()
returns a workitemAdapter ItemList Array |
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(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.imixs.workflow.util.ItemCollectionAdapter workitemAdapter
| Constructor Detail |
|---|
public BLOBWorkitemController()
| Method Detail |
|---|
public org.imixs.workflow.ItemCollection getWorkitem()
public java.lang.String[] getFiles()
public void clear()
public void save(org.imixs.workflow.ItemCollection parentWorkitem)
throws java.lang.Exception
java.lang.Exception
public void addFile(byte[] data,
java.lang.String fileName,
java.lang.String contentType)
throws java.lang.Exception
data - - byte array with file datafileName - - name of the file attachmentcontentType - - the contenttype (e.g. 'Text/HTML')
java.lang.Exception
public void removeFile(java.lang.String aFilename)
throws java.lang.Exception
java.lang.Exception
public void load(org.imixs.workflow.ItemCollection itemCol)
throws java.lang.Exception
itemCol - - parent workitem where the BlobWorkitem will be attached to
java.lang.Exception
public java.util.Map getItem()
throws java.lang.Exception
java.lang.Exception
public java.util.Map getItemList()
throws java.lang.Exception
java.lang.Exception
public java.util.Map getItemListArray()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||