Class CalendarBookingLocalServiceUtil
com.liferay.calendar.service.impl.CalendarBookingLocalServiceImpl and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CalendarBookingaddCalendarBooking(long userId, 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) static CalendarBookingaddCalendarBooking(CalendarBooking calendarBooking) Adds the calendar booking to the database.static voidstatic CalendarBookingcreateCalendarBooking(long calendarBookingId) Creates a new calendar booking with the primary key.static com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) static CalendarBookingdeleteCalendarBooking(long calendarBookingId) Deletes the calendar booking with the primary key from the database.static CalendarBookingdeleteCalendarBooking(long calendarBookingId, boolean allRecurringInstances) static CalendarBookingdeleteCalendarBooking(CalendarBooking calendarBooking) Deletes the calendar booking from the database.static CalendarBookingdeleteCalendarBooking(CalendarBooking calendarBooking, boolean allRecurringInstances) static voiddeleteCalendarBookingInstance(long userId, long calendarBookingId, long startTime, boolean allFollowing) static voiddeleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, int instanceIndex, boolean allFollowing) static voiddeleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, int instanceIndex, boolean allFollowing, boolean deleteRecurringCalendarBookings) static voiddeleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, long startTime, boolean allFollowing) static voiddeleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, long startTime, boolean allFollowing, boolean deleteRecurringCalendarBookings) static voiddeleteCalendarBookings(long calendarId) static com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) static CalendarBookingdeleteRecurringCalendarBooking(long calendarBookingId) static CalendarBookingdeleteRecurringCalendarBooking(CalendarBooking calendarBooking) static <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static com.liferay.portal.kernel.dao.orm.DynamicQuerystatic <T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.static <T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.static <T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.static longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.static longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) Returns the number of rows matching the dynamic query.static StringexportCalendarBooking(long calendarBookingId, String type) static CalendarBookingfetchCalendarBooking(long calendarBookingId) static CalendarBookingfetchCalendarBooking(long calendarId, String vEventUid) static CalendarBookingfetchCalendarBooking(String uuid, long groupId) static CalendarBookingfetchCalendarBookingByUuidAndGroupId(String uuid, long groupId) Returns the calendar booking matching the UUID and group.static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerystatic CalendarBookinggetCalendarBooking(long calendarBookingId) Returns the calendar booking with the primary key.static CalendarBookinggetCalendarBooking(long calendarId, long parentCalendarBookingId) static CalendarBookinggetCalendarBookingByUuidAndGroupId(String uuid, long groupId) Returns the calendar booking matching the UUID and group.static CalendarBookinggetCalendarBookingInstance(long calendarBookingId, int instanceIndex) static List<CalendarBooking>getCalendarBookings(int start, int end) Returns a range of all the calendar bookings.static List<CalendarBooking>getCalendarBookings(long calendarId) static List<CalendarBooking>getCalendarBookings(long calendarId, int[] statuses) static List<CalendarBooking>getCalendarBookings(long calendarId, long startTime, long endTime) static List<CalendarBooking>getCalendarBookings(long calendarId, long startTime, long endTime, int max) static List<CalendarBooking>getCalendarBookingsByUuidAndCompanyId(String uuid, long companyId) Returns all the calendar bookings matching the UUID and company.static List<CalendarBooking>getCalendarBookingsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator) Returns a range of calendar bookings matching the UUID and company.static intReturns the number of calendar bookings.static intgetCalendarBookingsCount(long calendarId, long parentCalendarBookingId) static List<CalendarBooking>getChildCalendarBookings(long calendarBookingId) static List<CalendarBooking>getChildCalendarBookings(long parentCalendarBookingId, int status) static long[]getChildCalendarIds(long calendarBookingId, long calendarId) static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuerystatic CalendarBookinggetLastInstanceCalendarBooking(CalendarBooking calendarBooking) static StringReturns the OSGi service identifier.static com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) static List<CalendarBooking>getRecurringCalendarBookings(CalendarBooking calendarBooking) static List<CalendarBooking>getRecurringCalendarBookings(CalendarBooking calendarBooking, long startTime) static CalendarBookingLocalServicestatic booleanhasExclusiveCalendarBooking(Calendar calendar, long startTime, long endTime) static CalendarBookinginvokeTransition(long userId, CalendarBooking calendarBooking, long startTime, int status, boolean updateInstance, boolean allFollowing, com.liferay.portal.kernel.service.ServiceContext serviceContext) static booleanisStagingCalendarBooking(CalendarBooking calendarBooking) static CalendarBookingmoveCalendarBookingToTrash(long userId, long calendarBookingId) static CalendarBookingmoveCalendarBookingToTrash(long userId, CalendarBooking calendarBooking) static CalendarBookingrestoreCalendarBookingFromTrash(long userId, long calendarBookingId) 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) 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) static intsearchCount(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, String keywords, long startTime, long endTime, int[] statuses) static intsearchCount(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, String title, String description, String location, long startTime, long endTime, int[] statuses, boolean andOperator) static voidupdateAsset(long userId, CalendarBooking calendarBooking, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) static CalendarBookingupdateCalendarBooking(long userId, 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) static CalendarBookingupdateCalendarBooking(long userId, 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) static CalendarBookingupdateCalendarBooking(CalendarBooking calendarBooking) Updates the calendar booking in the database or adds it if it does not yet exist.static CalendarBookingupdateCalendarBookingInstance(long userId, 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) static CalendarBookingupdateCalendarBookingInstance(long userId, 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) static CalendarBookingupdateCalendarBookingInstance(long userId, 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) static voidupdateLastInstanceCalendarBookingRecurrence(CalendarBooking calendarBooking, String recurrence) static CalendarBookingupdateRecurringCalendarBooking(long userId, 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) static CalendarBookingupdateStatus(long userId, long calendarBookingId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CalendarBookingupdateStatus(long userId, CalendarBooking calendarBooking, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext)
-
Constructor Details
-
CalendarBookingLocalServiceUtil
public CalendarBookingLocalServiceUtil()
-
-
Method Details
-
addCalendarBooking
Adds the calendar booking to the database. Also notifies the appropriate model listeners.Important: Inspect CalendarBookingLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Parameters:
calendarBooking- the calendar booking- Returns:
- the calendar booking that was added
-
addCalendarBooking
public static CalendarBooking addCalendarBooking(long userId, long calendarId, long[] childCalendarIds, long parentCalendarBookingId, long recurringCalendarBookingId, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> 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
-
checkCalendarBookings
public static void checkCalendarBookings() throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
createCalendarBooking
Creates a new calendar booking with the primary key. Does not add the calendar booking to the database.- Parameters:
calendarBookingId- the primary key for the new calendar booking- Returns:
- the new calendar booking
-
createPersistedModel
public static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBooking
public static CalendarBooking deleteCalendarBooking(CalendarBooking calendarBooking) throws com.liferay.portal.kernel.exception.PortalException Deletes the calendar booking from the database. Also notifies the appropriate model listeners.Important: Inspect CalendarBookingLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Parameters:
calendarBooking- the calendar booking- Returns:
- the calendar booking that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBooking
public static CalendarBooking deleteCalendarBooking(CalendarBooking calendarBooking, boolean allRecurringInstances) 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 Deletes the calendar booking with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect CalendarBookingLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Parameters:
calendarBookingId- the primary key of the calendar booking- Returns:
- the calendar booking that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a calendar booking with the primary key could not be found
-
deleteCalendarBooking
public static CalendarBooking deleteCalendarBooking(long calendarBookingId, boolean allRecurringInstances) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBookingInstance
public static void deleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, int instanceIndex, boolean allFollowing) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBookingInstance
public static void deleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, 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 userId, CalendarBooking calendarBooking, long startTime, boolean allFollowing) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBookingInstance
public static void deleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, long startTime, boolean allFollowing, boolean deleteRecurringCalendarBookings) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBookingInstance
public static void deleteCalendarBookingInstance(long userId, long calendarBookingId, long startTime, boolean allFollowing) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBookings
public static void deleteCalendarBookings(long calendarId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteRecurringCalendarBooking
public static CalendarBooking deleteRecurringCalendarBooking(CalendarBooking calendarBooking) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteRecurringCalendarBooking
public static CalendarBooking deleteRecurringCalendarBooking(long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dslQueryCount
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dynamicQuery
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() -
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public static <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarBookingModelImpl.- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public static <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarBookingModelImpl.- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
exportCalendarBooking
- Throws:
Exception
-
fetchCalendarBooking
-
fetchCalendarBooking
-
fetchCalendarBooking
-
fetchCalendarBookingByUuidAndGroupId
Returns the calendar booking matching the UUID and group.- Parameters:
uuid- the calendar booking's UUIDgroupId- the primary key of the group- Returns:
- the matching calendar booking, or
nullif a matching calendar booking could not be found
-
getActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getCalendarBooking
public static CalendarBooking getCalendarBooking(long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException Returns the calendar booking with the primary key.- Parameters:
calendarBookingId- the primary key of the calendar booking- Returns:
- the calendar booking
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a calendar booking with the primary key could not be found
-
getCalendarBooking
public static CalendarBooking getCalendarBooking(long calendarId, long parentCalendarBookingId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCalendarBookingByUuidAndGroupId
public static CalendarBooking getCalendarBookingByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the calendar booking matching the UUID and group.- Parameters:
uuid- the calendar booking's UUIDgroupId- the primary key of the group- Returns:
- the matching calendar booking
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a matching calendar booking could not be found
-
getCalendarBookingInstance
public static CalendarBooking getCalendarBookingInstance(long calendarBookingId, int instanceIndex) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCalendarBookings
Returns a range of all the calendar bookings.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarBookingModelImpl.- Parameters:
start- the lower bound of the range of calendar bookingsend- the upper bound of the range of calendar bookings (not inclusive)- Returns:
- the range of calendar bookings
-
getCalendarBookings
-
getCalendarBookings
-
getCalendarBookings
public static List<CalendarBooking> getCalendarBookings(long calendarId, long startTime, long endTime) -
getCalendarBookings
public static List<CalendarBooking> getCalendarBookings(long calendarId, long startTime, long endTime, int max) -
getCalendarBookingsByUuidAndCompanyId
public static List<CalendarBooking> getCalendarBookingsByUuidAndCompanyId(String uuid, long companyId) Returns all the calendar bookings matching the UUID and company.- Parameters:
uuid- the UUID of the calendar bookingscompanyId- the primary key of the company- Returns:
- the matching calendar bookings, or an empty list if no matches were found
-
getCalendarBookingsByUuidAndCompanyId
public static List<CalendarBooking> getCalendarBookingsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator) Returns a range of calendar bookings matching the UUID and company.- Parameters:
uuid- the UUID of the calendar bookingscompanyId- the primary key of the companystart- the lower bound of the range of calendar bookingsend- the upper bound of the range of calendar bookings (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the range of matching calendar bookings, or an empty list if no matches were found
-
getCalendarBookingsCount
public static int getCalendarBookingsCount()Returns the number of calendar bookings.- Returns:
- the number of calendar bookings
-
getCalendarBookingsCount
public static int getCalendarBookingsCount(long calendarId, long parentCalendarBookingId) -
getChildCalendarBookings
-
getChildCalendarBookings
public static List<CalendarBooking> getChildCalendarBookings(long parentCalendarBookingId, int status) -
getChildCalendarIds
public static long[] getChildCalendarIds(long calendarBookingId, long calendarId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getExportActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) -
getIndexableActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getLastInstanceCalendarBooking
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRecurringCalendarBookings
-
getRecurringCalendarBookings
public static List<CalendarBooking> getRecurringCalendarBookings(CalendarBooking calendarBooking, long startTime) -
hasExclusiveCalendarBooking
public static boolean hasExclusiveCalendarBooking(Calendar calendar, long startTime, long endTime) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
invokeTransition
public static CalendarBooking invokeTransition(long userId, CalendarBooking calendarBooking, 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
-
isStagingCalendarBooking
public static boolean isStagingCalendarBooking(CalendarBooking calendarBooking) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveCalendarBookingToTrash
public static CalendarBooking moveCalendarBookingToTrash(long userId, CalendarBooking calendarBooking) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveCalendarBookingToTrash
public static CalendarBooking moveCalendarBookingToTrash(long userId, long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreCalendarBookingFromTrash
public static CalendarBooking restoreCalendarBookingFromTrash(long userId, 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) -
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) -
searchCount
public static int searchCount(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, String keywords, long startTime, long endTime, int[] statuses) -
searchCount
-
updateAsset
public static void updateAsset(long userId, CalendarBooking calendarBooking, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCalendarBooking
Updates the calendar booking in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect CalendarBookingLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Parameters:
calendarBooking- the calendar booking- Returns:
- the calendar booking that was updated
-
updateCalendarBooking
public static CalendarBooking updateCalendarBooking(long userId, long calendarBookingId, long calendarId, long[] childCalendarIds, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> 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
-
updateCalendarBooking
public static CalendarBooking updateCalendarBooking(long userId, long calendarBookingId, long calendarId, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> 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
-
updateCalendarBookingInstance
public static CalendarBooking updateCalendarBookingInstance(long userId, long calendarBookingId, int instanceIndex, long calendarId, long[] childCalendarIds, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> 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
-
updateCalendarBookingInstance
public static CalendarBooking updateCalendarBookingInstance(long userId, long calendarBookingId, int instanceIndex, long calendarId, long[] childCalendarIds, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> 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
-
updateCalendarBookingInstance
public static CalendarBooking updateCalendarBookingInstance(long userId, long calendarBookingId, int instanceIndex, long calendarId, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> 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
-
updateLastInstanceCalendarBookingRecurrence
public static void updateLastInstanceCalendarBookingRecurrence(CalendarBooking calendarBooking, String recurrence) -
updateRecurringCalendarBooking
public static CalendarBooking updateRecurringCalendarBooking(long userId, long calendarBookingId, long calendarId, long[] childCalendarIds, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> 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
-
updateStatus
public static CalendarBooking updateStatus(long userId, CalendarBooking calendarBooking, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
public static CalendarBooking updateStatus(long userId, long calendarBookingId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-