All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.calendar.service.CalendarBookingLocalServiceUtil Maven / Gradle / Ivy

The newest version!
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.calendar.service;

import com.liferay.calendar.model.CalendarBooking;
import com.liferay.petra.sql.dsl.query.DSLQuery;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.model.PersistedModel;
import com.liferay.portal.kernel.module.service.Snapshot;
import com.liferay.portal.kernel.util.OrderByComparator;

import java.io.Serializable;

import java.util.List;
import java.util.Map;

/**
 * Provides the local service utility for CalendarBooking. This utility wraps
 * 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.
 *
 * @author Eduardo Lundgren
 * @see CalendarBookingLocalService
 * @generated
 */
public class CalendarBookingLocalServiceUtil {

	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify this class directly. Add custom service methods to com.liferay.calendar.service.impl.CalendarBookingLocalServiceImpl and rerun ServiceBuilder to regenerate this class.
	 */

	/**
	 * 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. *

* * @param calendarBooking the calendar booking * @return the calendar booking that was added */ public static CalendarBooking addCalendarBooking( CalendarBooking calendarBooking) { return getService().addCalendarBooking(calendarBooking); } public static CalendarBooking addCalendarBooking( long userId, long calendarId, long[] childCalendarIds, long parentCalendarBookingId, long recurringCalendarBookingId, Map titleMap, Map 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 PortalException { return getService().addCalendarBooking( userId, calendarId, childCalendarIds, parentCalendarBookingId, recurringCalendarBookingId, titleMap, descriptionMap, location, startTime, endTime, allDay, recurrence, firstReminder, firstReminderType, secondReminder, secondReminderType, serviceContext); } public static void checkCalendarBookings() throws PortalException { getService().checkCalendarBookings(); } /** * Creates a new calendar booking with the primary key. Does not add the calendar booking to the database. * * @param calendarBookingId the primary key for the new calendar booking * @return the new calendar booking */ public static CalendarBooking createCalendarBooking( long calendarBookingId) { return getService().createCalendarBooking(calendarBookingId); } /** * @throws PortalException */ public static PersistedModel createPersistedModel( Serializable primaryKeyObj) throws PortalException { return getService().createPersistedModel(primaryKeyObj); } /** * 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. *

* * @param calendarBooking the calendar booking * @return the calendar booking that was removed * @throws PortalException */ public static CalendarBooking deleteCalendarBooking( CalendarBooking calendarBooking) throws PortalException { return getService().deleteCalendarBooking(calendarBooking); } public static CalendarBooking deleteCalendarBooking( CalendarBooking calendarBooking, boolean allRecurringInstances) throws PortalException { return getService().deleteCalendarBooking( calendarBooking, allRecurringInstances); } /** * 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. *

* * @param calendarBookingId the primary key of the calendar booking * @return the calendar booking that was removed * @throws PortalException if a calendar booking with the primary key could not be found */ public static CalendarBooking deleteCalendarBooking(long calendarBookingId) throws PortalException { return getService().deleteCalendarBooking(calendarBookingId); } public static CalendarBooking deleteCalendarBooking( long calendarBookingId, boolean allRecurringInstances) throws PortalException { return getService().deleteCalendarBooking( calendarBookingId, allRecurringInstances); } public static void deleteCalendarBookingInstance( long userId, CalendarBooking calendarBooking, int instanceIndex, boolean allFollowing) throws PortalException { getService().deleteCalendarBookingInstance( userId, calendarBooking, instanceIndex, allFollowing); } public static void deleteCalendarBookingInstance( long userId, CalendarBooking calendarBooking, int instanceIndex, boolean allFollowing, boolean deleteRecurringCalendarBookings) throws PortalException { getService().deleteCalendarBookingInstance( userId, calendarBooking, instanceIndex, allFollowing, deleteRecurringCalendarBookings); } public static void deleteCalendarBookingInstance( long userId, CalendarBooking calendarBooking, long startTime, boolean allFollowing) throws PortalException { getService().deleteCalendarBookingInstance( userId, calendarBooking, startTime, allFollowing); } public static void deleteCalendarBookingInstance( long userId, CalendarBooking calendarBooking, long startTime, boolean allFollowing, boolean deleteRecurringCalendarBookings) throws PortalException { getService().deleteCalendarBookingInstance( userId, calendarBooking, startTime, allFollowing, deleteRecurringCalendarBookings); } public static void deleteCalendarBookingInstance( long userId, long calendarBookingId, long startTime, boolean allFollowing) throws PortalException { getService().deleteCalendarBookingInstance( userId, calendarBookingId, startTime, allFollowing); } public static void deleteCalendarBookings(long calendarId) throws PortalException { getService().deleteCalendarBookings(calendarId); } /** * @throws PortalException */ public static PersistedModel deletePersistedModel( PersistedModel persistedModel) throws PortalException { return getService().deletePersistedModel(persistedModel); } public static CalendarBooking deleteRecurringCalendarBooking( CalendarBooking calendarBooking) throws PortalException { return getService().deleteRecurringCalendarBooking(calendarBooking); } public static CalendarBooking deleteRecurringCalendarBooking( long calendarBookingId) throws PortalException { return getService().deleteRecurringCalendarBooking(calendarBookingId); } public static T dslQuery(DSLQuery dslQuery) { return getService().dslQuery(dslQuery); } public static int dslQueryCount(DSLQuery dslQuery) { return getService().dslQueryCount(dslQuery); } public static DynamicQuery dynamicQuery() { return getService().dynamicQuery(); } /** * Performs a dynamic query on the database and returns the matching rows. * * @param dynamicQuery the dynamic query * @return the matching rows */ public static List dynamicQuery(DynamicQuery dynamicQuery) { return getService().dynamicQuery(dynamicQuery); } /** * 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl. *

* * @param dynamicQuery the dynamic query * @param start the lower bound of the range of model instances * @param end the upper bound of the range of model instances (not inclusive) * @return the range of matching rows */ public static List dynamicQuery( DynamicQuery dynamicQuery, int start, int end) { return getService().dynamicQuery(dynamicQuery, start, end); } /** * 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl. *

* * @param dynamicQuery the dynamic query * @param start the lower bound of the range of model instances * @param end the upper bound of the range of model instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching rows */ public static List dynamicQuery( DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) { return getService().dynamicQuery( dynamicQuery, start, end, orderByComparator); } /** * Returns the number of rows matching the dynamic query. * * @param dynamicQuery the dynamic query * @return the number of rows matching the dynamic query */ public static long dynamicQueryCount(DynamicQuery dynamicQuery) { return getService().dynamicQueryCount(dynamicQuery); } /** * Returns the number of rows matching the dynamic query. * * @param dynamicQuery the dynamic query * @param projection the projection to apply to the query * @return the number of rows matching the dynamic query */ public static long dynamicQueryCount( DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) { return getService().dynamicQueryCount(dynamicQuery, projection); } public static String exportCalendarBooking( long calendarBookingId, String type) throws Exception { return getService().exportCalendarBooking(calendarBookingId, type); } public static CalendarBooking fetchCalendarBooking(long calendarBookingId) { return getService().fetchCalendarBooking(calendarBookingId); } public static CalendarBooking fetchCalendarBooking( long calendarId, String vEventUid) { return getService().fetchCalendarBooking(calendarId, vEventUid); } public static CalendarBooking fetchCalendarBooking( String uuid, long groupId) { return getService().fetchCalendarBooking(uuid, groupId); } /** * Returns the calendar booking matching the UUID and group. * * @param uuid the calendar booking's UUID * @param groupId the primary key of the group * @return the matching calendar booking, or null if a matching calendar booking could not be found */ public static CalendarBooking fetchCalendarBookingByUuidAndGroupId( String uuid, long groupId) { return getService().fetchCalendarBookingByUuidAndGroupId(uuid, groupId); } public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { return getService().getActionableDynamicQuery(); } /** * Returns the calendar booking with the primary key. * * @param calendarBookingId the primary key of the calendar booking * @return the calendar booking * @throws PortalException if a calendar booking with the primary key could not be found */ public static CalendarBooking getCalendarBooking(long calendarBookingId) throws PortalException { return getService().getCalendarBooking(calendarBookingId); } public static CalendarBooking getCalendarBooking( long calendarId, long parentCalendarBookingId) throws PortalException { return getService().getCalendarBooking( calendarId, parentCalendarBookingId); } /** * Returns the calendar booking matching the UUID and group. * * @param uuid the calendar booking's UUID * @param groupId the primary key of the group * @return the matching calendar booking * @throws PortalException if a matching calendar booking could not be found */ public static CalendarBooking getCalendarBookingByUuidAndGroupId( String uuid, long groupId) throws PortalException { return getService().getCalendarBookingByUuidAndGroupId(uuid, groupId); } public static CalendarBooking getCalendarBookingInstance( long calendarBookingId, int instanceIndex) throws PortalException { return getService().getCalendarBookingInstance( calendarBookingId, instanceIndex); } /** * Returns a range of all the calendar bookings. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl. *

* * @param start the lower bound of the range of calendar bookings * @param end the upper bound of the range of calendar bookings (not inclusive) * @return the range of calendar bookings */ public static List getCalendarBookings( int start, int end) { return getService().getCalendarBookings(start, end); } public static List getCalendarBookings(long calendarId) { return getService().getCalendarBookings(calendarId); } public static List getCalendarBookings( long calendarId, int[] statuses) { return getService().getCalendarBookings(calendarId, statuses); } public static List getCalendarBookings( long calendarId, long startTime, long endTime) { return getService().getCalendarBookings(calendarId, startTime, endTime); } public static List getCalendarBookings( long calendarId, long startTime, long endTime, int max) { return getService().getCalendarBookings( calendarId, startTime, endTime, max); } /** * Returns all the calendar bookings matching the UUID and company. * * @param uuid the UUID of the calendar bookings * @param companyId the primary key of the company * @return the matching calendar bookings, or an empty list if no matches were found */ public static List getCalendarBookingsByUuidAndCompanyId( String uuid, long companyId) { return getService().getCalendarBookingsByUuidAndCompanyId( uuid, companyId); } /** * Returns a range of calendar bookings matching the UUID and company. * * @param uuid the UUID of the calendar bookings * @param companyId the primary key of the company * @param start the lower bound of the range of calendar bookings * @param end the upper bound of the range of calendar bookings (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the range of matching calendar bookings, or an empty list if no matches were found */ public static List getCalendarBookingsByUuidAndCompanyId( String uuid, long companyId, int start, int end, OrderByComparator orderByComparator) { return getService().getCalendarBookingsByUuidAndCompanyId( uuid, companyId, start, end, orderByComparator); } /** * Returns the number of calendar bookings. * * @return the number of calendar bookings */ public static int getCalendarBookingsCount() { return getService().getCalendarBookingsCount(); } public static int getCalendarBookingsCount( long calendarId, long parentCalendarBookingId) { return getService().getCalendarBookingsCount( calendarId, parentCalendarBookingId); } public static List getChildCalendarBookings( long calendarBookingId) { return getService().getChildCalendarBookings(calendarBookingId); } public static List getChildCalendarBookings( long parentCalendarBookingId, int status) { return getService().getChildCalendarBookings( parentCalendarBookingId, status); } public static long[] getChildCalendarIds( long calendarBookingId, long calendarId) throws PortalException { return getService().getChildCalendarIds(calendarBookingId, calendarId); } public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) { return getService().getExportActionableDynamicQuery(portletDataContext); } public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { return getService().getIndexableActionableDynamicQuery(); } public static CalendarBooking getLastInstanceCalendarBooking( CalendarBooking calendarBooking) { return getService().getLastInstanceCalendarBooking(calendarBooking); } /** * Returns the OSGi service identifier. * * @return the OSGi service identifier */ public static String getOSGiServiceIdentifier() { return getService().getOSGiServiceIdentifier(); } /** * @throws PortalException */ public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException { return getService().getPersistedModel(primaryKeyObj); } public static List getRecurringCalendarBookings( CalendarBooking calendarBooking) { return getService().getRecurringCalendarBookings(calendarBooking); } public static List getRecurringCalendarBookings( CalendarBooking calendarBooking, long startTime) { return getService().getRecurringCalendarBookings( calendarBooking, startTime); } public static boolean hasExclusiveCalendarBooking( com.liferay.calendar.model.Calendar calendar, long startTime, long endTime) throws PortalException { return getService().hasExclusiveCalendarBooking( calendar, startTime, endTime); } public static CalendarBooking invokeTransition( long userId, CalendarBooking calendarBooking, long startTime, int status, boolean updateInstance, boolean allFollowing, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws PortalException { return getService().invokeTransition( userId, calendarBooking, startTime, status, updateInstance, allFollowing, serviceContext); } public static boolean isStagingCalendarBooking( CalendarBooking calendarBooking) throws PortalException { return getService().isStagingCalendarBooking(calendarBooking); } public static CalendarBooking moveCalendarBookingToTrash( long userId, CalendarBooking calendarBooking) throws PortalException { return getService().moveCalendarBookingToTrash(userId, calendarBooking); } public static CalendarBooking moveCalendarBookingToTrash( long userId, long calendarBookingId) throws PortalException { return getService().moveCalendarBookingToTrash( userId, calendarBookingId); } public static CalendarBooking restoreCalendarBookingFromTrash( long userId, long calendarBookingId) throws PortalException { return getService().restoreCalendarBookingFromTrash( userId, calendarBookingId); } public static List search( long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, String keywords, long startTime, long endTime, java.util.TimeZone displayTimeZone, boolean recurring, int[] statuses, int start, int end, OrderByComparator orderByComparator) { return getService().search( companyId, groupIds, calendarIds, calendarResourceIds, parentCalendarBookingId, keywords, startTime, endTime, displayTimeZone, recurring, statuses, start, end, orderByComparator); } public static List 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, OrderByComparator orderByComparator) { return getService().search( companyId, groupIds, calendarIds, calendarResourceIds, parentCalendarBookingId, title, description, location, startTime, endTime, recurring, statuses, andOperator, start, end, orderByComparator); } public static int searchCount( long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, String keywords, long startTime, long endTime, int[] statuses) { return getService().searchCount( companyId, groupIds, calendarIds, calendarResourceIds, parentCalendarBookingId, keywords, startTime, endTime, statuses); } public static 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) { return getService().searchCount( companyId, groupIds, calendarIds, calendarResourceIds, parentCalendarBookingId, title, description, location, startTime, endTime, statuses, andOperator); } public static void updateAsset( long userId, CalendarBooking calendarBooking, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) throws PortalException { getService().updateAsset( userId, calendarBooking, assetCategoryIds, assetTagNames, assetLinkEntryIds, priority); } /** * 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. *

* * @param calendarBooking the calendar booking * @return the calendar booking that was updated */ public static CalendarBooking updateCalendarBooking( CalendarBooking calendarBooking) { return getService().updateCalendarBooking(calendarBooking); } public static CalendarBooking updateCalendarBooking( long userId, long calendarBookingId, long calendarId, long[] childCalendarIds, Map titleMap, Map 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 PortalException { return getService().updateCalendarBooking( userId, calendarBookingId, calendarId, childCalendarIds, titleMap, descriptionMap, location, startTime, endTime, allDay, recurrence, firstReminder, firstReminderType, secondReminder, secondReminderType, serviceContext); } public static CalendarBooking updateCalendarBooking( long userId, long calendarBookingId, long calendarId, Map titleMap, Map 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 PortalException { return getService().updateCalendarBooking( userId, calendarBookingId, calendarId, titleMap, descriptionMap, location, startTime, endTime, allDay, recurrence, firstReminder, firstReminderType, secondReminder, secondReminderType, serviceContext); } public static CalendarBooking updateCalendarBookingInstance( long userId, long calendarBookingId, int instanceIndex, long calendarId, long[] childCalendarIds, Map titleMap, Map 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 PortalException { return getService().updateCalendarBookingInstance( userId, calendarBookingId, instanceIndex, calendarId, childCalendarIds, titleMap, descriptionMap, location, startTime, endTime, allDay, allFollowing, firstReminder, firstReminderType, secondReminder, secondReminderType, serviceContext); } public static CalendarBooking updateCalendarBookingInstance( long userId, long calendarBookingId, int instanceIndex, long calendarId, long[] childCalendarIds, Map titleMap, Map 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 PortalException { return getService().updateCalendarBookingInstance( userId, calendarBookingId, instanceIndex, calendarId, childCalendarIds, titleMap, descriptionMap, location, startTime, endTime, allDay, recurrence, allFollowing, firstReminder, firstReminderType, secondReminder, secondReminderType, serviceContext); } public static CalendarBooking updateCalendarBookingInstance( long userId, long calendarBookingId, int instanceIndex, long calendarId, Map titleMap, Map 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 PortalException { return getService().updateCalendarBookingInstance( userId, calendarBookingId, instanceIndex, calendarId, titleMap, descriptionMap, location, startTime, endTime, allDay, recurrence, allFollowing, firstReminder, firstReminderType, secondReminder, secondReminderType, serviceContext); } public static void updateLastInstanceCalendarBookingRecurrence( CalendarBooking calendarBooking, String recurrence) { getService().updateLastInstanceCalendarBookingRecurrence( calendarBooking, recurrence); } public static CalendarBooking updateRecurringCalendarBooking( long userId, long calendarBookingId, long calendarId, long[] childCalendarIds, Map titleMap, Map 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 PortalException { return getService().updateRecurringCalendarBooking( userId, calendarBookingId, calendarId, childCalendarIds, titleMap, descriptionMap, location, startTime, endTime, allDay, firstReminder, firstReminderType, secondReminder, secondReminderType, serviceContext); } public static CalendarBooking updateStatus( long userId, CalendarBooking calendarBooking, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws PortalException { return getService().updateStatus( userId, calendarBooking, status, serviceContext); } public static CalendarBooking updateStatus( long userId, long calendarBookingId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws PortalException { return getService().updateStatus( userId, calendarBookingId, status, serviceContext); } public static CalendarBookingLocalService getService() { return _serviceSnapshot.get(); } private static final Snapshot _serviceSnapshot = new Snapshot<>( CalendarBookingLocalServiceUtil.class, CalendarBookingLocalService.class); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy