public class DataController extends Object implements Serializable
| Constructor and Description |
|---|
DataController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(String ressourceBundleName,
String messageKey,
Object param)
This method can be used to add a Error Messege to the Application Context
during an actionListener Call.
|
void |
create(javax.faces.event.ActionEvent event)
This actionListener method creates an empty workItem with the default
type.
|
void |
delete(String uniqueID)
This actionListener method removes the current selected workitem from a
view.
|
String |
delete(String uniqueID,
String action)
This action method removes the current selected workitem from a view.
|
void |
deleteChilds(org.imixs.workflow.ItemCollection parent)
This actionListener method deletes all child workItems of a workItem -
also childs from child workItems will be deleted.
|
EntityService |
getEntityService()
returns an instance of the EntityService EJB
|
String |
getID()
returns the $uniqueID of the current workitem
|
String |
getType()
set the value for the attribute 'type' of a workitem to be generated or
search by this controller
|
org.imixs.workflow.ItemCollection |
getWorkitem()
Returns the current workItem.
|
boolean |
isNewWorkitem()
indicates if a workitem was processed before by the workflowService
|
void |
load(String uniqueID)
ActionListener method to load a workItem from the backend.
|
String |
load(String uniqueID,
String action)
Action method to load a workItem from the backend and returns an action
result.
|
void |
reset()
Reset current workItem to null
|
void |
reset(javax.faces.event.ActionEvent event)
ActionListener to reset the current workItem to null
|
void |
save()
This actionListener method saves the current workItem.
|
String |
save(String action)
This action method saves the current workItem and returns an action
result.
|
void |
setType(String type)
defines the type attribute of a workitem to be generated or search by
this controller
Subclasses may overwrite the type
|
void |
setWorkitem(org.imixs.workflow.ItemCollection workitem)
Updates the current worktItem
|
public EntityService getEntityService()
public String getID()
public String getType()
public void setType(String type)
type - public org.imixs.workflow.ItemCollection getWorkitem()
public void setWorkitem(org.imixs.workflow.ItemCollection workitem)
workitem - - new reference or null to clear the current workItem.public void create(javax.faces.event.ActionEvent event)
public void save()
throws org.imixs.workflow.exceptions.AccessDeniedException
org.imixs.workflow.exceptions.AccessDeniedException - - if user has insufficient access rights.public String save(String action) throws org.imixs.workflow.exceptions.AccessDeniedException
action - - defines the action resultorg.imixs.workflow.exceptions.AccessDeniedException - - if user has insufficient access rights.public void reset()
public void reset(javax.faces.event.ActionEvent event)
public void load(String uniqueID)
uniqueID - - $uniqueId of the workItem to be loadedpublic String load(String uniqueID, String action)
uniqueID - - $uniqueId of the workItem to be loadedaction - - return actionpublic String delete(String uniqueID, String action) throws org.imixs.workflow.exceptions.AccessDeniedException
currentSelection - - workitem to be deletedaction - - return actionorg.imixs.workflow.exceptions.AccessDeniedExceptionpublic void delete(String uniqueID) throws org.imixs.workflow.exceptions.AccessDeniedException
currentSelection - - workitem to be deletedorg.imixs.workflow.exceptions.AccessDeniedExceptionpublic void deleteChilds(org.imixs.workflow.ItemCollection parent)
parent - public boolean isNewWorkitem()
public void addMessage(String ressourceBundleName, String messageKey, Object param)
ressourceBundleName - messageKey - param - Copyright © 2006–2015 Imixs Software Solutions GmbH. All rights reserved.