Class CalendarBookingTestUtil

java.lang.Object
com.liferay.calendar.test.util.CalendarBookingTestUtil

public class CalendarBookingTestUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.liferay.calendar.model.CalendarBooking
    addAllDayCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long startTime, long endTime, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
     
    static com.liferay.calendar.model.CalendarBooking
    addCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long[] childCalendarBookingIds, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long startTime, long endTime, boolean allDay, com.liferay.calendar.recurrence.Recurrence recurrence, int firstReminder, com.liferay.calendar.notification.NotificationType firstReminderType, int secondReminder, com.liferay.calendar.notification.NotificationType secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    addCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long[] childCalendarBookingIds, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long startTime, long endTime, com.liferay.calendar.recurrence.Recurrence recurrence, int firstReminder, com.liferay.calendar.notification.NotificationType firstReminderType, int secondReminder, com.liferay.calendar.notification.NotificationType secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    addCalendarBookingWithAction(com.liferay.portal.kernel.model.User user, int action)
     
    static com.liferay.calendar.model.CalendarBooking
    addChildCalendarBooking(com.liferay.calendar.model.Calendar invitingCalendar, com.liferay.calendar.model.Calendar invitedCalendar)
     
    static com.liferay.calendar.model.CalendarBooking
    addChildCalendarBooking(com.liferay.calendar.model.Calendar invitingCalendar, com.liferay.calendar.model.Calendar invitedCalendar, long startTime, long endTime)
     
    static com.liferay.calendar.model.CalendarBooking
    addDailyRecurringCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    addDraftCalendarBooking(com.liferay.portal.kernel.model.User user)
     
    static com.liferay.calendar.model.CalendarBooking
    addMasterCalendarBooking(com.liferay.calendar.model.Calendar invitingCalendar, com.liferay.calendar.model.Calendar invitedCalendar)
     
    static com.liferay.calendar.model.CalendarBooking
    addMasterCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long[] childCalendarBookingIds, long startTime, long endTime, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    addMasterCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long[] childCalendarIds, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    addMasterCalendarBookingWithWorkflow(com.liferay.calendar.model.Calendar invitingCalendar, com.liferay.calendar.model.Calendar invitedCalendar, int actionPublish)
     
    static com.liferay.calendar.model.CalendarBooking
    addMasterRecurringCalendarBooking(com.liferay.calendar.model.Calendar invitedCalendar, com.liferay.calendar.model.Calendar invitingCalendar)
     
    static com.liferay.calendar.model.CalendarBooking
    addPublishedCalendarBooking(com.liferay.portal.kernel.model.User user)
     
    static com.liferay.calendar.model.CalendarBooking
    addRecurringCalendarBooking(com.liferay.calendar.model.Calendar invitingCalendar, com.liferay.calendar.model.Calendar invitedCalendar, com.liferay.calendar.recurrence.Recurrence recurrence)
     
    static com.liferay.calendar.model.CalendarBooking
    addRecurringCalendarBooking(com.liferay.calendar.model.Calendar invitingCalendar, com.liferay.calendar.model.Calendar invitedCalendar, com.liferay.calendar.recurrence.Recurrence recurrence, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    addRecurringCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long startTime, long endTime, com.liferay.calendar.recurrence.Recurrence recurrence, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    addRecurringCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, com.liferay.calendar.recurrence.Recurrence recurrence, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    addRecurringCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.recurrence.Recurrence recurrence, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    addRegularCalendarBooking(com.liferay.calendar.model.Calendar calendar)
     
    static com.liferay.calendar.model.CalendarBooking
    addRegularCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long startTime, long endTime, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    addRegularCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    addRegularCalendarBookingWithReminders(com.liferay.calendar.model.Calendar calendar, long startTime, long endTime, int firstReminder, int secondReminder)
     
    static com.liferay.calendar.model.CalendarBooking
    addRegularCalendarBookingWithTitleAndDescription(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long startTime, long endTime, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    addRegularCalendarBookingWithWorkflow(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.portal.kernel.service.ServiceContext
    createServiceContext(com.liferay.portal.kernel.model.User user)
     
    static long
    getCalendarTimeInMillis(int day, int hour, int minute)
     
    static com.liferay.calendar.model.CalendarBooking
    getChildCalendarBooking(com.liferay.calendar.model.CalendarBooking calendarBooking)
     
    static com.liferay.calendar.model.CalendarBooking
    updateCalendarBooking(com.liferay.calendar.model.CalendarBooking calendarBooking, long[] childCalendarIds, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    updateCalendarBooking(com.liferay.calendar.model.CalendarBooking calendarBooking, Map<Locale,String> titleMap, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    updateCalendarBookingInstance(com.liferay.calendar.model.CalendarBooking calendarBooking, int instanceIndex, Map<Locale,String> titleMap, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    updateCalendarBookingInstance(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.CalendarBooking calendarBooking, int instanceIndex, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long instanceStartTime, long instanceEndTime, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    updateCalendarBookingInstanceAndAllFollowing(com.liferay.calendar.model.CalendarBooking calendarBooking, int instanceIndex, Map<Locale,String> titleMap, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    updateCalendarBookingInstanceAndAllFollowing(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.CalendarBooking calendarBooking, int instanceIndex, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long instanceStartTime, long instanceEndTime, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.calendar.model.CalendarBooking
    updateRecurringCalendarBookingInstanceAndAllFollowing(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.CalendarBooking calendarBooking, int instanceIndex, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long instanceStartTime, long instanceEndTime, String recurrence, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CalendarBookingTestUtil

      public CalendarBookingTestUtil()
  • Method Details

    • addAllDayCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addAllDayCalendarBooking(String timeZoneId) throws Exception
      Throws:
      Exception
    • addAllDayCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addAllDayCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long startTime, long endTime, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long[] childCalendarBookingIds, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long startTime, long endTime, boolean allDay, com.liferay.calendar.recurrence.Recurrence recurrence, int firstReminder, com.liferay.calendar.notification.NotificationType firstReminderType, int secondReminder, com.liferay.calendar.notification.NotificationType 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 com.liferay.calendar.model.CalendarBooking addCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long[] childCalendarBookingIds, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long startTime, long endTime, com.liferay.calendar.recurrence.Recurrence recurrence, int firstReminder, com.liferay.calendar.notification.NotificationType firstReminderType, int secondReminder, com.liferay.calendar.notification.NotificationType secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCalendarBookingWithAction

      public static com.liferay.calendar.model.CalendarBooking addCalendarBookingWithAction(com.liferay.portal.kernel.model.User user, int action) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addChildCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addChildCalendarBooking(com.liferay.calendar.model.Calendar invitingCalendar, com.liferay.calendar.model.Calendar invitedCalendar) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addChildCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addChildCalendarBooking(com.liferay.calendar.model.Calendar invitingCalendar, com.liferay.calendar.model.Calendar invitedCalendar, long startTime, long endTime) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addDailyRecurringCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addDailyRecurringCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addDraftCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addDraftCalendarBooking(com.liferay.portal.kernel.model.User user) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMasterCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addMasterCalendarBooking(com.liferay.calendar.model.Calendar invitingCalendar, com.liferay.calendar.model.Calendar invitedCalendar) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMasterCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addMasterCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long[] childCalendarBookingIds, long startTime, long endTime, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMasterCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addMasterCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long[] childCalendarIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMasterCalendarBookingWithWorkflow

      public static com.liferay.calendar.model.CalendarBooking addMasterCalendarBookingWithWorkflow(com.liferay.calendar.model.Calendar invitingCalendar, com.liferay.calendar.model.Calendar invitedCalendar, int actionPublish) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addMasterRecurringCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addMasterRecurringCalendarBooking(com.liferay.calendar.model.Calendar invitedCalendar, com.liferay.calendar.model.Calendar invitingCalendar) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addPublishedCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addPublishedCalendarBooking(com.liferay.portal.kernel.model.User user) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addRecurringCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addRecurringCalendarBooking(com.liferay.calendar.model.Calendar invitingCalendar, com.liferay.calendar.model.Calendar invitedCalendar, com.liferay.calendar.recurrence.Recurrence recurrence) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addRecurringCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addRecurringCalendarBooking(com.liferay.calendar.model.Calendar invitingCalendar, com.liferay.calendar.model.Calendar invitedCalendar, com.liferay.calendar.recurrence.Recurrence recurrence, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addRecurringCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addRecurringCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long startTime, long endTime, com.liferay.calendar.recurrence.Recurrence recurrence, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addRecurringCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addRecurringCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, com.liferay.calendar.recurrence.Recurrence recurrence, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addRecurringCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addRecurringCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.recurrence.Recurrence recurrence, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addRegularCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addRegularCalendarBooking(com.liferay.calendar.model.Calendar calendar) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addRegularCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addRegularCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, long startTime, long endTime, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addRegularCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking addRegularCalendarBooking(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addRegularCalendarBookingWithReminders

      public static com.liferay.calendar.model.CalendarBooking addRegularCalendarBookingWithReminders(com.liferay.calendar.model.Calendar calendar, long startTime, long endTime, int firstReminder, int secondReminder) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addRegularCalendarBookingWithTitleAndDescription

      public static com.liferay.calendar.model.CalendarBooking addRegularCalendarBookingWithTitleAndDescription(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long startTime, long endTime, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addRegularCalendarBookingWithWorkflow

      public static com.liferay.calendar.model.CalendarBooking addRegularCalendarBookingWithWorkflow(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.Calendar calendar, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createServiceContext

      public static com.liferay.portal.kernel.service.ServiceContext createServiceContext(com.liferay.portal.kernel.model.User user)
    • getCalendarTimeInMillis

      public static long getCalendarTimeInMillis(int day, int hour, int minute)
    • getChildCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking getChildCalendarBooking(com.liferay.calendar.model.CalendarBooking calendarBooking)
    • updateCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking updateCalendarBooking(com.liferay.calendar.model.CalendarBooking calendarBooking, long[] childCalendarIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCalendarBooking

      public static com.liferay.calendar.model.CalendarBooking updateCalendarBooking(com.liferay.calendar.model.CalendarBooking calendarBooking, Map<Locale,String> titleMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCalendarBookingInstance

      public static com.liferay.calendar.model.CalendarBooking updateCalendarBookingInstance(com.liferay.calendar.model.CalendarBooking calendarBooking, int instanceIndex, Map<Locale,String> titleMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCalendarBookingInstance

      public static com.liferay.calendar.model.CalendarBooking updateCalendarBookingInstance(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.CalendarBooking calendarBooking, int instanceIndex, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long instanceStartTime, long instanceEndTime, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCalendarBookingInstanceAndAllFollowing

      public static com.liferay.calendar.model.CalendarBooking updateCalendarBookingInstanceAndAllFollowing(com.liferay.calendar.model.CalendarBooking calendarBooking, int instanceIndex, Map<Locale,String> titleMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCalendarBookingInstanceAndAllFollowing

      public static com.liferay.calendar.model.CalendarBooking updateCalendarBookingInstanceAndAllFollowing(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.CalendarBooking calendarBooking, int instanceIndex, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long instanceStartTime, long instanceEndTime, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateRecurringCalendarBookingInstanceAndAllFollowing

      public static com.liferay.calendar.model.CalendarBooking updateRecurringCalendarBookingInstanceAndAllFollowing(com.liferay.portal.kernel.model.User user, com.liferay.calendar.model.CalendarBooking calendarBooking, int instanceIndex, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long instanceStartTime, long instanceEndTime, String recurrence, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException