public class UserSubstitutionDetail
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT_ |
static java.lang.String |
NL |
Constructor and Description |
---|
UserSubstitutionDetail()
Default constructor to initialize the user absence and substitution details.
|
UserSubstitutionDetail(java.util.List substitutes,
java.util.Calendar startDate,
java.util.Calendar endDate)
Constructor that creates a user substitution details object from the passed values.
|
Modifier and Type | Method and Description |
---|---|
java.util.Calendar |
getEndDate()
Returns the end date of the user's absence period.
|
java.util.Calendar |
getStartDate()
Returns the start date of the user's absence period.
|
java.util.List |
getSubstitutes()
Returns the user IDs of the substitutes.
|
void |
setEndDate(java.util.Calendar endDate)
Sets the end date for the user's absence period.
|
void |
setStartDate(java.util.Calendar startDate)
Sets the start date for the user's absence period.
|
void |
setSubstitutes(java.util.List substitutes)
Sets the substitutes of the user.
|
java.lang.String |
toString()
Returns a string representation of the UserSubstitutionDetail object.
|
public static final java.lang.String COPYRIGHT_
public static final java.lang.String NL
public UserSubstitutionDetail()
public UserSubstitutionDetail(java.util.List substitutes, java.util.Calendar startDate, java.util.Calendar endDate)
substitutes
- The substitutes for the user during the absence period.
If null is specified, there are no substitutes.startDate
- The start date for the user's absence period.
If null is specified, the end date must also be null.
Note that validity checks are executed when the object is passed to the Human Task Manager -
refer to setUserSubstitutionDetail
.endDate
- The end date for the user's absence period.
If null is specified, the end date of user's absence is open.public java.util.List getSubstitutes()
public java.util.Calendar getStartDate()
public java.util.Calendar getEndDate()
public void setSubstitutes(java.util.List substitutes)
substitutes
- The substitutes for the user during the absence period.
If null is specified, there are no substitutes.public void setStartDate(java.util.Calendar startDate)
startDate
- The start date for the user's absence period.
If null is specified, the end date must also be null.
Note that validity checks are executed when the object is passed to the Human Task Manager -
refer to setUserSubstitutionDetail
.public void setEndDate(java.util.Calendar endDate)
endDate
- The end date for the user's absence period.
If null is specified, the end date of the user's absence is open.public java.lang.String toString()
toString
in class java.lang.Object