Class TeamController

java.lang.Object
org.imixs.marty.team.TeamController
All Implemented Interfaces:
Serializable

@Named @SessionScoped public class TeamController extends Object implements Serializable
The ProcessController provides informations about the process and space entities. A Workitem can be assigned to a process and one or more spaces. The controller is session scoped and holds information depending on the current user grants. The ProcessController can load a process and provide agregated information about the process like the Team or member lists
Author:
rsoika
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.imixs.workflow.engine.DocumentService
     
    protected org.imixs.workflow.faces.util.LoginController
     
    protected ProfileService
     
    protected org.imixs.workflow.faces.util.ResourceBundleHandler
     
    protected TeamService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.imixs.workflow.ItemCollection>
    getAssist(String aUniqueID)
    Returns a unique sorted list of assist members for the current project.
    org.imixs.workflow.ItemCollection
    This method returns a space or process entity by its UniqueID.
    List<org.imixs.workflow.ItemCollection>
    getManagers(String aUniqueID)
    Returns a unique sorted list of managers for the current project.
    org.imixs.workflow.ItemCollection
    Returns the current process entity
    org.imixs.workflow.ItemCollection
    Returns the process for a given uniqueID.
    org.imixs.workflow.ItemCollection
    Returns a process by its name
    List<org.imixs.workflow.ItemCollection>
    This method returns a chached list of process entities for the current user.
    List<org.imixs.workflow.ItemCollection>
    Returns a unique sorted list of all members (Managers, Team, Assist) for the current process.
    List<org.imixs.workflow.ItemCollection>
    Returns a list of all spaces on the root level.
    org.imixs.workflow.ItemCollection
    getSpaceById(String uniqueId)
    Returns a Space for a given uniqueID.
    org.imixs.workflow.ItemCollection
    Returns a space by its name
    List<org.imixs.workflow.ItemCollection>
    This method returns a cached list of spaces for the current user.
    List<org.imixs.workflow.ItemCollection>
    getSpacesByProcess(org.imixs.workflow.ItemCollection process)
    Returns a list of all spaces which are assigned to a given process entity.
    List<org.imixs.workflow.ItemCollection>
    Returns a list of all spaces which are assigned to a given process entity.
    List<org.imixs.workflow.ItemCollection>
    Returns a list of all spaces which are siblings to a given UniqueID.
    List<org.imixs.workflow.ItemCollection>
    getTeam(String aUniqueID)
    Returns a unique sorted list of team members for the current project.
    boolean
    isAssistOf(String aUniqueID)
    Returns true if current user is assist of a given orgunit.
    boolean
    isManagerOf(String aUniqueID)
    Returns true if current user is manager of a given orgunit.
    boolean
    isMemberOf(String aUniqueID)
    Returns true if current user is teamMember, manager or assist of a given orgunit.
    boolean
    Returns true if current user is team member of a given orgunit.
    org.imixs.workflow.ItemCollection
    loadProcess(String uniqueid)
    Loads a process entity by its UniqueID from the internal cache and updates the current process entity.
    void
    onWorkflowEvent(org.imixs.workflow.faces.data.WorkflowEvent workflowEvent)
    WorkflowEvent listener If a process or space was created/loaded/processed the modellController will be reseted.
    void
    Reset the internal cache
    resolveDefaultProcessRef(org.imixs.workflow.ItemCollection workitem)
    This method resolves the field 'process.default.ref'.
    void
    setProcess(org.imixs.workflow.ItemCollection process)
    Set the current process entity

    Methods inherited from class java.lang.Object

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

    • loginController

      @Inject protected org.imixs.workflow.faces.util.LoginController loginController
    • resourceBundleHandler

      @Inject protected org.imixs.workflow.faces.util.ResourceBundleHandler resourceBundleHandler
    • documentService

      protected org.imixs.workflow.engine.DocumentService documentService
    • teamService

      protected TeamService teamService
    • profileService

      protected ProfileService profileService
  • Constructor Details

    • TeamController

      public TeamController()
  • Method Details

    • reset

      @PostConstruct public void reset()
      Reset the internal cache
    • getProcess

      public org.imixs.workflow.ItemCollection getProcess()
      Returns the current process entity
      Returns:
    • setProcess

      public void setProcess(org.imixs.workflow.ItemCollection process)
      Set the current process entity
      Parameters:
      process -
    • loadProcess

      public org.imixs.workflow.ItemCollection loadProcess(String uniqueid)
      Loads a process entity by its UniqueID from the internal cache and updates the current process entity.
      Parameters:
      uniqueid - - of process entity
      Returns:
      current process entity
    • getProcessById

      public org.imixs.workflow.ItemCollection getProcessById(String uniqueId)
      Returns the process for a given uniqueID. The method uses the internal cache.
      Parameters:
      uniqueId -
      Returns:
      itemCollection of process or null if not process with the specified id exists
    • getProcessList

      public List<org.imixs.workflow.ItemCollection> getProcessList()
      This method returns a chached list of process entities for the current user. This list can be used to display processs information. The returned process list is optimized and provides additional the following attributes

      isMember, isTeam, isOwner, isManager, isAssist

      Returns:
    • getSpaces

      public List<org.imixs.workflow.ItemCollection> getSpaces()
      This method returns a cached list of spaces for the current user. This list can be used to display space information. The returned space list is optimized and provides additional the following attributes

      isMember, isTeam, isOwner, isManager, isAssist

      Returns:
    • getEntityById

      public org.imixs.workflow.ItemCollection getEntityById(String uniqueid)
      This method returns a space or process entity by its UniqueID. The space and process entities are read from the internal cache.
      Parameters:
      uniqueid -
      Returns:
    • getSpaceById

      public org.imixs.workflow.ItemCollection getSpaceById(String uniqueId)
      Returns a Space for a given uniqueID.
      Parameters:
      uniqueId -
      Returns:
      itemCollection of process or null if not process with the specified id exists
    • getProcessByName

      public org.imixs.workflow.ItemCollection getProcessByName(String name)
      Returns a process by its name
      Parameters:
      name -
      Returns:
      itemCollection of process or null if not process with the specified id exists
    • getSpaceByName

      public org.imixs.workflow.ItemCollection getSpaceByName(String name)
      Returns a space by its name
      Parameters:
      name -
      Returns:
      itemCollection of process or null if not process with the specified id exists
    • getSpacesByProcessId

      public List<org.imixs.workflow.ItemCollection> getSpacesByProcessId(String uniqueId)
      Returns a list of all spaces which are assigned to a given process entity.
      Parameters:
      uniqueId - of a processEntity
      Returns:
    • getSpacesByProcess

      public List<org.imixs.workflow.ItemCollection> getSpacesByProcess(org.imixs.workflow.ItemCollection process)
      Returns a list of all spaces which are assigned to a given process entity.
      Parameters:
      uniqueId - of a processEntity
      Returns:
    • getSpacesByRef

      public List<org.imixs.workflow.ItemCollection> getSpacesByRef(String uniqueId)
      Returns a list of all spaces which are siblings to a given UniqueID.
      Parameters:
      uniqueId -
      Returns:
    • getRootSpaces

      public List<org.imixs.workflow.ItemCollection> getRootSpaces()
      Returns a list of all spaces on the root level.
      Parameters:
      uniqueId -
      Returns:
    • getManagers

      public List<org.imixs.workflow.ItemCollection> getManagers(String aUniqueID)
      Returns a unique sorted list of managers for the current project. The returned list contains cloned user profile entities.
      Returns:
      list of profile entities for the current team managers
    • getTeam

      public List<org.imixs.workflow.ItemCollection> getTeam(String aUniqueID)
      Returns a unique sorted list of team members for the current project. The returned list contains cloned user profile entities.
      Returns:
      list of profile entities for the current team members
    • getAssist

      public List<org.imixs.workflow.ItemCollection> getAssist(String aUniqueID)
      Returns a unique sorted list of assist members for the current project. The returned list contains cloned user profile entities.
      Returns:
      list of profile entities for the current team members
    • getProcessMembers

      public List<org.imixs.workflow.ItemCollection> getProcessMembers(String aUniqueID)
      Returns a unique sorted list of all members (Managers, Team, Assist) for the current process. The returned list contains cloned user profile entities.
      Returns:
      list of profile entities for the current team members
    • isManagerOf

      public boolean isManagerOf(String aUniqueID)
      Returns true if current user is manager of a given orgunit. Therefore the method checks the cloned field 'isManager' computed by the ProcessService
      Returns:
    • isTeamMemberOf

      public boolean isTeamMemberOf(String aUniqueID)
      Returns true if current user is team member of a given orgunit. Therefore the method checks the cloned field 'isTeam' computed by the ProcessService
      Returns:
    • isAssistOf

      public boolean isAssistOf(String aUniqueID)
      Returns true if current user is assist of a given orgunit. Therefore the method checks the cloned field 'isTeam' computed by the ProcessService
      Returns:
    • isMemberOf

      public boolean isMemberOf(String aUniqueID)
      Returns true if current user is teamMember, manager or assist of a given orgunit. Therefore the method checks the cloned field 'isMember' computed by the ProcessService
      Returns:
    • onWorkflowEvent

      public void onWorkflowEvent(@Observes org.imixs.workflow.faces.data.WorkflowEvent workflowEvent)
      WorkflowEvent listener If a process or space was created/loaded/processed the modellController will be reseted.
      Parameters:
      workflowEvent -
    • resolveDefaultProcessRef

      public String resolveDefaultProcessRef(org.imixs.workflow.ItemCollection workitem)
      This method resolves the field 'process.default.ref'. This fields holds the first space ID the current user is member of.