public class DeputyOptions extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static DeputyOptions |
DEFAULT
Deputy options with default values: no restriction on participants, no restrictions on dates
|
| Constructor and Description |
|---|
DeputyOptions()
Creates new options valid from now, unlimited and with an empty participant set.
|
DeputyOptions(Date fromDate,
Date toDate)
Creates new options valid in the given interval and with an empty participant set.
|
DeputyOptions(Date fromDate,
Date toDate,
Set<ModelParticipantInfo> participants)
Creates new options valid in the given interval and with the specified participant set.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getFromDate()
Gets the validity start date.
|
Set<ModelParticipantInfo> |
getParticipants()
Gets the set of participant grants.
|
Date |
getToDate()
Gets the validity end date.
|
void |
setFromDate(Date fromDate)
Sets the validity start date.
|
void |
setParticipants(Set<ModelParticipantInfo> participants)
Sets the participant grants.
|
void |
setToDate(Date toDate)
Sets the validity end date.
|
public static final DeputyOptions DEFAULT
public DeputyOptions()
public DeputyOptions(Date fromDate, Date toDate)
fromDate - the validity start date. Must not be null.toDate - the validity end date. If null, then it is unlimited.IllegalArgumentException - if fromDate is null.public DeputyOptions(Date fromDate, Date toDate, Set<ModelParticipantInfo> participants)
fromDate - the validity start date. Must not be null.toDate - the validity end date. If null, then it is unlimited.participants - the set of participants the deputy will have grants to. Can be empty, but not null.IllegalArgumentException - if fromDate or the participants set are null.public Date getFromDate()
public void setFromDate(Date fromDate)
fromDate - the new validity start date. Must not be null.IllegalArgumentException - if fromDate is null.public Date getToDate()
public void setToDate(Date toDate)
toDate - the new validity end date or null if unlimited.public Set<ModelParticipantInfo> getParticipants()
public void setParticipants(Set<ModelParticipantInfo> participants)
participants - the new set of participant grants. Should be empty if the
deputy user only inherit grants over work items in the personal worklist.IllegalArgumentException - if the participants set is null.Copyright © 2016 Eclipse Stardust. All Rights Reserved.