Class CalendarBookingServiceUtil

java.lang.Object
com.liferay.calendar.service.CalendarBookingServiceUtil

public class CalendarBookingServiceUtil extends Object
Provides the remote service utility for CalendarBooking. This utility wraps com.liferay.calendar.service.impl.CalendarBookingServiceImpl and is an access point for service operations in application layer code running on a remote server. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
See Also:
Generated:
  • Constructor Details

    • CalendarBookingServiceUtil

      public CalendarBookingServiceUtil()
  • Method Details

    • addCalendarBooking

      public static CalendarBooking addCalendarBooking(long calendarId, long[] childCalendarIds, long parentCalendarBookingId, long recurringCalendarBookingId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String location, int startTimeYear, int startTimeMonth, int startTimeDay, int startTimeHour, int startTimeMinute, int endTimeYear, int endTimeMonth, int endTimeDay, int endTimeHour, int endTimeMinute, String timeZoneId, boolean allDay, String recurrence, long firstReminder, String firstReminderType, long secondReminder, String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCalendarBooking

      public static CalendarBooking addCalendarBooking(long calendarId, long[] childCalendarIds, long parentCalendarBookingId, long recurringCalendarBookingId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String location, long startTime, long endTime, boolean allDay, String recurrence, long firstReminder, String firstReminderType, long secondReminder, String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCalendarBooking

      public static CalendarBooking deleteCalendarBooking(long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCalendarBookingInstance

      public static void deleteCalendarBookingInstance(long calendarBookingId, int instanceIndex, boolean allFollowing) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCalendarBookingInstance

      public static void deleteCalendarBookingInstance(long calendarBookingId, int instanceIndex, boolean allFollowing, boolean deleteRecurringCalendarBookings) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCalendarBookingInstance

      public static void deleteCalendarBookingInstance(long calendarBookingId, long startTime, boolean allFollowing) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • exportCalendarBooking

      public static String exportCalendarBooking(long calendarBookingId, String type) throws Exception
      Throws:
      Exception
    • fetchCalendarBooking

      public static CalendarBooking fetchCalendarBooking(long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCalendarBooking

      public static CalendarBooking getCalendarBooking(long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCalendarBooking

      public static CalendarBooking getCalendarBooking(long calendarId, long parentCalendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCalendarBookingInstance

      public static CalendarBooking getCalendarBookingInstance(long calendarBookingId, int instanceIndex) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCalendarBookings

      public static List<CalendarBooking> getCalendarBookings(long calendarId, int[] statuses) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCalendarBookings

      public static List<CalendarBooking> getCalendarBookings(long calendarId, long startTime, long endTime) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCalendarBookings

      public static List<CalendarBooking> getCalendarBookings(long calendarId, long startTime, long endTime, int max) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCalendarBookingsRSS

      public static String getCalendarBookingsRSS(long calendarId, long startTime, long endTime, int max, String type, double version, String displayStyle, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getChildCalendarBookings

      public static List<CalendarBooking> getChildCalendarBookings(long parentCalendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getChildCalendarBookings

      public static List<CalendarBooking> getChildCalendarBookings(long parentCalendarBookingId, boolean includeStagingCalendarBookings) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getChildCalendarBookings

      public static List<CalendarBooking> getChildCalendarBookings(long parentCalendarBookingId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLastInstanceCalendarBooking

      public static CalendarBooking getLastInstanceCalendarBooking(long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getNewStartTimeAndDurationCalendarBooking

      public static CalendarBooking getNewStartTimeAndDurationCalendarBooking(long calendarBookingId, long offset, long duration) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      public static String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • hasChildCalendarBookings

      public static boolean hasChildCalendarBookings(long parentCalendarBookingId)
    • invokeTransition

      public static CalendarBooking invokeTransition(long calendarBookingId, int instanceIndex, int status, boolean updateInstance, boolean allFollowing, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • invokeTransition

      public static CalendarBooking invokeTransition(long calendarBookingId, long startTime, int status, boolean updateInstance, boolean allFollowing, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveCalendarBookingToTrash

      public static CalendarBooking moveCalendarBookingToTrash(long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restoreCalendarBookingFromTrash

      public static CalendarBooking restoreCalendarBookingFromTrash(long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      public static List<CalendarBooking> search(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, String keywords, long startTime, long endTime, TimeZone displayTimeZone, boolean recurring, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      public static List<CalendarBooking> search(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, String title, String description, String location, long startTime, long endTime, boolean recurring, int[] statuses, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCount

      public static int searchCount(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, String keywords, long startTime, long endTime, boolean recurring, int[] statuses) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCount

      public static int searchCount(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, String title, String description, String location, long startTime, long endTime, boolean recurring, int[] statuses, boolean andOperator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCalendarBooking

      public static CalendarBooking updateCalendarBooking(long calendarBookingId, long calendarId, long[] childCalendarIds, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String location, long startTime, long endTime, boolean allDay, String recurrence, long firstReminder, String firstReminderType, long secondReminder, String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCalendarBooking

      public static CalendarBooking updateCalendarBooking(long calendarBookingId, long calendarId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String location, long startTime, long endTime, boolean allDay, String recurrence, long firstReminder, String firstReminderType, long secondReminder, String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCalendarBookingInstance

      public static CalendarBooking updateCalendarBookingInstance(long calendarBookingId, int instanceIndex, long calendarId, long[] childCalendarIds, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String location, long startTime, long endTime, boolean allDay, boolean allFollowing, long firstReminder, String firstReminderType, long secondReminder, String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCalendarBookingInstance

      public static CalendarBooking updateCalendarBookingInstance(long calendarBookingId, int instanceIndex, long calendarId, long[] childCalendarIds, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String location, long startTime, long endTime, boolean allDay, String recurrence, boolean allFollowing, long firstReminder, String firstReminderType, long secondReminder, String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCalendarBookingInstance

      public static CalendarBooking updateCalendarBookingInstance(long calendarBookingId, int instanceIndex, long calendarId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String location, int startTimeYear, int startTimeMonth, int startTimeDay, int startTimeHour, int startTimeMinute, int endTimeYear, int endTimeMonth, int endTimeDay, int endTimeHour, int endTimeMinute, String timeZoneId, boolean allDay, String recurrence, boolean allFollowing, long firstReminder, String firstReminderType, long secondReminder, String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCalendarBookingInstance

      public static CalendarBooking updateCalendarBookingInstance(long calendarBookingId, int instanceIndex, long calendarId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String location, long startTime, long endTime, boolean allDay, String recurrence, boolean allFollowing, long firstReminder, String firstReminderType, long secondReminder, String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLastInstanceCalendarBookingRecurrence

      public static void updateLastInstanceCalendarBookingRecurrence(long calendarBookingId, String recurrence) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateOffsetAndDuration

      public static CalendarBooking updateOffsetAndDuration(long calendarBookingId, long calendarId, long[] childCalendarIds, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String location, long offset, long duration, boolean allDay, String recurrence, long firstReminder, String firstReminderType, long secondReminder, String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateOffsetAndDuration

      public static CalendarBooking updateOffsetAndDuration(long calendarBookingId, long calendarId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String location, long offset, long duration, boolean allDay, String recurrence, long firstReminder, String firstReminderType, long secondReminder, String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateRecurringCalendarBooking

      public static CalendarBooking updateRecurringCalendarBooking(long calendarBookingId, long calendarId, long[] childCalendarIds, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String location, long startTime, long endTime, boolean allDay, long firstReminder, String firstReminderType, long secondReminder, String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getService

      public static CalendarBookingService getService()