public class DocumentController extends Object implements Serializable
Constructor and Description |
---|
DocumentController() |
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()
This method creates an empty workItem with the default type property and
the property '$Creator' holding the current RemoteUser This method
should be overwritten to add additional Business logic here.
|
void |
create(javax.faces.event.ActionEvent event)
This actionListener method creates an empty workItem with the default
type property and the property 'namCreator' holding the current
RemoteUser This method should be overwritten to add additional Business
logic here.
|
void |
delete(String uniqueID)
This action method deletes a workitem.
|
String |
delete(String uniqueID,
String action)
This action method deletes a workitem and returns an action result.
|
String |
getDefaultType()
This method returns the Default 'type' attribute of the local workitem.
|
DocumentService |
getDocumentService()
returns an instance of the DocumentService EJB
|
ItemCollection |
getWorkitem()
Returns the current workItem.
|
boolean |
isNewWorkitem()
Returns true if the current entity was never saved before by the
DocumentService.
|
void |
load(String uniqueID)
This method loads the current workItem from the DocumentService.
|
String |
load(String uniqueID,
String action)
This Action method loads the current workItem from the DocumentService and
returns an action result.
|
void |
reset()
Reset current workItem to null
|
void |
save()
This method saves the current workItem.
|
String |
save(String action)
This action method saves the current workItem and returns an action
result.
|
void |
setDefaultType(String type)
This method set the default 'type' attribute of the local workitem.
|
void |
setWorkitem(ItemCollection workitem)
Set the current worktItem
|
public String getDefaultType()
public void setDefaultType(String type)
type
- public DocumentService getDocumentService()
public ItemCollection getWorkitem()
public void setWorkitem(ItemCollection workitem)
workitem
- - new reference or null to clear the current workItem.public void create()
public void create(javax.faces.event.ActionEvent event)
public void save() throws AccessDeniedException
AccessDeniedException
- - if user has insufficient access rights.public String save(String action) throws AccessDeniedException
action
- - defines the action resultAccessDeniedException
- - if user has insufficient access rights.public void reset()
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 void delete(String uniqueID) throws AccessDeniedException
currentSelection
- - workitem to be deletedAccessDeniedException
public String delete(String uniqueID, String action) throws AccessDeniedException
currentSelection
- - workitem to be deletedaction
- - return actionAccessDeniedException
public boolean isNewWorkitem()
public void addMessage(String ressourceBundleName, String messageKey, Object param)
ressourceBundleName
- messageKey
- param
- Copyright © 2006–2018 Imixs Software Solutions GmbH. All rights reserved.