Package org.imixs.marty.team
Class TeamController
java.lang.Object
org.imixs.marty.team.TeamController
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionprotected org.imixs.workflow.engine.DocumentServiceprotected org.imixs.workflow.faces.util.LoginControllerprotected ProfileServiceprotected org.imixs.workflow.faces.util.ResourceBundleHandlerprotected TeamService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.imixs.workflow.ItemCollection>Returns a unique sorted list of assist members for the current project.org.imixs.workflow.ItemCollectiongetEntityById(String uniqueid) 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.ItemCollectionReturns the current process entityorg.imixs.workflow.ItemCollectiongetProcessById(String uniqueId) Returns the process for a given uniqueID.org.imixs.workflow.ItemCollectiongetProcessByName(String name) Returns a process by its nameList<org.imixs.workflow.ItemCollection>This method returns a chached list of process entities for the current user.List<org.imixs.workflow.ItemCollection>getProcessMembers(String aUniqueID) 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.ItemCollectiongetSpaceById(String uniqueId) Returns a Space for a given uniqueID.org.imixs.workflow.ItemCollectiongetSpaceByName(String name) Returns a space by its nameList<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>getSpacesByProcessId(String uniqueId) Returns a list of all spaces which are assigned to a given process entity.List<org.imixs.workflow.ItemCollection>getSpacesByRef(String uniqueId) Returns a list of all spaces which are siblings to a given UniqueID.List<org.imixs.workflow.ItemCollection>Returns a unique sorted list of team members for the current project.booleanisAssistOf(String aUniqueID) Returns true if current user is assist of a given orgunit.booleanisManagerOf(String aUniqueID) Returns true if current user is manager of a given orgunit.booleanisMemberOf(String aUniqueID) Returns true if current user is teamMember, manager or assist of a given orgunit.booleanisTeamMemberOf(String aUniqueID) Returns true if current user is team member of a given orgunit.org.imixs.workflow.ItemCollectionloadProcess(String uniqueid) Loads a process entity by its UniqueID from the internal cache and updates the current process entity.voidonWorkflowEvent(org.imixs.workflow.faces.data.WorkflowEvent workflowEvent) WorkflowEvent listener If a process or space was created/loaded/processed the modellController will be reseted.voidreset()Reset the internal cacheresolveDefaultProcessRef(org.imixs.workflow.ItemCollection workitem) This method resolves the field 'process.default.ref'.voidsetProcess(org.imixs.workflow.ItemCollection process) Set the current process entity
-
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
-
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
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
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
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 attributesisMember, isTeam, isOwner, isManager, isAssist
- Returns:
-
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 attributesisMember, isTeam, isOwner, isManager, isAssist
- Returns:
-
getEntityById
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
Returns a Space for a given uniqueID.- Parameters:
uniqueId-- Returns:
- itemCollection of process or null if not process with the specified id exists
-
getProcessByName
Returns a process by its name- Parameters:
name-- Returns:
- itemCollection of process or null if not process with the specified id exists
-
getSpaceByName
Returns a space by its name- Parameters:
name-- Returns:
- itemCollection of process or null if not process with the specified id exists
-
getSpacesByProcessId
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
Returns a list of all spaces which are siblings to a given UniqueID.- Parameters:
uniqueId-- Returns:
-
getRootSpaces
Returns a list of all spaces on the root level.- Parameters:
uniqueId-- Returns:
-
getManagers
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
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
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
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
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
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
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
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
This method resolves the field 'process.default.ref'. This fields holds the first space ID the current user is member of.
-