@Deprecated @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface CalEventLocalService extends BaseLocalService, PersistedModelLocalService
CalEventLocalServiceUtil,
com.liferay.portlet.calendar.service.base.CalEventLocalServiceBaseImpl,
com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl| Modifier and Type | Method and Description |
|---|---|
CalEvent |
addCalEvent(CalEvent calEvent)
Deprecated.
Adds the cal event to the database.
|
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)
Deprecated.
|
void |
addEventResources(CalEvent event,
boolean addGroupPermissions,
boolean addGuestPermissions)
Deprecated.
|
void |
addEventResources(CalEvent event,
ModelPermissions modelPermissions)
Deprecated.
|
void |
addEventResources(long eventId,
boolean addGroupPermissions,
boolean addGuestPermissions)
Deprecated.
|
void |
addEventResources(long eventId,
ModelPermissions modelPermissions)
Deprecated.
|
void |
checkEvents()
Deprecated.
|
CalEvent |
createCalEvent(long eventId)
Deprecated.
Creates a new cal event with the primary key.
|
CalEvent |
deleteCalEvent(CalEvent calEvent)
Deprecated.
Deletes the cal event from the database.
|
CalEvent |
deleteCalEvent(long eventId)
Deprecated.
Deletes the cal event with the primary key from the database.
|
CalEvent |
deleteEvent(CalEvent event)
Deprecated.
|
CalEvent |
deleteEvent(long eventId)
Deprecated.
|
void |
deleteEvents(long groupId)
Deprecated.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel)
Deprecated.
|
DynamicQuery |
dynamicQuery()
Deprecated.
|
<T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Deprecated.
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Deprecated.
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Deprecated.
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Deprecated.
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Deprecated.
Returns the number of rows matching the dynamic query.
|
java.io.File |
exportEvent(long userId,
long eventId)
Deprecated.
|
java.io.File |
exportEvents(long userId,
java.util.List<CalEvent> events,
java.lang.String fileName)
Deprecated.
|
java.io.File |
exportGroupEvents(long userId,
long groupId,
java.lang.String fileName)
Deprecated.
|
CalEvent |
fetchCalEvent(long eventId)
Deprecated.
|
CalEvent |
fetchCalEventByUuidAndGroupId(java.lang.String uuid,
long groupId)
Deprecated.
Returns the cal event matching the UUID and group.
|
ActionableDynamicQuery |
getActionableDynamicQuery()
Deprecated.
|
CalEvent |
getCalEvent(long eventId)
Deprecated.
Returns the cal event with the primary key.
|
CalEvent |
getCalEventByUuidAndGroupId(java.lang.String uuid,
long groupId)
Deprecated.
Returns the cal event matching the UUID and group.
|
java.util.List<CalEvent> |
getCalEvents(int start,
int end)
Deprecated.
Returns a range of all the cal events.
|
java.util.List<CalEvent> |
getCalEventsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Deprecated.
Returns all the cal events matching the UUID and company.
|
java.util.List<CalEvent> |
getCalEventsByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator<CalEvent> orderByComparator)
Deprecated.
Returns a range of cal events matching the UUID and company.
|
int |
getCalEventsCount()
Deprecated.
Returns the number of cal events.
|
java.util.List<CalEvent> |
getCompanyEvents(long companyId,
int start,
int end)
Deprecated.
|
int |
getCompanyEventsCount(long companyId)
Deprecated.
|
CalEvent |
getEvent(long eventId)
Deprecated.
|
java.util.List<CalEvent> |
getEvents(long groupId,
java.util.Calendar cal)
Deprecated.
|
java.util.List<CalEvent> |
getEvents(long groupId,
java.util.Calendar cal,
java.lang.String type)
Deprecated.
|
java.util.List<CalEvent> |
getEvents(long groupId,
java.util.Calendar cal,
java.lang.String[] types)
Deprecated.
|
java.util.List<CalEvent> |
getEvents(long groupId,
java.lang.String[] types,
int start,
int end)
Deprecated.
|
java.util.List<CalEvent> |
getEvents(long groupId,
java.lang.String type,
int start,
int end)
Deprecated.
|
int |
getEventsCount(long groupId,
java.lang.String type)
Deprecated.
|
int |
getEventsCount(long groupId,
java.lang.String[] types)
Deprecated.
|
ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext)
Deprecated.
|
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery()
Deprecated.
|
java.util.List<CalEvent> |
getNoAssetEvents()
Deprecated.
|
java.lang.String |
getOSGiServiceIdentifier()
Deprecated.
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj)
Deprecated.
|
java.util.List<CalEvent> |
getRepeatingEvents(long groupId)
Deprecated.
|
java.util.List<CalEvent> |
getRepeatingEvents(long groupId,
java.util.Calendar cal,
java.lang.String[] types)
Deprecated.
|
boolean |
hasEvents(long groupId,
java.util.Calendar cal)
Deprecated.
|
boolean |
hasEvents(long groupId,
java.util.Calendar cal,
java.lang.String type)
Deprecated.
|
boolean |
hasEvents(long groupId,
java.util.Calendar cal,
java.lang.String[] types)
Deprecated.
|
void |
importICal4j(long userId,
long groupId,
java.io.InputStream inputStream)
Deprecated.
|
void |
updateAsset(long userId,
CalEvent event,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds)
Deprecated.
|
CalEvent |
updateCalEvent(CalEvent calEvent)
Deprecated.
Updates the cal event in the database or adds it if it does not yet exist.
|
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)
Deprecated.
|
@Indexable(type=REINDEX) CalEvent addCalEvent(CalEvent calEvent)
calEvent - the cal event@Indexable(type=REINDEX) 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
PortalExceptionvoid addEventResources(CalEvent event, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException
PortalExceptionvoid addEventResources(CalEvent event, ModelPermissions modelPermissions) throws PortalException
PortalExceptionvoid addEventResources(long eventId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
PortalExceptionvoid addEventResources(long eventId,
ModelPermissions modelPermissions)
throws PortalException
PortalExceptionvoid checkEvents()
CalEvent createCalEvent(long eventId)
eventId - the primary key for the new cal event@Indexable(type=DELETE) CalEvent deleteCalEvent(CalEvent calEvent)
calEvent - the cal event@Indexable(type=DELETE) CalEvent deleteCalEvent(long eventId) throws PortalException
eventId - the primary key of the cal eventPortalException - if a cal event with the primary key could not be found@Indexable(type=DELETE) CalEvent deleteEvent(CalEvent event) throws PortalException
PortalException@Indexable(type=DELETE) CalEvent deleteEvent(long eventId) throws PortalException
PortalExceptionvoid deleteEvents(long groupId)
throws PortalException
PortalExceptionPersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel in interface PersistedModelLocalServicePortalExceptionDynamicQuery dynamicQuery()
<T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query<T> java.util.List<T> dynamicQuery(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 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 com.liferay.portlet.calendar.model.impl.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)<T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, 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 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 com.liferay.portlet.calendar.model.impl.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)long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic querylong dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery - the dynamic queryprojection - the projection to apply to the queryjava.io.File exportEvent(long userId,
long eventId)
throws PortalException
PortalExceptionjava.io.File exportEvents(long userId,
java.util.List<CalEvent> events,
java.lang.String fileName)
throws PortalException
PortalExceptionjava.io.File exportGroupEvents(long userId,
long groupId,
java.lang.String fileName)
throws PortalException
PortalException@Transactional(propagation=SUPPORTS, readOnly=true) CalEvent fetchCalEvent(long eventId)
@Transactional(propagation=SUPPORTS, readOnly=true) CalEvent fetchCalEventByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid - the cal event's UUIDgroupId - the primary key of the groupnull if a matching cal event could not be found@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) CalEvent getCalEvent(long eventId) throws PortalException
eventId - the primary key of the cal eventPortalException - if a cal event with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) CalEvent getCalEventByUuidAndGroupId(java.lang.String uuid, long groupId) throws PortalException
uuid - the cal event's UUIDgroupId - the primary key of the groupPortalException - if a matching cal event could not be found@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CalEvent> getCalEvents(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 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 com.liferay.portlet.calendar.model.impl.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)@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CalEvent> getCalEventsByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid - the UUID of the cal eventscompanyId - the primary key of the company@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CalEvent> getCalEventsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, OrderByComparator<CalEvent> orderByComparator)
uuid - the UUID of the cal eventscompanyId - the primary key of the companystart - the lower bound of the range of cal eventsend - the upper bound of the range of cal events (not inclusive)orderByComparator - the comparator to order the results by (optionally null)@Transactional(propagation=SUPPORTS, readOnly=true) int getCalEventsCount()
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CalEvent> getCompanyEvents(long companyId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getCompanyEventsCount(long companyId)
@Transactional(propagation=SUPPORTS, readOnly=true) CalEvent getEvent(long eventId) throws PortalException
PortalException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CalEvent> getEvents(long groupId, java.util.Calendar cal)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CalEvent> getEvents(long groupId, java.util.Calendar cal, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CalEvent> getEvents(long groupId, java.util.Calendar cal, java.lang.String[] types)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CalEvent> getEvents(long groupId, java.lang.String type, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CalEvent> getEvents(long groupId, java.lang.String[] types, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getEventsCount(long groupId, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) int getEventsCount(long groupId, java.lang.String[] types)
@Transactional(propagation=SUPPORTS, readOnly=true) ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CalEvent> getNoAssetEvents()
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
getPersistedModel in interface PersistedModelLocalServicePortalException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CalEvent> getRepeatingEvents(long groupId)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<CalEvent> getRepeatingEvents(long groupId, java.util.Calendar cal, java.lang.String[] types)
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasEvents(long groupId, java.util.Calendar cal)
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasEvents(long groupId, java.util.Calendar cal, java.lang.String type)
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasEvents(long groupId, java.util.Calendar cal, java.lang.String[] types)
void importICal4j(long userId,
long groupId,
java.io.InputStream inputStream)
throws PortalException
PortalExceptionvoid updateAsset(long userId,
CalEvent event,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException
PortalException@Indexable(type=REINDEX) CalEvent updateCalEvent(CalEvent calEvent)
calEvent - the cal event@Indexable(type=REINDEX) 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
PortalException