org.imixs.workflow.util
Class ItemCollectionAdapter

java.lang.Object
  extended by org.imixs.workflow.util.ItemCollectionAdapter

public class ItemCollectionAdapter
extends Object

This Class adapts the Imixs ItemCollection Class for usage in a JSF Application. Using the ItemCollectionAdapter allows simplified access to attributes from a JSP/JSF page Each attribute accessed by the ItemCollectionAdapter will be added automatically to the corresponding ItemCollection Class Examples: #{myControllerMB.item['numpersonen']} #{myControllerMB.itemList['teamlist']}

Author:
rsoika

Constructor Summary
ItemCollectionAdapter()
           
ItemCollectionAdapter(ItemCollection acol)
           
 
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.
 String[] getFiles()
          Returns a list of file names attached to the current BlobWorkitem.
 Map getItem()
           
 ItemCollection getItemCollection()
           
 Map getItemList()
           
 Map getItemListArray()
           
 void removeFile(String aFilename)
          This method removes a single file attachment from the BlobWorkitem
 void setItemCollection(ItemCollection acol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemCollectionAdapter

public ItemCollectionAdapter()

ItemCollectionAdapter

public ItemCollectionAdapter(ItemCollection acol)
Method Detail

getItemCollection

public ItemCollection getItemCollection()

setItemCollection

public void setItemCollection(ItemCollection acol)

addFile

public void addFile(byte[] data,
                    String fileName,
                    String contentType)
             throws Exception
This method adds a single file to the ItemCollection. files will be stored into the property $file.

Parameters:
data - - byte array with file data
fileName - - name of the file attachment
contentType - - the contenttype (e.g. 'Text/HTML')
Throws:
Exception

removeFile

public void removeFile(String aFilename)
                throws Exception
This method removes a single file attachment from the BlobWorkitem

Throws:
Exception

getFiles

public String[] getFiles()
Returns a list of file names attached to the current BlobWorkitem. File Attachments can be added using the method addFile().

Returns:

getItem

public Map getItem()

getItemList

public Map getItemList()

getItemListArray

public Map getItemListArray()


Copyright © 2006-2011 Imixs Software Solutions GmbH. All Rights Reserved.