Class TeamLookupService

java.lang.Object
org.imixs.marty.team.TeamLookupService

public class TeamLookupService extends Object
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a string array containing all orgunit names a given userID is member of.
    void
    onDocumentEvent(org.imixs.workflow.engine.DocumentEvent documentEvent)
    This method reset the intern group cache in case a space or process entity is updated or deleted.
    void
    onUserGroupEvent(org.imixs.workflow.engine.UserGroupEvent userGroupEvent)
    This method updates the UserGroup List be reaction on the CDI event UserGroupEvent.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TeamLookupService

      public TeamLookupService()
  • Method Details

    • findOrgunits

      public String[] findOrgunits(String userId)
      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