public class CalendarUtil
extends java.lang.Object
Constructor and Description |
---|
CalendarUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.TimeZone |
getCalendarBookingDisplayTimeZone(CalendarBooking calendarBooking,
java.util.TimeZone defaultTimeZone) |
static com.liferay.portal.kernel.json.JSONObject |
getCalendarRenderingRules(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
long[] calendarIds,
int[] statuses,
long startTime,
long endTime,
java.lang.String ruleName,
java.util.TimeZone timeZone) |
static java.util.Collection<CalendarResource> |
getCalendarResources(java.util.List<CalendarBooking> calendarBookings) |
static CalendarBooking |
getNewDurationCalendarBooking(CalendarBooking calendarBooking,
long duration) |
static CalendarBooking |
getNewStartTimeCalendarBooking(CalendarBooking calendarBooking,
long offset) |
static com.liferay.portal.kernel.util.OrderByComparator<Calendar> |
getOrderByComparator(java.lang.String orderByCol,
java.lang.String orderByType) |
static java.lang.String[] |
splitKeywords(java.lang.String keywords) |
static com.liferay.portal.kernel.json.JSONObject |
toCalendarBookingJSONObject(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
CalendarBooking calendarBooking,
java.util.TimeZone timeZone) |
static com.liferay.portal.kernel.json.JSONArray |
toCalendarBookingsJSONArray(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
java.util.List<CalendarBooking> calendarBookings) |
static com.liferay.portal.kernel.json.JSONArray |
toCalendarBookingsJSONArray(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
java.util.List<CalendarBooking> calendarBookings,
java.util.TimeZone timeZone) |
static com.liferay.portal.kernel.json.JSONObject |
toCalendarJSONObject(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
Calendar calendar) |
static com.liferay.portal.kernel.json.JSONObject |
toCalendarResourceJSONObject(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
CalendarResource calendarResource) |
static com.liferay.portal.kernel.json.JSONArray |
toCalendarsJSONArray(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
java.util.List<Calendar> calendars) |
public static java.util.TimeZone getCalendarBookingDisplayTimeZone(CalendarBooking calendarBooking, java.util.TimeZone defaultTimeZone)
public static com.liferay.portal.kernel.json.JSONObject getCalendarRenderingRules(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, long[] calendarIds, int[] statuses, long startTime, long endTime, java.lang.String ruleName, java.util.TimeZone timeZone) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.Collection<CalendarResource> getCalendarResources(java.util.List<CalendarBooking> calendarBookings) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking getNewDurationCalendarBooking(CalendarBooking calendarBooking, long duration)
public static CalendarBooking getNewStartTimeCalendarBooking(CalendarBooking calendarBooking, long offset)
public static com.liferay.portal.kernel.util.OrderByComparator<Calendar> getOrderByComparator(java.lang.String orderByCol, java.lang.String orderByType)
public static java.lang.String[] splitKeywords(java.lang.String keywords)
public static com.liferay.portal.kernel.json.JSONObject toCalendarBookingJSONObject(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, CalendarBooking calendarBooking, java.util.TimeZone timeZone)
public static com.liferay.portal.kernel.json.JSONArray toCalendarBookingsJSONArray(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, java.util.List<CalendarBooking> calendarBookings) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.json.JSONArray toCalendarBookingsJSONArray(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, java.util.List<CalendarBooking> calendarBookings, java.util.TimeZone timeZone)
public static com.liferay.portal.kernel.json.JSONObject toCalendarJSONObject(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, Calendar calendar) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.json.JSONObject toCalendarResourceJSONObject(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, CalendarResource calendarResource)
public static com.liferay.portal.kernel.json.JSONArray toCalendarsJSONArray(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, java.util.List<Calendar> calendars) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException