Class ScheduleData
java.lang.Object
com.gentics.contentnode.rest.model.scheduler.ScheduleData
Definition when a schedule should be executed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Get the end timestamp.Get the followup definition.Get the interval definition.int
Get the start timestamp.getType()
Get the schedule type.boolean
isValid()
Check if the schedule data is valid.setEndTimestamp
(int endTimestamp) Set the end timestamp.setFollow
(ScheduleFollow follow) Set the followup definition.setInterval
(ScheduleInterval interval) Set the interval definition.setStartTimestamp
(int startTimestamp) Set the start timestamp.setType
(ScheduleType type) Set the schedule type.toString()
-
Constructor Details
-
ScheduleData
public ScheduleData()
-
-
Method Details
-
getType
Get the schedule type.- Returns:
- The schedule type.
-
setType
Set the schedule type.- Parameters:
type
- The schedule type.- Returns:
- fluent API
-
getStartTimestamp
public int getStartTimestamp()Get the start timestamp.- Returns:
- The start timestamp.
-
setStartTimestamp
Set the start timestamp.- Parameters:
startTimestamp
- The start timestamp.- Returns:
- fluent API
-
getEndTimestamp
public int getEndTimestamp()Get the end timestamp.- Returns:
- The end timestamp.
-
setEndTimestamp
Set the end timestamp.- Parameters:
endTimestamp
- The end timestamp.- Returns:
- fluent API
-
getInterval
Get the interval definition.- Returns:
- The interval definition.
-
setInterval
Set the interval definition.- Parameters:
interval
- The interval definition.- Returns:
- fluent API
-
getFollow
Get the followup definition.- Returns:
- The followup definition.
-
setFollow
Set the followup definition.- Parameters:
follow
- The followup definition.- Returns:
- fluent API
-
isValid
public boolean isValid()Check if the schedule data is valid.Validation depends on the schedule
type
:once
: thestartTimestamp
must be greater than zerointerval
: the#getInterval() interval
must be set and be validfollowup
: thefollow up
must be set and contain at least one IDmanual
: always valid
- Returns:
-
equals
-
toString
-