Package com.saperion.connector.wf
Class TaskUserSelection
java.lang.Object
com.saperion.connector.wf.TaskUserSelection
- All Implemented Interfaces:
- Serializable
Holds the selectable users for a given task.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumAn enumeration for the different types of user assignments to tasks.
- 
Method SummaryModifier and TypeMethodDescriptionstatic TaskUserSelectioncreate(TaskUserSelection.SelectionType selectionType, boolean singleUserSelection) Creates a TaskUserSelection that indicates the given selection type except for SelectionType.RESTRICTED_SELECTABLE in this case use create(Collection<UserNameIdPair>)static TaskUserSelectioncreate(Collection<UserNameIdPair> userRestriction, boolean singleUserSelection) Creates a TaskUserSelection that indicates that the receiver of the task has to be selected from the given usersbooleanstatic TaskUserSelectionfromNative(com.saperion.jna.applsrv.m2j.natives.DfNodeDescr node) Creates a TaskUserSelection that matches the given instance of the native type DfNodeDescriptionstatic TaskUserSelectionfromNative(com.saperion.jna.applsrv.m2j.natives.NodeInfoRecord node) Creates a TaskUserSelection that matches the given instance of the native type NodeInfoRecordinthashCode()booleantoString()
- 
Method Details- 
getSelectionType- Returns:
- The type of user selection the given task is configured with
 
- 
getUserRestriction- Returns:
- The collection of users that may be selected for this task if the users are selectable from a given list i.e. selectionType == SelectionType.RESTRICTED_SELECTABLE otherwise an UnsupportedOperationException is thrown.
- Throws:
- UnsupportedOperationException- if selectionType != SelectionType.RESTRICTED_SELECTABLE
 
- 
createpublic static TaskUserSelection create(Collection<UserNameIdPair> userRestriction, boolean singleUserSelection) Creates a TaskUserSelection that indicates that the receiver of the task has to be selected from the given users- Parameters:
- userRestriction- The users the selection is restricted to
- singleUserSelection-
- Returns:
- a TaskUserSelection that indicates that the receiver of the task has to be selected from the given users
 
- 
createpublic static TaskUserSelection create(TaskUserSelection.SelectionType selectionType, boolean singleUserSelection) Creates a TaskUserSelection that indicates the given selection type except for SelectionType.RESTRICTED_SELECTABLE in this case use create(Collection<UserNameIdPair>)- Parameters:
- selectionType- the given type of selection
- singleUserSelection-
- Returns:
- a TaskUserSelection that indicates the given selection type
- Throws:
- IllegalArgumentException- if selectionType == SelectionType.RESTRICTED_SELECTABLE
 
- 
fromNativepublic static TaskUserSelection fromNative(com.saperion.jna.applsrv.m2j.natives.NodeInfoRecord node) Creates a TaskUserSelection that matches the given instance of the native type NodeInfoRecord- Parameters:
- node- the native instance to map
- Returns:
- a TaskUserSelection that matches the given instance of the native type NodeInfoRecord
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
- 
fromNativeCreates a TaskUserSelection that matches the given instance of the native type DfNodeDescription- Parameters:
- node- the native instance to map
- Returns:
- a TaskUserSelection that matches the given instance of the native type DfNodeDescription
 
- 
isSingleUserSelectionpublic boolean isSingleUserSelection()
 
-