Class CalendarBookingLocalServiceWrapper
- All Implemented Interfaces:
CalendarBookingLocalService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.change.tracking.CTService<CalendarBooking>
,com.liferay.portal.kernel.service.PersistedModelLocalService
,com.liferay.portal.kernel.service.ServiceWrapper<CalendarBookingLocalService>
CalendarBookingLocalService
.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionCalendarBookingLocalServiceWrapper
(CalendarBookingLocalService calendarBookingLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddCalendarBooking
(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) addCalendarBooking
(CalendarBooking calendarBooking) Adds the calendar booking to the database.void
createCalendarBooking
(long calendarBookingId) Creates a new calendar booking with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) deleteCalendarBooking
(long calendarBookingId) Deletes the calendar booking with the primary key from the database.deleteCalendarBooking
(long calendarBookingId, boolean allRecurringInstances) deleteCalendarBooking
(CalendarBooking calendarBooking) Deletes the calendar booking from the database.deleteCalendarBooking
(CalendarBooking calendarBooking, boolean allRecurringInstances) void
deleteCalendarBookingInstance
(long userId, long calendarBookingId, long startTime, boolean allFollowing) void
deleteCalendarBookingInstance
(long userId, CalendarBooking calendarBooking, int instanceIndex, boolean allFollowing) void
deleteCalendarBookingInstance
(long userId, CalendarBooking calendarBooking, int instanceIndex, boolean allFollowing, boolean deleteRecurringCalendarBookings) void
deleteCalendarBookingInstance
(long userId, CalendarBooking calendarBooking, long startTime, boolean allFollowing) void
deleteCalendarBookingInstance
(long userId, CalendarBooking calendarBooking, long startTime, boolean allFollowing, boolean deleteRecurringCalendarBookings) void
deleteCalendarBookings
(long calendarId) com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) deleteRecurringCalendarBooking
(long calendarBookingId) deleteRecurringCalendarBooking
(CalendarBooking calendarBooking) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery
<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<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.<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.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.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.exportCalendarBooking
(long calendarBookingId, String type) fetchCalendarBooking
(long calendarBookingId) fetchCalendarBooking
(long calendarId, String vEventUid) fetchCalendarBooking
(String uuid, long groupId) fetchCalendarBookingByUuidAndGroupId
(String uuid, long groupId) Returns the calendar booking matching the UUID and group.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
com.liferay.portal.kernel.service.persistence.BasePersistence<?>
getCalendarBooking
(long calendarBookingId) Returns the calendar booking with the primary key.getCalendarBooking
(long calendarId, long parentCalendarBookingId) getCalendarBookingByUuidAndGroupId
(String uuid, long groupId) Returns the calendar booking matching the UUID and group.getCalendarBookingInstance
(long calendarBookingId, int instanceIndex) getCalendarBookings
(int start, int end) Returns a range of all the calendar bookings.getCalendarBookings
(long calendarId) getCalendarBookings
(long calendarId, int[] statuses) getCalendarBookings
(long calendarId, long startTime, long endTime) getCalendarBookings
(long calendarId, long startTime, long endTime, int max) getCalendarBookingsByUuidAndCompanyId
(String uuid, long companyId) Returns all the calendar bookings matching the UUID and company.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.int
Returns the number of calendar bookings.int
getCalendarBookingsCount
(long calendarId, long parentCalendarBookingId) getChildCalendarBookings
(long calendarBookingId) getChildCalendarBookings
(long parentCalendarBookingId, int status) long[]
getChildCalendarIds
(long calendarBookingId, long calendarId) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CalendarBooking>
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
getLastInstanceCalendarBooking
(CalendarBooking calendarBooking) Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) getRecurringCalendarBookings
(CalendarBooking calendarBooking) getRecurringCalendarBookings
(CalendarBooking calendarBooking, long startTime) boolean
hasExclusiveCalendarBooking
(Calendar calendar, long startTime, long endTime) invokeTransition
(long userId, CalendarBooking calendarBooking, long startTime, int status, boolean updateInstance, boolean allFollowing, com.liferay.portal.kernel.service.ServiceContext serviceContext) boolean
isStagingCalendarBooking
(CalendarBooking calendarBooking) moveCalendarBookingToTrash
(long userId, long calendarBookingId) moveCalendarBookingToTrash
(long userId, CalendarBooking calendarBooking) restoreCalendarBookingFromTrash
(long userId, long calendarBookingId) 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
(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) int
searchCount
(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, String keywords, long startTime, long endTime, int[] statuses) int
searchCount
(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, String title, String description, String location, long startTime, long endTime, int[] statuses, boolean andOperator) void
setWrappedService
(CalendarBookingLocalService calendarBookingLocalService) void
updateAsset
(long userId, CalendarBooking calendarBooking, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) updateCalendarBooking
(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) updateCalendarBooking
(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) updateCalendarBooking
(CalendarBooking calendarBooking) Updates the calendar booking in the database or adds it if it does not yet exist.updateCalendarBookingInstance
(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) updateCalendarBookingInstance
(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) updateCalendarBookingInstance
(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) void
updateLastInstanceCalendarBookingRecurrence
(CalendarBooking calendarBooking, String recurrence) updateRecurringCalendarBooking
(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) updateStatus
(long userId, long calendarBookingId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateStatus
(long userId, CalendarBooking calendarBooking, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CalendarBooking>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
CalendarBookingLocalServiceWrapper
public CalendarBookingLocalServiceWrapper() -
CalendarBookingLocalServiceWrapper
-
-
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.
- Specified by:
addCalendarBooking
in interfaceCalendarBookingLocalService
- Parameters:
calendarBooking
- the calendar booking- Returns:
- the calendar booking that was added
-
addCalendarBooking
public 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) - Specified by:
addCalendarBooking
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkCalendarBookings
public void checkCalendarBookings() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
checkCalendarBookings
in interfaceCalendarBookingLocalService
- 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.- Specified by:
createCalendarBooking
in interfaceCalendarBookingLocalService
- Parameters:
calendarBookingId
- the primary key for the new calendar booking- Returns:
- the new calendar booking
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModel
in interfaceCalendarBookingLocalService
- Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBooking
public 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.
- Specified by:
deleteCalendarBooking
in interfaceCalendarBookingLocalService
- Parameters:
calendarBooking
- the calendar booking- Returns:
- the calendar booking that was removed
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBooking
public CalendarBooking deleteCalendarBooking(CalendarBooking calendarBooking, boolean allRecurringInstances) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCalendarBooking
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBooking
public 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.
- Specified by:
deleteCalendarBooking
in interfaceCalendarBookingLocalService
- Parameters:
calendarBookingId
- the primary key of the calendar booking- Returns:
- the calendar booking that was removed
- Throws:
PortalException
- if a calendar booking with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBooking
public CalendarBooking deleteCalendarBooking(long calendarBookingId, boolean allRecurringInstances) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCalendarBooking
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBookingInstance
public void deleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, int instanceIndex, boolean allFollowing) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCalendarBookingInstance
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBookingInstance
public void deleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, int instanceIndex, boolean allFollowing, boolean deleteRecurringCalendarBookings) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCalendarBookingInstance
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBookingInstance
public void deleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, long startTime, boolean allFollowing) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCalendarBookingInstance
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBookingInstance
public void deleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, long startTime, boolean allFollowing, boolean deleteRecurringCalendarBookings) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCalendarBookingInstance
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBookingInstance
public void deleteCalendarBookingInstance(long userId, long calendarBookingId, long startTime, boolean allFollowing) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCalendarBookingInstance
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCalendarBookings
public void deleteCalendarBookings(long calendarId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCalendarBookings
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModel
in interfaceCalendarBookingLocalService
- Specified by:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteRecurringCalendarBooking
public CalendarBooking deleteRecurringCalendarBooking(CalendarBooking calendarBooking) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteRecurringCalendarBooking
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteRecurringCalendarBooking
public CalendarBooking deleteRecurringCalendarBooking(long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteRecurringCalendarBooking
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceCalendarBookingLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceCalendarBookingLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfaceCalendarBookingLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceCalendarBookingLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarBookingModelImpl
.- Specified by:
dynamicQuery
in interfaceCalendarBookingLocalService
- 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 <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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarBookingModelImpl
.- Specified by:
dynamicQuery
in interfaceCalendarBookingLocalService
- 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 long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceCalendarBookingLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public 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.- Specified by:
dynamicQueryCount
in interfaceCalendarBookingLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
exportCalendarBooking
- Specified by:
exportCalendarBooking
in interfaceCalendarBookingLocalService
- Throws:
Exception
-
fetchCalendarBooking
- Specified by:
fetchCalendarBooking
in interfaceCalendarBookingLocalService
-
fetchCalendarBooking
- Specified by:
fetchCalendarBooking
in interfaceCalendarBookingLocalService
-
fetchCalendarBooking
- Specified by:
fetchCalendarBooking
in interfaceCalendarBookingLocalService
-
fetchCalendarBookingByUuidAndGroupId
Returns the calendar booking matching the UUID and group.- Specified by:
fetchCalendarBookingByUuidAndGroupId
in interfaceCalendarBookingLocalService
- Parameters:
uuid
- the calendar booking's UUIDgroupId
- the primary key of the group- Returns:
- the matching calendar booking, or
null
if a matching calendar booking could not be found
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQuery
in interfaceCalendarBookingLocalService
-
getCalendarBooking
public CalendarBooking getCalendarBooking(long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException Returns the calendar booking with the primary key.- Specified by:
getCalendarBooking
in interfaceCalendarBookingLocalService
- Parameters:
calendarBookingId
- the primary key of the calendar booking- Returns:
- the calendar booking
- Throws:
PortalException
- if a calendar booking with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCalendarBooking
public CalendarBooking getCalendarBooking(long calendarId, long parentCalendarBookingId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCalendarBooking
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCalendarBookingByUuidAndGroupId
public CalendarBooking getCalendarBookingByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the calendar booking matching the UUID and group.- Specified by:
getCalendarBookingByUuidAndGroupId
in interfaceCalendarBookingLocalService
- Parameters:
uuid
- the calendar booking's UUIDgroupId
- the primary key of the group- Returns:
- the matching calendar booking
- Throws:
PortalException
- if a matching calendar booking could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCalendarBookingInstance
public CalendarBooking getCalendarBookingInstance(long calendarBookingId, int instanceIndex) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCalendarBookingInstance
in interfaceCalendarBookingLocalService
- 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarBookingModelImpl
.- Specified by:
getCalendarBookings
in interfaceCalendarBookingLocalService
- 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
- Specified by:
getCalendarBookings
in interfaceCalendarBookingLocalService
-
getCalendarBookings
- Specified by:
getCalendarBookings
in interfaceCalendarBookingLocalService
-
getCalendarBookings
- Specified by:
getCalendarBookings
in interfaceCalendarBookingLocalService
-
getCalendarBookings
public List<CalendarBooking> getCalendarBookings(long calendarId, long startTime, long endTime, int max) - Specified by:
getCalendarBookings
in interfaceCalendarBookingLocalService
-
getCalendarBookingsByUuidAndCompanyId
Returns all the calendar bookings matching the UUID and company.- Specified by:
getCalendarBookingsByUuidAndCompanyId
in interfaceCalendarBookingLocalService
- 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 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.- Specified by:
getCalendarBookingsByUuidAndCompanyId
in interfaceCalendarBookingLocalService
- 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 int getCalendarBookingsCount()Returns the number of calendar bookings.- Specified by:
getCalendarBookingsCount
in interfaceCalendarBookingLocalService
- Returns:
- the number of calendar bookings
-
getCalendarBookingsCount
public int getCalendarBookingsCount(long calendarId, long parentCalendarBookingId) - Specified by:
getCalendarBookingsCount
in interfaceCalendarBookingLocalService
-
getChildCalendarBookings
- Specified by:
getChildCalendarBookings
in interfaceCalendarBookingLocalService
-
getChildCalendarBookings
- Specified by:
getChildCalendarBookings
in interfaceCalendarBookingLocalService
-
getChildCalendarIds
public long[] getChildCalendarIds(long calendarBookingId, long calendarId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getChildCalendarIds
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceCalendarBookingLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfaceCalendarBookingLocalService
-
getLastInstanceCalendarBooking
- Specified by:
getLastInstanceCalendarBooking
in interfaceCalendarBookingLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceCalendarBookingLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModel
in interfaceCalendarBookingLocalService
- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
getRecurringCalendarBookings
- Specified by:
getRecurringCalendarBookings
in interfaceCalendarBookingLocalService
-
getRecurringCalendarBookings
public List<CalendarBooking> getRecurringCalendarBookings(CalendarBooking calendarBooking, long startTime) - Specified by:
getRecurringCalendarBookings
in interfaceCalendarBookingLocalService
-
hasExclusiveCalendarBooking
public boolean hasExclusiveCalendarBooking(Calendar calendar, long startTime, long endTime) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
hasExclusiveCalendarBooking
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
invokeTransition
public 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 - Specified by:
invokeTransition
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
isStagingCalendarBooking
public boolean isStagingCalendarBooking(CalendarBooking calendarBooking) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
isStagingCalendarBooking
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveCalendarBookingToTrash
public CalendarBooking moveCalendarBookingToTrash(long userId, CalendarBooking calendarBooking) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveCalendarBookingToTrash
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveCalendarBookingToTrash
public CalendarBooking moveCalendarBookingToTrash(long userId, long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveCalendarBookingToTrash
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreCalendarBookingFromTrash
public CalendarBooking restoreCalendarBookingFromTrash(long userId, long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
restoreCalendarBookingFromTrash
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
search
public 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) - Specified by:
search
in interfaceCalendarBookingLocalService
-
search
public 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) - Specified by:
search
in interfaceCalendarBookingLocalService
-
searchCount
public int searchCount(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, String keywords, long startTime, long endTime, int[] statuses) - Specified by:
searchCount
in interfaceCalendarBookingLocalService
-
searchCount
public int searchCount(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, String title, String description, String location, long startTime, long endTime, int[] statuses, boolean andOperator) - Specified by:
searchCount
in interfaceCalendarBookingLocalService
-
updateAsset
public void updateAsset(long userId, CalendarBooking calendarBooking, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateAsset
in interfaceCalendarBookingLocalService
- 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.
- Specified by:
updateCalendarBooking
in interfaceCalendarBookingLocalService
- Parameters:
calendarBooking
- the calendar booking- Returns:
- the calendar booking that was updated
-
updateCalendarBooking
public 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) - Specified by:
updateCalendarBooking
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCalendarBooking
public 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) - Specified by:
updateCalendarBooking
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCalendarBookingInstance
public 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) - Specified by:
updateCalendarBookingInstance
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCalendarBookingInstance
public 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) - Specified by:
updateCalendarBookingInstance
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCalendarBookingInstance
public 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) - Specified by:
updateCalendarBookingInstance
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateLastInstanceCalendarBookingRecurrence
public void updateLastInstanceCalendarBookingRecurrence(CalendarBooking calendarBooking, String recurrence) - Specified by:
updateLastInstanceCalendarBookingRecurrence
in interfaceCalendarBookingLocalService
-
updateRecurringCalendarBooking
public 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) - Specified by:
updateRecurringCalendarBooking
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
public CalendarBooking updateStatus(long userId, CalendarBooking calendarBooking, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateStatus
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
public CalendarBooking updateStatus(long userId, long calendarBookingId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateStatus
in interfaceCalendarBookingLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistence
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CalendarBooking> getCTPersistence()- Specified by:
getCTPersistence
in interfaceCalendarBookingLocalService
- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CalendarBooking>
-
getModelClass
- Specified by:
getModelClass
in interfaceCalendarBookingLocalService
- Specified by:
getModelClass
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CalendarBooking>
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CalendarBooking>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCalendarBookingLocalService
- Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CalendarBooking>
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CalendarBookingLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CalendarBookingLocalService>
-