org.imixs.workflow.jee.adminclient
Class EntityServiceFacade

java.lang.Object
  extended by org.imixs.workflow.jee.adminclient.EntityServiceFacade

public class EntityServiceFacade
extends Object

This Class defines a BackingBean which acts as a SessionFacade for the org.imixs.workflow.jee.ejb.EntityPersistenceManager Session EJB. This Backing Bean interacts with the EntityBean backing bean to grant access to the current selected Entity. The ManagedBean should be declared in faces-config like this: entityServiceFacade org.imixs.workflow.jee.adminclient.EntityServiceFacade session the assumes that a local instance of org.imixs.workflow.jee.ejb.EntityService is deployed locally. You can bind the Bean to any other remote interface of an EntityService using the 'ejbName' attribute.

Version:
1.2
Author:
rsoika
See Also:
EntityBean

Constructor Summary
EntityServiceFacade()
           
 
Method Summary
 void bulkUpdateWorkItemList(javax.faces.event.ActionEvent event)
          This method starts a new EQL query and update the results with the updateValue in the field updateField
 void doDelete(javax.faces.event.ActionEvent event)
          this method removes the current selected worktiem from a view
 void doDeleteIndex(javax.faces.event.ActionEvent event)
          This action method deletes an existing index.
 void doDeleteModel(javax.faces.event.ActionEvent event)
          This Method Selects the current project and refreshes the Worklist Bean so wokitems of these project will be displayed after show_worklist Furthermore the method call loadProcessList to support a List of StartProcess ItemCollections.
 void doQueryModelVersions(javax.faces.event.ActionEvent e)
          This method starts a new EQL query for all existing ModelVersions and stores the results into the models object.
 void doRefresh(javax.faces.event.ActionEvent event)
          refreshes the current workitem list. so the list will be loaded again.
 void doReset(javax.faces.event.ActionEvent event)
          resets the current project list and projectMB
 String doSaveIndex()
          adds a new index to the EntityPersistencManager
 void doSearch(javax.faces.event.ActionEvent e)
          This method resets simply the result set
 void doSelect(javax.faces.event.ActionEvent event)
          this method is called by datatables to select an workitem
 void doSelectModel(javax.faces.event.ActionEvent event)
          This Method Selects the current model
 String exportWorkItemList()
          This method starts a new EQL query and exports the results into a export file
 int getCount()
           
 javax.faces.component.html.HtmlDataTable getDataTable()
          Navigation
 String getEjbEntityPersistenceManagerName()
           
 List<org.imixs.workflow.ItemCollection> getEntities()
           
 String getErrorMessage()
           
 String getFilename()
           
 List getIndexList()
           
 String getIndexName()
          getter method for name
 int getIndexType()
           
 String getLoginfo()
           
 ArrayList<Map> getModels()
           
 String getQuery()
           
 int getRow()
           
 String getUpdateField()
           
 String getUpdateFieldType()
           
 String getUpdateValue()
           
 String importWorkItemList()
          This method starts a file import and loads the existing workitems.
 boolean isEndOfList()
           
 boolean isEntityPersistenceManagerLoaded()
           
 void loadNext(javax.faces.event.ActionEvent e)
           
 void loadPrev(javax.faces.event.ActionEvent e)
           
 void removeWorkItemList(javax.faces.event.ActionEvent event)
          This method starts a new EQL query and removes the results
 void setCount(int count)
           
 void setDataTable(javax.faces.component.html.HtmlDataTable dataTable)
           
 void setEjbEntityPersistenceManagerName(String ejbModuleName)
           
 void setErrorMessage(String error_Message)
           
 void setFilename(String filename)
           
 void setIndexName(String aname)
          setter method for name
 void setIndexType(int type)
           
 void setQuery(String query)
           
 void setRow(int startpos)
           
 void setUpdateField(String updateField)
           
 void setUpdateFieldType(String updateFieldType)
           
 void setUpdateValue(String updateValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityServiceFacade

public EntityServiceFacade()
Method Detail

getLoginfo

public String getLoginfo()

setQuery

public void setQuery(String query)

getQuery

public String getQuery()

setFilename

public void setFilename(String filename)

getFilename

public String getFilename()

setErrorMessage

public void setErrorMessage(String error_Message)

getErrorMessage

public String getErrorMessage()

setCount

public void setCount(int count)

getCount

public int getCount()

setRow

public void setRow(int startpos)

getRow

public int getRow()

getUpdateField

public String getUpdateField()

setUpdateField

public void setUpdateField(String updateField)

getUpdateFieldType

public String getUpdateFieldType()

setUpdateFieldType

public void setUpdateFieldType(String updateFieldType)

getUpdateValue

public String getUpdateValue()

setUpdateValue

public void setUpdateValue(String updateValue)

doDelete

public void doDelete(javax.faces.event.ActionEvent event)
              throws Exception
this method removes the current selected worktiem from a view

Parameters:
event -
Throws:
Exception

doRefresh

public void doRefresh(javax.faces.event.ActionEvent event)
refreshes the current workitem list. so the list will be loaded again. but start pos will not be changed!


doReset

public void doReset(javax.faces.event.ActionEvent event)
resets the current project list and projectMB


doSelectModel

public void doSelectModel(javax.faces.event.ActionEvent event)
                   throws Exception
This Method Selects the current model

Throws:
Exception

doDeleteModel

public void doDeleteModel(javax.faces.event.ActionEvent event)
                   throws Exception
This Method Selects the current project and refreshes the Worklist Bean so wokitems of these project will be displayed after show_worklist Furthermore the method call loadProcessList to support a List of StartProcess ItemCollections. Forms and Views can use the getProcessList() method to show a list of StartProcesses

Throws:
Exception

doSearch

public void doSearch(javax.faces.event.ActionEvent e)
This method resets simply the result set


doSaveIndex

public String doSaveIndex()
adds a new index to the EntityPersistencManager

Returns:

doDeleteIndex

public void doDeleteIndex(javax.faces.event.ActionEvent event)
This action method deletes an existing index.


doSelect

public void doSelect(javax.faces.event.ActionEvent event)
this method is called by datatables to select an workitem


doQueryModelVersions

public void doQueryModelVersions(javax.faces.event.ActionEvent e)
                          throws Exception
This method starts a new EQL query for all existing ModelVersions and stores the results into the models object.

Throws:
Exception

getModels

public ArrayList<Map> getModels()

getDataTable

public javax.faces.component.html.HtmlDataTable getDataTable()
Navigation


setDataTable

public void setDataTable(javax.faces.component.html.HtmlDataTable dataTable)

getEntities

public List<org.imixs.workflow.ItemCollection> getEntities()

getIndexName

public String getIndexName()
getter method for name

Returns:

setIndexName

public void setIndexName(String aname)
setter method for name

Parameters:
map -

getIndexType

public int getIndexType()

setIndexType

public void setIndexType(int type)

getIndexList

public List getIndexList()

isEndOfList

public boolean isEndOfList()

loadNext

public void loadNext(javax.faces.event.ActionEvent e)

loadPrev

public void loadPrev(javax.faces.event.ActionEvent e)

exportWorkItemList

public String exportWorkItemList()
                          throws Exception
This method starts a new EQL query and exports the results into a export file

Returns:
List
Throws:
Exception

importWorkItemList

public String importWorkItemList()
                          throws Exception
This method starts a file import and loads the existing workitems. Each imported Entity will be restored with its own $UnqiueID and $creation date. If an entity with the spcific $uniqueid allready exists the entity will be updated.

Returns:
"success"
Throws:
Exception

removeWorkItemList

public void removeWorkItemList(javax.faces.event.ActionEvent event)
                        throws Exception
This method starts a new EQL query and removes the results

Throws:
Exception

bulkUpdateWorkItemList

public void bulkUpdateWorkItemList(javax.faces.event.ActionEvent event)
                            throws Exception
This method starts a new EQL query and update the results with the updateValue in the field updateField

Throws:
Exception

getEjbEntityPersistenceManagerName

public String getEjbEntityPersistenceManagerName()

setEjbEntityPersistenceManagerName

public void setEjbEntityPersistenceManagerName(String ejbModuleName)
                                        throws Exception
Throws:
Exception

isEntityPersistenceManagerLoaded

public boolean isEntityPersistenceManagerLoaded()


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