Class ScheduleData
- java.lang.Object
-
- com.gentics.contentnode.rest.model.scheduler.ScheduleData
-
public class ScheduleData extends Object
Definition when a schedule should be executed.
-
-
Constructor Summary
Constructors Constructor Description ScheduleData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
getEndTimestamp()
Get the end timestamp.ScheduleFollow
getFollow()
Get the followup definition.ScheduleInterval
getInterval()
Get the interval definition.int
getStartTimestamp()
Get the start timestamp.ScheduleType
getType()
Get the schedule type.boolean
isValid()
Check if the schedule data is valid.ScheduleData
setEndTimestamp(int endTimestamp)
Set the end timestamp.ScheduleData
setFollow(ScheduleFollow follow)
Set the followup definition.ScheduleData
setInterval(ScheduleInterval interval)
Set the interval definition.ScheduleData
setStartTimestamp(int startTimestamp)
Set the start timestamp.ScheduleData
setType(ScheduleType type)
Set the schedule type.String
toString()
-
-
-
Method Detail
-
getType
public ScheduleType getType()
Get the schedule type.- Returns:
- The schedule type.
-
setType
public ScheduleData setType(ScheduleType type)
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
public ScheduleData setStartTimestamp(int startTimestamp)
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
public ScheduleData setEndTimestamp(int endTimestamp)
Set the end timestamp.- Parameters:
endTimestamp
- The end timestamp.- Returns:
- fluent API
-
getInterval
public ScheduleInterval getInterval()
Get the interval definition.- Returns:
- The interval definition.
-
setInterval
public ScheduleData setInterval(ScheduleInterval interval)
Set the interval definition.- Parameters:
interval
- The interval definition.- Returns:
- fluent API
-
getFollow
public ScheduleFollow getFollow()
Get the followup definition.- Returns:
- The followup definition.
-
setFollow
public ScheduleData setFollow(ScheduleFollow follow)
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:
-
-