Package org.imixs.marty.team
Class TeamLookupService
java.lang.Object
org.imixs.marty.team.TeamLookupService
This EJB provides a lookup service for orgunit member information.
The orgunits are stored in a array of strings with the following format
{process:PROCESS_NAME:ROLE}
{space:PROCESS_NAME:ROLE}
e.g.
{process:Finance:assist}
In addition the method adds a role member if one of the roles (team,manager,
assist) was found
{process:Finance:member}
- Version:
- 1.0
- Author:
- rsoika
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]findOrgunits(String userId) Returns a string array containing all orgunit names a given userID is member of.voidonDocumentEvent(org.imixs.workflow.engine.DocumentEvent documentEvent) This method reset the intern group cache in case a space or process entity is updated or deleted.voidonUserGroupEvent(org.imixs.workflow.engine.UserGroupEvent userGroupEvent) This method updates the UserGroup List be reaction on the CDI event UserGroupEvent.
-
Constructor Details
-
TeamLookupService
public TeamLookupService()
-
-
Method Details
-
findOrgunits
Returns a string array containing all orgunit names a given userID is member of.- Parameters:
aUID- - user unique id- Returns:
- string array of group names
-
onUserGroupEvent
public void onUserGroupEvent(@Observes org.imixs.workflow.engine.UserGroupEvent userGroupEvent) This method updates the UserGroup List be reaction on the CDI event UserGroupEvent. The method uses an internal caching mechanism to avoid multiple database lookups. -
onDocumentEvent
public void onDocumentEvent(@Observes org.imixs.workflow.engine.DocumentEvent documentEvent) This method reset the intern group cache in case a space or process entity is updated or deleted.- Parameters:
documentEvent-- See Also:
-
DocumentEvent
-