public class TaskUserSelection extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TaskUserSelection.SelectionType
An enumeration for the different types of user assignments to tasks.
|
Modifier and Type | Method and Description |
---|---|
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
|
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>)
|
boolean |
equals(Object o) |
static TaskUserSelection |
fromNative(com.saperion.jna.applsrv.m2j.natives.DfNodeDescr node)
Creates a TaskUserSelection that matches the given instance of the native type DfNodeDescription
|
static TaskUserSelection |
fromNative(com.saperion.jna.applsrv.m2j.natives.NodeInfoRecord node)
Creates a TaskUserSelection that matches the given instance of the native type NodeInfoRecord
|
TaskUserSelection.SelectionType |
getSelectionType() |
Collection<UserNameIdPair> |
getUserRestriction() |
int |
hashCode() |
boolean |
isSingleUserSelection() |
String |
toString() |
public TaskUserSelection.SelectionType getSelectionType()
public Collection<UserNameIdPair> getUserRestriction()
UnsupportedOperationException
- if selectionType != SelectionType.RESTRICTED_SELECTABLEpublic static TaskUserSelection create(Collection<UserNameIdPair> userRestriction, boolean singleUserSelection)
userRestriction
- The users the selection is restricted tosingleUserSelection
- public static TaskUserSelection create(TaskUserSelection.SelectionType selectionType, boolean singleUserSelection)
selectionType
- the given type of selectionsingleUserSelection
- IllegalArgumentException
- if selectionType == SelectionType.RESTRICTED_SELECTABLEpublic static TaskUserSelection fromNative(com.saperion.jna.applsrv.m2j.natives.NodeInfoRecord node)
node
- the native instance to mappublic static TaskUserSelection fromNative(com.saperion.jna.applsrv.m2j.natives.DfNodeDescr node)
node
- the native instance to mappublic boolean isSingleUserSelection()
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.