@ProviderType
public class CalEventLocalServiceUtil
extends java.lang.Object
com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl and is the
primary 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.CalEventLocalService,
com.liferay.portlet.calendar.service.base.CalEventLocalServiceBaseImpl,
com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl| Constructor and Description |
|---|
CalEventLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static CalEvent |
addCalEvent(CalEvent calEvent)
Adds the cal event to the database.
|
static CalEvent |
addEvent(long userId,
java.lang.String title,
java.lang.String description,
java.lang.String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
java.lang.String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext) |
static CalEvent |
addEvent(long userId,
java.lang.String title,
java.lang.String description,
java.lang.String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
java.lang.String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
|
static void |
addEventResources(CalEvent event,
boolean addGroupPermissions,
boolean addGuestPermissions) |
static void |
addEventResources(CalEvent event,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions) |
static void |
addEventResources(long eventId,
boolean addGroupPermissions,
boolean addGuestPermissions) |
static void |
addEventResources(long eventId,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions) |
static void |
checkEvents() |
static CalEvent |
createCalEvent(long eventId)
Creates a new cal event with the primary key.
|
static CalEvent |
deleteCalEvent(CalEvent calEvent)
Deletes the cal event from the database.
|
static CalEvent |
deleteCalEvent(long eventId)
Deletes the cal event with the primary key from the database.
|
static CalEvent |
deleteEvent(CalEvent event) |
static CalEvent |
deleteEvent(long eventId) |
static void |
deleteEvents(long groupId) |
static DynamicQuery |
dynamicQuery() |
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query.
|
static java.io.File |
exportEvent(long userId,
long eventId) |
static java.io.File |
exportEvents(long userId,
java.util.List<CalEvent> events,
java.lang.String fileName) |
static java.io.File |
exportGroupEvents(long userId,
long groupId,
java.lang.String fileName) |
static CalEvent |
fetchCalEvent(long eventId) |
static CalEvent |
fetchCalEventByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the cal event with the matching UUID and company.
|
static CalEvent |
fetchCalEventByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the cal event matching the UUID and group.
|
static java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
static CalEvent |
getCalEvent(long eventId)
Returns the cal event with the primary key.
|
static CalEvent |
getCalEventByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the cal event with the matching UUID and company.
|
static CalEvent |
getCalEventByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the cal event matching the UUID and group.
|
static java.util.List<CalEvent> |
getCalEvents(int start,
int end)
Returns a range of all the cal events.
|
static int |
getCalEventsCount()
Returns the number of cal events.
|
static java.util.List<CalEvent> |
getCompanyEvents(long companyId,
int start,
int end) |
static int |
getCompanyEventsCount(long companyId) |
static CalEvent |
getEvent(long eventId) |
static java.util.List<CalEvent> |
getEvents(long groupId,
java.util.Calendar cal) |
static java.util.List<CalEvent> |
getEvents(long groupId,
java.util.Calendar cal,
java.lang.String type) |
static java.util.List<CalEvent> |
getEvents(long groupId,
java.util.Calendar cal,
java.lang.String[] types) |
static java.util.List<CalEvent> |
getEvents(long groupId,
java.lang.String[] types,
int start,
int end) |
static java.util.List<CalEvent> |
getEvents(long groupId,
java.lang.String type,
int start,
int end) |
static int |
getEventsCount(long groupId,
java.lang.String type) |
static int |
getEventsCount(long groupId,
java.lang.String[] types) |
static java.util.List<CalEvent> |
getNoAssetEvents() |
static PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static java.util.List<CalEvent> |
getRepeatingEvents(long groupId) |
static java.util.List<CalEvent> |
getRepeatingEvents(long groupId,
java.util.Calendar cal,
java.lang.String[] types) |
static CalEventLocalService |
getService() |
static boolean |
hasEvents(long groupId,
java.util.Calendar cal) |
static boolean |
hasEvents(long groupId,
java.util.Calendar cal,
java.lang.String type) |
static boolean |
hasEvents(long groupId,
java.util.Calendar cal,
java.lang.String[] types) |
static void |
importICal4j(long userId,
long groupId,
java.io.InputStream inputStream) |
static void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setService(CalEventLocalService service)
Deprecated.
As of 6.2.0
|
static void |
updateAsset(long userId,
CalEvent event,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds) |
static CalEvent |
updateCalEvent(CalEvent calEvent)
Updates the cal event in the database or adds it if it does not yet exist.
|
static CalEvent |
updateEvent(long userId,
long eventId,
java.lang.String title,
java.lang.String description,
java.lang.String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
java.lang.String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext) |
static CalEvent |
updateEvent(long userId,
long eventId,
java.lang.String title,
java.lang.String description,
java.lang.String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
java.lang.String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
|
public static CalEvent addCalEvent(CalEvent calEvent) throws SystemException
calEvent - the cal eventSystemException - if a system exception occurredpublic static CalEvent createCalEvent(long eventId)
eventId - the primary key for the new cal eventpublic static CalEvent deleteCalEvent(long eventId) throws PortalException, SystemException
eventId - the primary key of the cal eventPortalException - if a cal event with the primary key could not be foundSystemException - if a system exception occurredpublic static CalEvent deleteCalEvent(CalEvent calEvent) throws SystemException
calEvent - the cal eventSystemException - if a system exception occurredpublic static DynamicQuery dynamicQuery()
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredpublic static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CalEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)SystemException - if a system exception occurredpublic static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CalEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)SystemException - if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQuery - the dynamic queryprojection - the projection to apply to the querySystemException - if a system exception occurredpublic static CalEvent fetchCalEvent(long eventId) throws SystemException
SystemExceptionpublic static CalEvent fetchCalEventByUuidAndCompanyId(java.lang.String uuid, long companyId) throws SystemException
uuid - the cal event's UUIDcompanyId - the primary key of the companynull if a matching cal event could not be foundSystemException - if a system exception occurredpublic static CalEvent fetchCalEventByUuidAndGroupId(java.lang.String uuid, long groupId) throws SystemException
uuid - the cal event's UUIDgroupId - the primary key of the groupnull if a matching cal event could not be foundSystemException - if a system exception occurredpublic static CalEvent getCalEvent(long eventId) throws PortalException, SystemException
eventId - the primary key of the cal eventPortalException - if a cal event with the primary key could not be foundSystemException - if a system exception occurredpublic static PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static CalEvent getCalEventByUuidAndCompanyId(java.lang.String uuid, long companyId) throws PortalException, SystemException
uuid - the cal event's UUIDcompanyId - the primary key of the companyPortalException - if a matching cal event could not be foundSystemException - if a system exception occurredpublic static CalEvent getCalEventByUuidAndGroupId(java.lang.String uuid, long groupId) throws PortalException, SystemException
uuid - the cal event's UUIDgroupId - the primary key of the groupPortalException - if a matching cal event could not be foundSystemException - if a system exception occurredpublic static java.util.List<CalEvent> getCalEvents(int start, int end) throws SystemException
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 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CalEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of cal eventsend - the upper bound of the range of cal events (not inclusive)SystemException - if a system exception occurredpublic static int getCalEventsCount()
throws SystemException
SystemException - if a system exception occurredpublic static CalEvent updateCalEvent(CalEvent calEvent) throws SystemException
calEvent - the cal eventSystemException - if a system exception occurredpublic static java.lang.String getBeanIdentifier()
public static void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanpublic static CalEvent addEvent(long userId, java.lang.String title, java.lang.String description, java.lang.String location, int startDateMonth, int startDateDay, int startDateYear, int startDateHour, int startDateMinute, int durationHour, int durationMinute, boolean allDay, boolean timeZoneSensitive, java.lang.String type, boolean repeating, TZSRecurrence recurrence, int remindBy, int firstReminder, int secondReminder, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static CalEvent addEvent(long userId, java.lang.String title, java.lang.String description, java.lang.String location, int startDateMonth, int startDateDay, int startDateYear, int startDateHour, int startDateMinute, int endDateMonth, int endDateDay, int endDateYear, int durationHour, int durationMinute, boolean allDay, boolean timeZoneSensitive, java.lang.String type, boolean repeating, TZSRecurrence recurrence, int remindBy, int firstReminder, int secondReminder, ServiceContext serviceContext) throws PortalException, SystemException
addEvent(long, String,
String, String, int, int, int, int, int, int, int, boolean,
boolean, String, boolean, TZSRecurrence, int, int, int,
ServiceContext)PortalExceptionSystemExceptionpublic static void addEventResources(CalEvent event, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void addEventResources(CalEvent event, java.lang.String[] groupPermissions, java.lang.String[] guestPermissions) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void addEventResources(long eventId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void addEventResources(long eventId,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void checkEvents()
throws SystemException
SystemExceptionpublic static CalEvent deleteEvent(CalEvent event) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static CalEvent deleteEvent(long eventId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void deleteEvents(long groupId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.io.File exportEvent(long userId,
long eventId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.io.File exportEvents(long userId,
java.util.List<CalEvent> events,
java.lang.String fileName)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.io.File exportGroupEvents(long userId,
long groupId,
java.lang.String fileName)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.util.List<CalEvent> getCompanyEvents(long companyId, int start, int end) throws SystemException
SystemExceptionpublic static int getCompanyEventsCount(long companyId)
throws SystemException
SystemExceptionpublic static CalEvent getEvent(long eventId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static java.util.List<CalEvent> getEvents(long groupId, java.util.Calendar cal) throws SystemException
SystemExceptionpublic static java.util.List<CalEvent> getEvents(long groupId, java.util.Calendar cal, java.lang.String type) throws SystemException
SystemExceptionpublic static java.util.List<CalEvent> getEvents(long groupId, java.util.Calendar cal, java.lang.String[] types) throws SystemException
SystemExceptionpublic static java.util.List<CalEvent> getEvents(long groupId, java.lang.String type, int start, int end) throws SystemException
SystemExceptionpublic static java.util.List<CalEvent> getEvents(long groupId, java.lang.String[] types, int start, int end) throws SystemException
SystemExceptionpublic static int getEventsCount(long groupId,
java.lang.String type)
throws SystemException
SystemExceptionpublic static int getEventsCount(long groupId,
java.lang.String[] types)
throws SystemException
SystemExceptionpublic static java.util.List<CalEvent> getNoAssetEvents() throws SystemException
SystemExceptionpublic static java.util.List<CalEvent> getRepeatingEvents(long groupId) throws SystemException
SystemExceptionpublic static java.util.List<CalEvent> getRepeatingEvents(long groupId, java.util.Calendar cal, java.lang.String[] types) throws SystemException
SystemExceptionpublic static boolean hasEvents(long groupId,
java.util.Calendar cal)
throws SystemException
SystemExceptionpublic static boolean hasEvents(long groupId,
java.util.Calendar cal,
java.lang.String type)
throws SystemException
SystemExceptionpublic static boolean hasEvents(long groupId,
java.util.Calendar cal,
java.lang.String[] types)
throws SystemException
SystemExceptionpublic static void importICal4j(long userId,
long groupId,
java.io.InputStream inputStream)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void updateAsset(long userId,
CalEvent event,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static CalEvent updateEvent(long userId, long eventId, java.lang.String title, java.lang.String description, java.lang.String location, int startDateMonth, int startDateDay, int startDateYear, int startDateHour, int startDateMinute, int durationHour, int durationMinute, boolean allDay, boolean timeZoneSensitive, java.lang.String type, boolean repeating, TZSRecurrence recurrence, int remindBy, int firstReminder, int secondReminder, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static CalEvent updateEvent(long userId, long eventId, java.lang.String title, java.lang.String description, java.lang.String location, int startDateMonth, int startDateDay, int startDateYear, int startDateHour, int startDateMinute, int endDateMonth, int endDateDay, int endDateYear, int durationHour, int durationMinute, boolean allDay, boolean timeZoneSensitive, java.lang.String type, boolean repeating, TZSRecurrence recurrence, int remindBy, int firstReminder, int secondReminder, ServiceContext serviceContext) throws PortalException, SystemException
updateEvent(long, long,
String, String, String, int, int, int, int, int, int, int,
boolean, boolean, String, boolean, TZSRecurrence, int, int,
int, ServiceContext)PortalExceptionSystemExceptionpublic static CalEventLocalService getService()
public void setService(CalEventLocalService service)