|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.imixs.workflow.jee.ejb.WorkflowService
@DeclareRoles(value={"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
@RolesAllowed(value={"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
public class WorkflowServiceThe WorkflowService is the JEE Implementation for the Imixs Workflow Core API. This interface acts as a service facade and supports basic methods to create, process and access workitems. The Interface extends the core api interface org.imixs.workflow.WorkflowManager with getter methods to fetch collections of workitems.
| Field Summary | |
|---|---|
static int |
SORT_ORDER_CREATED_ASC
|
static int |
SORT_ORDER_CREATED_DESC
|
static int |
SORT_ORDER_MODIFIED_ASC
|
static int |
SORT_ORDER_MODIFIED_DESC
|
| Constructor Summary | |
|---|---|
WorkflowService()
|
|
| Method Summary | |
|---|---|
EntityService |
getEntityService()
This method returns an instance of the Imixs JEE EntityService used by the WorkflowManager Implementation. |
org.imixs.workflow.ExtendedModel |
getExtendedModel()
|
int |
getLogLevel()
Workflow Context |
org.imixs.workflow.Model |
getModel()
This Method returns the modelManager Instance. |
ModelService |
getModelService()
This method returns an instance of the Imixs JEE ModelService used by the WorkflowManager Implementation. |
java.lang.Object |
getSessionContext()
|
java.lang.String |
getUserName()
Obtain the java.security.Principal that identifies the caller and returns the name of this principal. |
java.util.List<java.lang.String> |
getUserNameList()
This method returns a list of user names, roles and application groups the caller belongs to. |
org.imixs.workflow.ItemCollection |
getWorkItem(java.lang.String uniqueid)
This method loads a Workitem with the corresponding uniqueid |
java.util.Collection<org.imixs.workflow.ItemCollection> |
getWorkList()
Returns the Worklist for the current user |
java.util.Collection<org.imixs.workflow.ItemCollection> |
getWorkList(int startpos,
int count,
java.lang.String type,
int sortorder)
Returns a collection of workItems belonging to current user. |
java.util.Collection<org.imixs.workflow.ItemCollection> |
getWorkListByAuthor(java.lang.String name)
Returns the worklist by author for the current user |
java.util.Collection<org.imixs.workflow.ItemCollection> |
getWorkListByAuthor(java.lang.String name,
int startpos,
int count,
java.lang.String type,
int sortorder)
Returns a collection of workItems belonging to a specified username. |
java.util.Collection<org.imixs.workflow.ItemCollection> |
getWorkListByCreator(java.lang.String name,
int startpos,
int count,
java.lang.String type,
int sortorder)
Returns a collection of workitems created by a specified user (namCreator). |
java.util.Collection<org.imixs.workflow.ItemCollection> |
getWorkListByGroup(java.lang.String name,
int startpos,
int count,
java.lang.String type,
int sortorder)
|
java.util.Collection<org.imixs.workflow.ItemCollection> |
getWorkListByOwner(java.lang.String name,
int startpos,
int count,
java.lang.String type,
int sortorder)
Returns a collection of workitems containing a namOwner property belonging to a specified username. |
java.util.Collection<org.imixs.workflow.ItemCollection> |
getWorkListByProcessID(int aid,
int startpos,
int count,
java.lang.String type,
int sortorder)
Returns a collection of workitems belonging to a specified $processID defined by the workflow model. |
java.util.Collection<org.imixs.workflow.ItemCollection> |
getWorkListByRef(java.lang.String aref)
Returns a collection of workitems belonging to a specified workitem identified by the attribute $UniqueIDRef. |
java.util.Collection<org.imixs.workflow.ItemCollection> |
getWorkListByRef(java.lang.String aref,
int startpos,
int count,
java.lang.String type,
int sortorder)
Returns a collection of workitems belonging to a specified workitem identified by the attribute $UniqueIDRef. |
java.util.Collection<org.imixs.workflow.ItemCollection> |
getWorkListByWriteAccess(int startpos,
int count,
java.lang.String type,
int sortorder)
Returns a collection of workitems where the current user has a writeAccess. |
boolean |
isUserInRole(java.lang.String rolename)
Test if the caller has a given security role. |
org.imixs.workflow.ItemCollection |
processWorkItem(org.imixs.workflow.ItemCollection workitem)
processes a workItem. |
void |
removeWorkItem(org.imixs.workflow.ItemCollection aworkitem)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SORT_ORDER_CREATED_DESC
public static final int SORT_ORDER_CREATED_ASC
public static final int SORT_ORDER_MODIFIED_DESC
public static final int SORT_ORDER_MODIFIED_ASC
| Constructor Detail |
|---|
public WorkflowService()
| Method Detail |
|---|
public org.imixs.workflow.ItemCollection getWorkItem(java.lang.String uniqueid)
getWorkItem in interface WorkflowServiceRemotegetWorkItem in interface org.imixs.workflow.WorkflowManager
public java.util.Collection<org.imixs.workflow.ItemCollection> getWorkList(int startpos,
int count,
java.lang.String type,
int sortorder)
getWorkList in interface WorkflowServiceRemotestartpos - = optional start positioncount - = optional count - default = -1type - = defines the type property of the workitems to be returnd.
can be nullsortorder - = defines sortorder (SORT_ORDER_CREATED_DESC = 0
SORT_ORDER_CREATED_ASC = 1 SORT_ORDER_MODIFIED_DESC = 2
SORT_ORDER_MODIFIED_ASC = 3)
public java.util.Collection<org.imixs.workflow.ItemCollection> getWorkList()
getWorkList in interface WorkflowServiceRemotegetWorkList in interface org.imixs.workflow.WorkflowManager
public java.util.Collection<org.imixs.workflow.ItemCollection> getWorkListByAuthor(java.lang.String name,
int startpos,
int count,
java.lang.String type,
int sortorder)
getWorkListByAuthor in interface WorkflowServiceRemotename - = username or role contained in $writeAccess - if null current
username will be usedstartpos - = optional start positioncount - = optional count - default = -1type - = defines the type property of the workitems to be returnd.
can be nullsortorder - = defines sortorder (SORT_ORDER_CREATED_DESC = 0
SORT_ORDER_CREATED_ASC = 1 SORT_ORDER_MODIFIED_DESC = 2
SORT_ORDER_MODIFIED_ASC = 3)
public java.util.Collection<org.imixs.workflow.ItemCollection> getWorkListByAuthor(java.lang.String name)
getWorkListByAuthor in interface WorkflowServiceRemotename -
public java.util.Collection<org.imixs.workflow.ItemCollection> getWorkListByCreator(java.lang.String name,
int startpos,
int count,
java.lang.String type,
int sortorder)
getWorkListByCreator in interface WorkflowServiceRemotename - = username for property namCreator - if null current username
will be usedstartpos - = optional start positioncount - = optional count - default = -1type - = defines the type property of the workitems to be returnd.
can be nullsortorder - = defines sortorder (SORT_ORDER_CREATED_DESC = 0
SORT_ORDER_CREATED_ASC = 1 SORT_ORDER_MODIFIED_DESC = 2
SORT_ORDER_MODIFIED_ASC = 3)
public java.util.Collection<org.imixs.workflow.ItemCollection> getWorkListByOwner(java.lang.String name,
int startpos,
int count,
java.lang.String type,
int sortorder)
getWorkListByOwner in interface WorkflowServiceRemotename - = username for property namOwner - if null current username
will be usedstartpos - = optional start positioncount - = optional count - default = -1type - = defines the type property of the workitems to be returnd.
can be nullsortorder - = defines sortorder (SORT_ORDER_CREATED_DESC = 0
SORT_ORDER_CREATED_ASC = 1 SORT_ORDER_MODIFIED_DESC = 2
SORT_ORDER_MODIFIED_ASC = 3)
public java.util.Collection<org.imixs.workflow.ItemCollection> getWorkListByWriteAccess(int startpos,
int count,
java.lang.String type,
int sortorder)
getWorkListByWriteAccess in interface WorkflowServiceRemotestartpos - = optional start positioncount - = optional count - default = -1type - = defines the type property of the workitems to be returnd.
can be nullsortorder - = defines sortorder (SORT_ORDER_CREATED_DESC = 0
SORT_ORDER_CREATED_ASC = 1 SORT_ORDER_MODIFIED_DESC = 2
SORT_ORDER_MODIFIED_ASC = 3)
public java.util.Collection<org.imixs.workflow.ItemCollection> getWorkListByGroup(java.lang.String name,
int startpos,
int count,
java.lang.String type,
int sortorder)
getWorkListByGroup in interface WorkflowServiceRemote
public java.util.Collection<org.imixs.workflow.ItemCollection> getWorkListByProcessID(int aid,
int startpos,
int count,
java.lang.String type,
int sortorder)
getWorkListByProcessID in interface WorkflowServiceRemoteaID - = $ProcessID for the workitems to be returned.startpos - = optional start positioncount - = optional count - default = -1type - = defines the type property of the workitems to be returnd.
can be nullsortorder - = defines sortorder (SORT_ORDER_CREATED_DESC = 0
SORT_ORDER_CREATED_ASC = 1 SORT_ORDER_MODIFIED_DESC = 2
SORT_ORDER_MODIFIED_ASC = 3)
public java.util.Collection<org.imixs.workflow.ItemCollection> getWorkListByRef(java.lang.String aref)
getWorkListByRef in interface WorkflowServiceRemotearef - A unique reference to another workitem inside a database *
public java.util.Collection<org.imixs.workflow.ItemCollection> getWorkListByRef(java.lang.String aref,
int startpos,
int count,
java.lang.String type,
int sortorder)
getWorkListByRef in interface WorkflowServiceRemotearef - A unique reference to another workitem inside a database *startpos - = optional start positioncount - = optional count - default = -1type - = defines the type property of the workitems to be returnd.
can be nullsortorder - = defines sortorder (SORT_ORDER_CREATED_DESC = 0
SORT_ORDER_CREATED_ASC = 1 SORT_ORDER_MODIFIED_DESC = 2
SORT_ORDER_MODIFIED_ASC = 3)
public org.imixs.workflow.ItemCollection processWorkItem(org.imixs.workflow.ItemCollection workitem)
throws org.imixs.workflow.exceptions.AccessDeniedException,
org.imixs.workflow.exceptions.ProcessingErrorException
processWorkItem in interface WorkflowServiceRemoteprocessWorkItem in interface org.imixs.workflow.WorkflowManagerworkitem - - the workItem to be processed
InvalidItemValueException - if $modelVersion did not exists or the workItem has an
invalid status
org.imixs.workflow.exceptions.AccessDeniedException - if call has no write access for the given workItem
org.imixs.workflow.exceptions.ProcessingErrorException - if processing by a plugin fails
public void removeWorkItem(org.imixs.workflow.ItemCollection aworkitem)
throws org.imixs.workflow.exceptions.AccessDeniedException
removeWorkItem in interface WorkflowServiceRemoteremoveWorkItem in interface org.imixs.workflow.WorkflowManagerorg.imixs.workflow.exceptions.AccessDeniedExceptionpublic int getLogLevel()
getLogLevel in interface WorkflowServiceRemotegetLogLevel in interface org.imixs.workflow.WorkflowContextpublic org.imixs.workflow.Model getModel()
getModel in interface WorkflowServiceRemotegetModel in interface org.imixs.workflow.WorkflowContextpublic org.imixs.workflow.ExtendedModel getExtendedModel()
getExtendedModel in interface org.imixs.workflow.ExtendedWorkflowContextpublic java.lang.Object getSessionContext()
getSessionContext in interface org.imixs.workflow.WorkflowContextpublic EntityService getEntityService()
java.lang.Exceptionpublic ModelService getModelService()
getModelService in interface WorkflowServiceRemotejava.lang.Exceptionpublic java.lang.String getUserName()
getUserName in interface WorkflowServiceRemotepublic boolean isUserInRole(java.lang.String rolename)
isUserInRole in interface WorkflowServiceRemoterolename -
public java.util.List<java.lang.String> getUserNameList()
getUserNameList in interface WorkflowServiceRemote
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||