public class ScheduleAdaptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DAYS_OF_MONTH |
static java.lang.String |
DAYS_OF_WEEK |
static java.lang.String |
FREQUENCY |
static java.lang.String |
TIME_INTERVAL |
Constructor and Description |
---|
ScheduleAdaptor() |
Modifier and Type | Method and Description |
---|---|
static CreateScheduleResult |
createSchedule(SolidFireElement sfe,
CreateScheduleRequest request)
This adaptor modifies the Simple Schedule object, which uses the Frequency classes that delineate different types
of scheduling frequencies, into an ApiSchedule object.
|
static GetScheduleResult |
getSchedule(SolidFireElement sfe,
GetScheduleRequest request)
This adaptor modifies the ApiSchedule object returned by the GetSchedule API call into a Simple Schedule
object using the Frequency classes that delineate different types of scheduling frequencies.
|
static ListSchedulesResult |
listSchedules(SolidFireElement sfe)
This adaptor modifies the ApiSchedule object returned by the ListSchedules API call into a Simple Schedule
object using the Frequency classes that delineate different types of scheduling frequencies.
|
static ModifyScheduleResult |
modifySchedule(SolidFireElement sfe,
ModifyScheduleRequest request)
This adaptor modifies the Simple Schedule object, which uses the Frequency classes that delineate different types
of scheduling frequencies, into an ApiSchedule object.
|
static ApiSchedule |
toApiSchedule(Schedule schedule)
Converts a Schedule object into an ApiSchedule object
|
static Schedule |
toSchedule(ApiSchedule api)
Converts an ApiSchedule object into a Schedule object
|
public static final java.lang.String TIME_INTERVAL
public static final java.lang.String DAYS_OF_MONTH
public static final java.lang.String DAYS_OF_WEEK
public static final java.lang.String FREQUENCY
public static GetScheduleResult getSchedule(SolidFireElement sfe, GetScheduleRequest request)
sfe
- An instance of SolidFireElementrequest
- The original request object.Frequency
public static ListSchedulesResult listSchedules(SolidFireElement sfe)
sfe
- An instance of SolidFireElementpublic static CreateScheduleResult createSchedule(SolidFireElement sfe, CreateScheduleRequest request)
sfe
- An instance of SolidFireElementrequest
- The original request object.public static ModifyScheduleResult modifySchedule(SolidFireElement sfe, ModifyScheduleRequest request)
sfe
- An instance of SolidFireElementrequest
- The original request object.public static Schedule toSchedule(ApiSchedule api)
api
- the ApiSchedule object to be convertedpublic static ApiSchedule toApiSchedule(Schedule schedule)
schedule
- the Schedule object to be converted