Package org.imixs.workflow.office.forms
Class SpaceRefFormController
java.lang.Object
org.imixs.workflow.office.forms.SpaceRefFormController
- All Implemented Interfaces:
Serializable
@Named
@ConversationScoped
public class SpaceRefFormController
extends Object
implements Serializable
The SpaceRefFormController provides method to support the custom part
'spaceref'
The component is used as a custom form part. For example:
<item type="custom"
path="spaceref"
options="default-selection;"
label="Department:" />
The options are used by the controller methods to resolve the different
setups- Author:
- rsoika
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.imixs.workflow.ItemCollection>Returns the spaces to part of the selection.setDefaultSpace(org.imixs.workflow.ItemCollection workitem, String options) This method updates the space.ref item with the first space ID the current user is member of.
-
Constructor Details
-
SpaceRefFormController
public SpaceRefFormController()
-
-
Method Details
-
getSpaces
public List<org.imixs.workflow.ItemCollection> getSpaces(org.imixs.workflow.ItemCollection workitem, String options) Returns the spaces to part of the selection. Depending on the options the list can be either the complete list of spaces or a subset. Possible Options are: items="#{byprocess?teamController.getSpacesByProcessId(workflowController.workitem.item['process.ref']):teamController.spaces}" var="space">- Parameters:
workitem-options-- Returns:
-
setDefaultSpace
This method updates the space.ref item with the first space ID the current user is member of. The method is used as a default selector by form part 'spaceref.xhtml' The method updates the items space.ref and space.name and returns the space.ref Possible Options are:default-selection=member | The first section, the current user is member of will be pre-selected. default-selection=team | The first section, the current user is team member of will be pre-selected. default-selection=manager | The first section, the current user is manager of will be pre-selected. default-selection=assist | The first section, the current user is assist of will be pre-selected.
-