public class CalendarBookingLocalServiceUtil
extends java.lang.Object
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.CalendarBookingLocalService
Constructor and Description |
---|
CalendarBookingLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static CalendarBooking |
addCalendarBooking(CalendarBooking calendarBooking)
Adds the calendar booking to the database.
|
static CalendarBooking |
addCalendarBooking(long userId,
long calendarId,
long[] childCalendarIds,
long parentCalendarBookingId,
long recurringCalendarBookingId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String location,
long startTime,
long endTime,
boolean allDay,
java.lang.String recurrence,
long firstReminder,
java.lang.String firstReminderType,
long secondReminder,
java.lang.String secondReminderType,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
checkCalendarBookings() |
static CalendarBooking |
createCalendarBooking(long calendarBookingId)
Creates a new calendar booking with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static CalendarBooking |
deleteCalendarBooking(CalendarBooking calendarBooking)
Deletes the calendar booking from the database.
|
static CalendarBooking |
deleteCalendarBooking(CalendarBooking calendarBooking,
boolean allRecurringInstances) |
static CalendarBooking |
deleteCalendarBooking(long calendarBookingId)
Deletes the calendar booking with the primary key from the database.
|
static CalendarBooking |
deleteCalendarBooking(long calendarBookingId,
boolean allRecurringInstances) |
static void |
deleteCalendarBookingInstance(long userId,
CalendarBooking calendarBooking,
int instanceIndex,
boolean allFollowing) |
static void |
deleteCalendarBookingInstance(long userId,
CalendarBooking calendarBooking,
int instanceIndex,
boolean allFollowing,
boolean deleteRecurringCalendarBookings) |
static void |
deleteCalendarBookingInstance(long userId,
CalendarBooking calendarBooking,
long startTime,
boolean allFollowing) |
static void |
deleteCalendarBookingInstance(long userId,
CalendarBooking calendarBooking,
long startTime,
boolean allFollowing,
boolean deleteRecurringCalendarBookings) |
static void |
deleteCalendarBookingInstance(long userId,
long calendarBookingId,
long startTime,
boolean allFollowing) |
static void |
deleteCalendarBookings(long calendarId) |
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static CalendarBooking |
deleteRecurringCalendarBooking(CalendarBooking calendarBooking) |
static CalendarBooking |
deleteRecurringCalendarBooking(long calendarBookingId) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <T> java.util.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> java.util.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> java.util.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 long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
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.
|
static java.lang.String |
exportCalendarBooking(long calendarBookingId,
java.lang.String type) |
static CalendarBooking |
fetchCalendarBooking(long calendarBookingId) |
static CalendarBooking |
fetchCalendarBooking(long calendarId,
java.lang.String vEventUid) |
static CalendarBooking |
fetchCalendarBooking(java.lang.String uuid,
long groupId) |
static CalendarBooking |
fetchCalendarBookingByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the calendar booking matching the UUID and group.
|
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static CalendarBooking |
getCalendarBooking(long calendarBookingId)
Returns the calendar booking with the primary key.
|
static CalendarBooking |
getCalendarBooking(long calendarId,
long parentCalendarBookingId) |
static CalendarBooking |
getCalendarBookingByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the calendar booking matching the UUID and group.
|
static CalendarBooking |
getCalendarBookingInstance(long calendarBookingId,
int instanceIndex) |
static java.util.List<CalendarBooking> |
getCalendarBookings(int start,
int end)
Returns a range of all the calendar bookings.
|
static java.util.List<CalendarBooking> |
getCalendarBookings(long calendarId) |
static java.util.List<CalendarBooking> |
getCalendarBookings(long calendarId,
int[] statuses) |
static java.util.List<CalendarBooking> |
getCalendarBookings(long calendarId,
long startTime,
long endTime) |
static java.util.List<CalendarBooking> |
getCalendarBookings(long calendarId,
long startTime,
long endTime,
int max) |
static java.util.List<CalendarBooking> |
getCalendarBookingsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the calendar bookings matching the UUID and company.
|
static java.util.List<CalendarBooking> |
getCalendarBookingsByUuidAndCompanyId(java.lang.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 int |
getCalendarBookingsCount()
Returns the number of calendar bookings.
|
static int |
getCalendarBookingsCount(long calendarId,
long parentCalendarBookingId) |
static java.util.List<CalendarBooking> |
getChildCalendarBookings(long calendarBookingId) |
static java.util.List<CalendarBooking> |
getChildCalendarBookings(long parentCalendarBookingId,
int status) |
static long[] |
getChildCalendarIds(long calendarBookingId,
long calendarId) |
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static CalendarBooking |
getLastInstanceCalendarBooking(CalendarBooking calendarBooking) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static java.util.List<CalendarBooking> |
getRecurringCalendarBookings(CalendarBooking calendarBooking) |
static java.util.List<CalendarBooking> |
getRecurringCalendarBookings(CalendarBooking calendarBooking,
long startTime) |
static CalendarBookingLocalService |
getService() |
static boolean |
hasExclusiveCalendarBooking(Calendar calendar,
long startTime,
long endTime) |
static CalendarBooking |
invokeTransition(long userId,
CalendarBooking calendarBooking,
long startTime,
int status,
boolean updateInstance,
boolean allFollowing,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static boolean |
isStagingCalendarBooking(CalendarBooking calendarBooking) |
static CalendarBooking |
moveCalendarBookingToTrash(long userId,
CalendarBooking calendarBooking) |
static CalendarBooking |
moveCalendarBookingToTrash(long userId,
long calendarBookingId) |
static CalendarBooking |
restoreCalendarBookingFromTrash(long userId,
long calendarBookingId) |
static java.util.List<CalendarBooking> |
search(long companyId,
long[] groupIds,
long[] calendarIds,
long[] calendarResourceIds,
long parentCalendarBookingId,
java.lang.String keywords,
long startTime,
long endTime,
boolean recurring,
int[] statuses,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator) |
static java.util.List<CalendarBooking> |
search(long companyId,
long[] groupIds,
long[] calendarIds,
long[] calendarResourceIds,
long parentCalendarBookingId,
java.lang.String title,
java.lang.String description,
java.lang.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 int |
searchCount(long companyId,
long[] groupIds,
long[] calendarIds,
long[] calendarResourceIds,
long parentCalendarBookingId,
java.lang.String keywords,
long startTime,
long endTime,
int[] statuses) |
static int |
searchCount(long companyId,
long[] groupIds,
long[] calendarIds,
long[] calendarResourceIds,
long parentCalendarBookingId,
java.lang.String title,
java.lang.String description,
java.lang.String location,
long startTime,
long endTime,
int[] statuses,
boolean andOperator) |
static void |
updateAsset(long userId,
CalendarBooking calendarBooking,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds,
java.lang.Double priority) |
static CalendarBooking |
updateCalendarBooking(CalendarBooking calendarBooking)
Updates the calendar booking in the database or adds it if it does not yet exist.
|
static CalendarBooking |
updateCalendarBooking(long userId,
long calendarBookingId,
long calendarId,
long[] childCalendarIds,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String location,
long startTime,
long endTime,
boolean allDay,
java.lang.String recurrence,
long firstReminder,
java.lang.String firstReminderType,
long secondReminder,
java.lang.String secondReminderType,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CalendarBooking |
updateCalendarBooking(long userId,
long calendarBookingId,
long calendarId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String location,
long startTime,
long endTime,
boolean allDay,
java.lang.String recurrence,
long firstReminder,
java.lang.String firstReminderType,
long secondReminder,
java.lang.String secondReminderType,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CalendarBooking |
updateCalendarBookingInstance(long userId,
long calendarBookingId,
int instanceIndex,
long calendarId,
long[] childCalendarIds,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String location,
long startTime,
long endTime,
boolean allDay,
boolean allFollowing,
long firstReminder,
java.lang.String firstReminderType,
long secondReminder,
java.lang.String secondReminderType,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CalendarBooking |
updateCalendarBookingInstance(long userId,
long calendarBookingId,
int instanceIndex,
long calendarId,
long[] childCalendarIds,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String location,
long startTime,
long endTime,
boolean allDay,
java.lang.String recurrence,
boolean allFollowing,
long firstReminder,
java.lang.String firstReminderType,
long secondReminder,
java.lang.String secondReminderType,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CalendarBooking |
updateCalendarBookingInstance(long userId,
long calendarBookingId,
int instanceIndex,
long calendarId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String location,
long startTime,
long endTime,
boolean allDay,
java.lang.String recurrence,
boolean allFollowing,
long firstReminder,
java.lang.String firstReminderType,
long secondReminder,
java.lang.String secondReminderType,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
updateLastInstanceCalendarBookingRecurrence(CalendarBooking calendarBooking,
java.lang.String recurrence) |
static CalendarBooking |
updateRecurringCalendarBooking(long userId,
long calendarBookingId,
long calendarId,
long[] childCalendarIds,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String location,
long startTime,
long endTime,
boolean allDay,
long firstReminder,
java.lang.String firstReminderType,
long secondReminder,
java.lang.String secondReminderType,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CalendarBooking |
updateStatus(long userId,
CalendarBooking calendarBooking,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CalendarBooking |
updateStatus(long userId,
long calendarBookingId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public static CalendarBooking addCalendarBooking(CalendarBooking calendarBooking)
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.
calendarBooking
- the calendar bookingpublic static CalendarBooking addCalendarBooking(long userId, long calendarId, long[] childCalendarIds, long parentCalendarBookingId, long recurringCalendarBookingId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String location, long startTime, long endTime, boolean allDay, java.lang.String recurrence, long firstReminder, java.lang.String firstReminderType, long secondReminder, java.lang.String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void checkCalendarBookings() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking createCalendarBooking(long calendarBookingId)
calendarBookingId
- the primary key for the new calendar bookingpublic static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static CalendarBooking deleteCalendarBooking(CalendarBooking calendarBooking) throws com.liferay.portal.kernel.exception.PortalException
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.
calendarBooking
- the calendar bookingPortalException
public static CalendarBooking deleteCalendarBooking(CalendarBooking calendarBooking, boolean allRecurringInstances) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking deleteCalendarBooking(long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
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.
calendarBookingId
- the primary key of the calendar bookingPortalException
- if a calendar booking with the primary key could not be foundpublic static CalendarBooking deleteCalendarBooking(long calendarBookingId, boolean allRecurringInstances) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, int instanceIndex, boolean allFollowing) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, int instanceIndex, boolean allFollowing, boolean deleteRecurringCalendarBookings) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, long startTime, boolean allFollowing) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCalendarBookingInstance(long userId, CalendarBooking calendarBooking, long startTime, boolean allFollowing, boolean deleteRecurringCalendarBookings) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCalendarBookingInstance(long userId, long calendarBookingId, long startTime, boolean allFollowing) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCalendarBookings(long calendarId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static CalendarBooking deleteRecurringCalendarBooking(CalendarBooking calendarBooking) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking deleteRecurringCalendarBooking(long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
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
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
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
.
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 (optionally null
)public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static java.lang.String exportCalendarBooking(long calendarBookingId, java.lang.String type) throws java.lang.Exception
java.lang.Exception
public static CalendarBooking fetchCalendarBooking(long calendarBookingId)
public static CalendarBooking fetchCalendarBooking(long calendarId, java.lang.String vEventUid)
public static CalendarBooking fetchCalendarBooking(java.lang.String uuid, long groupId)
public static CalendarBooking fetchCalendarBookingByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid
- the calendar booking's UUIDgroupId
- the primary key of the groupnull
if a matching calendar booking could not be foundpublic static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static CalendarBooking getCalendarBooking(long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
calendarBookingId
- the primary key of the calendar bookingPortalException
- if a calendar booking with the primary key could not be foundpublic static CalendarBooking getCalendarBooking(long calendarId, long parentCalendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking getCalendarBookingByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the calendar booking's UUIDgroupId
- the primary key of the groupPortalException
- if a matching calendar booking could not be foundpublic static CalendarBooking getCalendarBookingInstance(long calendarBookingId, int instanceIndex) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CalendarBooking> getCalendarBookings(int start, int end)
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
.
start
- the lower bound of the range of calendar bookingsend
- the upper bound of the range of calendar bookings (not inclusive)public static java.util.List<CalendarBooking> getCalendarBookings(long calendarId)
public static java.util.List<CalendarBooking> getCalendarBookings(long calendarId, int[] statuses)
public static java.util.List<CalendarBooking> getCalendarBookings(long calendarId, long startTime, long endTime)
public static java.util.List<CalendarBooking> getCalendarBookings(long calendarId, long startTime, long endTime, int max)
public static java.util.List<CalendarBooking> getCalendarBookingsByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the UUID of the calendar bookingscompanyId
- the primary key of the companypublic static java.util.List<CalendarBooking> getCalendarBookingsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
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 (optionally null
)public static int getCalendarBookingsCount()
public static int getCalendarBookingsCount(long calendarId, long parentCalendarBookingId)
public static java.util.List<CalendarBooking> getChildCalendarBookings(long calendarBookingId)
public static java.util.List<CalendarBooking> getChildCalendarBookings(long parentCalendarBookingId, int status)
public static long[] getChildCalendarIds(long calendarBookingId, long calendarId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static CalendarBooking getLastInstanceCalendarBooking(CalendarBooking calendarBooking)
public static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static java.util.List<CalendarBooking> getRecurringCalendarBookings(CalendarBooking calendarBooking)
public static java.util.List<CalendarBooking> getRecurringCalendarBookings(CalendarBooking calendarBooking, long startTime)
public static boolean hasExclusiveCalendarBooking(Calendar calendar, long startTime, long endTime) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
public static boolean isStagingCalendarBooking(CalendarBooking calendarBooking) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking moveCalendarBookingToTrash(long userId, CalendarBooking calendarBooking) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking moveCalendarBookingToTrash(long userId, long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking restoreCalendarBookingFromTrash(long userId, long calendarBookingId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CalendarBooking> search(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, java.lang.String keywords, long startTime, long endTime, boolean recurring, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
public static java.util.List<CalendarBooking> search(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, java.lang.String title, java.lang.String description, java.lang.String location, long startTime, long endTime, boolean recurring, int[] statuses, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
public static int searchCount(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, java.lang.String keywords, long startTime, long endTime, int[] statuses)
public static int searchCount(long companyId, long[] groupIds, long[] calendarIds, long[] calendarResourceIds, long parentCalendarBookingId, java.lang.String title, java.lang.String description, java.lang.String location, long startTime, long endTime, int[] statuses, boolean andOperator)
public static void updateAsset(long userId, CalendarBooking calendarBooking, long[] assetCategoryIds, java.lang.String[] assetTagNames, long[] assetLinkEntryIds, java.lang.Double priority) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking updateCalendarBooking(CalendarBooking calendarBooking)
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.
calendarBooking
- the calendar bookingpublic static CalendarBooking updateCalendarBooking(long userId, long calendarBookingId, long calendarId, long[] childCalendarIds, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String location, long startTime, long endTime, boolean allDay, java.lang.String recurrence, long firstReminder, java.lang.String firstReminderType, long secondReminder, java.lang.String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking updateCalendarBooking(long userId, long calendarBookingId, long calendarId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String location, long startTime, long endTime, boolean allDay, java.lang.String recurrence, long firstReminder, java.lang.String firstReminderType, long secondReminder, java.lang.String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking updateCalendarBookingInstance(long userId, long calendarBookingId, int instanceIndex, long calendarId, long[] childCalendarIds, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String location, long startTime, long endTime, boolean allDay, boolean allFollowing, long firstReminder, java.lang.String firstReminderType, long secondReminder, java.lang.String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking updateCalendarBookingInstance(long userId, long calendarBookingId, int instanceIndex, long calendarId, long[] childCalendarIds, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String location, long startTime, long endTime, boolean allDay, java.lang.String recurrence, boolean allFollowing, long firstReminder, java.lang.String firstReminderType, long secondReminder, java.lang.String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking updateCalendarBookingInstance(long userId, long calendarBookingId, int instanceIndex, long calendarId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String location, long startTime, long endTime, boolean allDay, java.lang.String recurrence, boolean allFollowing, long firstReminder, java.lang.String firstReminderType, long secondReminder, java.lang.String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void updateLastInstanceCalendarBookingRecurrence(CalendarBooking calendarBooking, java.lang.String recurrence)
public static CalendarBooking updateRecurringCalendarBooking(long userId, long calendarBookingId, long calendarId, long[] childCalendarIds, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String location, long startTime, long endTime, boolean allDay, long firstReminder, java.lang.String firstReminderType, long secondReminder, java.lang.String secondReminderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking updateStatus(long userId, CalendarBooking calendarBooking, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBooking updateStatus(long userId, long calendarBookingId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CalendarBookingLocalService getService()