public class TimerUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TimerUtils.FREQUENCY_TYPE |
static class |
TimerUtils.TIMER_TYPE |
static class |
TimerUtils.WEEK_DAY |
Modifier and Type | Field and Description |
---|---|
static SimpleDateFormat |
DATE_FORMAT_HHMMSS |
static Date |
sunriseTime |
static Date |
sunsetTime |
Constructor and Description |
---|
TimerUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addTimer(Timer timer) |
static void |
deleteTimer(Integer id) |
static void |
deleteTimer(Timer timer) |
static void |
deleteTimers(List<Integer> ids) |
static void |
disableTimer(Timer timer) |
static void |
disableTimers(List<Integer> ids) |
static void |
enableTimer(Timer timer) |
static void |
enableTimers(List<Integer> ids) |
static void |
executeTimerOperation(ResourceModel resourceModel,
ResourceOperation operation) |
static String |
getFrequencyData(Timer timer) |
static Calendar |
getSunriseSunsetCalendar(TimerUtils.TIMER_TYPE timerType,
Long triggerTime) |
static Date |
getSunriseTime() |
static Date |
getSunsetTime() |
static Long |
getTime(String time) |
static String |
getTimerDataString(Timer timer) |
static Long |
getValidFromToTime(String date) |
static String |
getValidityString(Timer timer) |
static void |
updateSunriseSunset() |
static void |
updateTimer(Timer timer) |
public static Date sunriseTime
public static Date sunsetTime
public static final SimpleDateFormat DATE_FORMAT_HHMMSS
public static Date getSunriseTime()
public static Date getSunsetTime()
public static void updateTimer(Timer timer)
public static void addTimer(Timer timer)
public static void enableTimer(Timer timer)
public static void disableTimer(Timer timer)
public static void deleteTimer(Integer id)
public static void deleteTimer(Timer timer)
public static void executeTimerOperation(ResourceModel resourceModel, ResourceOperation operation)
public static Calendar getSunriseSunsetCalendar(TimerUtils.TIMER_TYPE timerType, Long triggerTime)
Copyright © 2015–2019. All rights reserved.