|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.stardust.engine.api.runtime.DeputyOptions
public class DeputyOptions
Container class for the deputy description options.
| Field Summary | |
|---|---|
static DeputyOptions |
DEFAULT
Deputy options with default values: no restriction on participants, no restrictions on dates |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DeputyOptions DEFAULT
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||