|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface CalEventLocalService
Provides the local service interface for CalEvent. 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.
CalEventLocalServiceUtil
,
com.liferay.portlet.calendar.service.base.CalEventLocalServiceBaseImpl
,
com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl
Method Summary | |
---|---|
CalEvent |
addCalEvent(CalEvent calEvent)
Adds the cal event to the database. |
CalEvent |
addEvent(long userId,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
|
CalEvent |
addEvent(long userId,
String title,
String description,
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,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
Deprecated. As of 6.2.0, replaced by addEvent(long, String,
String, String, int, int, int, int, int, int, int, boolean,
boolean, String, boolean, TZSRecurrence, int, int, int,
ServiceContext) |
void |
addEventResources(CalEvent event,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addEventResources(CalEvent event,
String[] groupPermissions,
String[] guestPermissions)
|
void |
addEventResources(long eventId,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addEventResources(long eventId,
String[] groupPermissions,
String[] guestPermissions)
|
void |
checkEvents()
|
CalEvent |
createCalEvent(long eventId)
Creates a new cal event with the primary key. |
CalEvent |
deleteCalEvent(CalEvent calEvent)
Deletes the cal event from the database. |
CalEvent |
deleteCalEvent(long eventId)
Deletes the cal event with the primary key from the database. |
CalEvent |
deleteEvent(CalEvent event)
|
CalEvent |
deleteEvent(long eventId)
|
void |
deleteEvents(long groupId)
|
DynamicQuery |
dynamicQuery()
|
List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
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. |
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query. |
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query. |
File |
exportEvent(long userId,
long eventId)
|
File |
exportEvents(long userId,
List<CalEvent> events,
String fileName)
|
File |
exportGroupEvents(long userId,
long groupId,
String fileName)
|
CalEvent |
fetchCalEvent(long eventId)
|
CalEvent |
fetchCalEventByUuidAndCompanyId(String uuid,
long companyId)
Returns the cal event with the matching UUID and company. |
CalEvent |
fetchCalEventByUuidAndGroupId(String uuid,
long groupId)
Returns the cal event matching the UUID and group. |
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
CalEvent |
getCalEvent(long eventId)
Returns the cal event with the primary key. |
CalEvent |
getCalEventByUuidAndCompanyId(String uuid,
long companyId)
Returns the cal event with the matching UUID and company. |
CalEvent |
getCalEventByUuidAndGroupId(String uuid,
long groupId)
Returns the cal event matching the UUID and group. |
List<CalEvent> |
getCalEvents(int start,
int end)
Returns a range of all the cal events. |
int |
getCalEventsCount()
Returns the number of cal events. |
List<CalEvent> |
getCompanyEvents(long companyId,
int start,
int end)
|
int |
getCompanyEventsCount(long companyId)
|
CalEvent |
getEvent(long eventId)
|
List<CalEvent> |
getEvents(long groupId,
Calendar cal)
|
List<CalEvent> |
getEvents(long groupId,
Calendar cal,
String type)
|
List<CalEvent> |
getEvents(long groupId,
Calendar cal,
String[] types)
|
List<CalEvent> |
getEvents(long groupId,
String[] types,
int start,
int end)
|
List<CalEvent> |
getEvents(long groupId,
String type,
int start,
int end)
|
int |
getEventsCount(long groupId,
String type)
|
int |
getEventsCount(long groupId,
String[] types)
|
List<CalEvent> |
getNoAssetEvents()
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
List<CalEvent> |
getRepeatingEvents(long groupId)
|
List<CalEvent> |
getRepeatingEvents(long groupId,
Calendar cal,
String[] types)
|
boolean |
hasEvents(long groupId,
Calendar cal)
|
boolean |
hasEvents(long groupId,
Calendar cal,
String type)
|
boolean |
hasEvents(long groupId,
Calendar cal,
String[] types)
|
void |
importICal4j(long userId,
long groupId,
InputStream inputStream)
|
void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
updateAsset(long userId,
CalEvent event,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
|
CalEvent |
updateCalEvent(CalEvent calEvent)
Updates the cal event in the database or adds it if it does not yet exist. |
CalEvent |
updateEvent(long userId,
long eventId,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
|
CalEvent |
updateEvent(long userId,
long eventId,
String title,
String description,
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,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
Deprecated. As of 6.2.0, replaced by updateEvent(long, long,
String, String, String, int, int, int, int, int, int, int,
boolean, boolean, String, boolean, TZSRecurrence, int, int,
int, ServiceContext) |
Method Detail |
---|
@Indexable(type=REINDEX) CalEvent addCalEvent(CalEvent calEvent) throws SystemException
calEvent
- the cal event
SystemException
- if a system exception occurredCalEvent createCalEvent(long eventId)
eventId
- the primary key for the new cal event
@Indexable(type=DELETE) CalEvent deleteCalEvent(long eventId) throws PortalException, SystemException
eventId
- the primary key of the cal event
PortalException
- if a cal event with the primary key could not be found
SystemException
- if a system exception occurred@Indexable(type=DELETE) CalEvent deleteCalEvent(CalEvent calEvent) throws SystemException
calEvent
- the cal event
SystemException
- if a system exception occurredDynamicQuery dynamicQuery()
List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredList 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 occurredList 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 occurredlong dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) CalEvent fetchCalEvent(long eventId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) CalEvent fetchCalEventByUuidAndCompanyId(String uuid, long companyId) throws SystemException
uuid
- the cal event's UUIDcompanyId
- the primary key of the company
null
if a matching cal event could not be found
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) CalEvent fetchCalEventByUuidAndGroupId(String uuid, long groupId) throws SystemException
uuid
- the cal event's UUIDgroupId
- the primary key of the group
null
if a matching cal event could not be found
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) CalEvent getCalEvent(long eventId) throws PortalException, SystemException
eventId
- the primary key of the cal event
PortalException
- if a cal event with the primary key could not be found
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel
in interface PersistedModelLocalService
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) CalEvent getCalEventByUuidAndCompanyId(String uuid, long companyId) throws PortalException, SystemException
uuid
- the cal event's UUIDcompanyId
- the primary key of the company
PortalException
- if a matching cal event could not be found
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) CalEvent getCalEventByUuidAndGroupId(String uuid, long groupId) throws PortalException, SystemException
uuid
- the cal event's UUIDgroupId
- the primary key of the group
PortalException
- if a matching cal event could not be found
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) 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 occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getCalEventsCount() throws SystemException
SystemException
- if a system exception occurred@Indexable(type=REINDEX) CalEvent updateCalEvent(CalEvent calEvent) throws SystemException
calEvent
- the cal event
SystemException
- if a system exception occurredString getBeanIdentifier()
void setBeanIdentifier(String beanIdentifier)
beanIdentifier
- the Spring bean ID for this bean@Indexable(type=REINDEX) CalEvent addEvent(long userId, String title, String description, String location, int startDateMonth, int startDateDay, int startDateYear, int startDateHour, int startDateMinute, int durationHour, int durationMinute, boolean allDay, boolean timeZoneSensitive, String type, boolean repeating, TZSRecurrence recurrence, int remindBy, int firstReminder, int secondReminder, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
@Indexable(type=REINDEX) CalEvent addEvent(long userId, String title, String description, 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, 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)
PortalException
SystemException
void addEventResources(CalEvent event, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
void addEventResources(CalEvent event, String[] groupPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
void addEventResources(long eventId, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
void addEventResources(long eventId, String[] groupPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
void checkEvents() throws SystemException
SystemException
@Indexable(type=DELETE) CalEvent deleteEvent(CalEvent event) throws PortalException, SystemException
PortalException
SystemException
@Indexable(type=DELETE) CalEvent deleteEvent(long eventId) throws PortalException, SystemException
PortalException
SystemException
void deleteEvents(long groupId) throws PortalException, SystemException
PortalException
SystemException
File exportEvent(long userId, long eventId) throws PortalException, SystemException
PortalException
SystemException
File exportEvents(long userId, List<CalEvent> events, String fileName) throws PortalException, SystemException
PortalException
SystemException
File exportGroupEvents(long userId, long groupId, String fileName) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<CalEvent> getCompanyEvents(long companyId, int start, int end) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getCompanyEventsCount(long companyId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) CalEvent getEvent(long eventId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<CalEvent> getEvents(long groupId, Calendar cal) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<CalEvent> getEvents(long groupId, Calendar cal, String type) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<CalEvent> getEvents(long groupId, Calendar cal, String[] types) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<CalEvent> getEvents(long groupId, String type, int start, int end) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<CalEvent> getEvents(long groupId, String[] types, int start, int end) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getEventsCount(long groupId, String type) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getEventsCount(long groupId, String[] types) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<CalEvent> getNoAssetEvents() throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<CalEvent> getRepeatingEvents(long groupId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<CalEvent> getRepeatingEvents(long groupId, Calendar cal, String[] types) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasEvents(long groupId, Calendar cal) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasEvents(long groupId, Calendar cal, String type) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasEvents(long groupId, Calendar cal, String[] types) throws SystemException
SystemException
void importICal4j(long userId, long groupId, InputStream inputStream) throws PortalException, SystemException
PortalException
SystemException
void updateAsset(long userId, CalEvent event, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) throws PortalException, SystemException
PortalException
SystemException
@Indexable(type=REINDEX) CalEvent updateEvent(long userId, long eventId, String title, String description, String location, int startDateMonth, int startDateDay, int startDateYear, int startDateHour, int startDateMinute, int durationHour, int durationMinute, boolean allDay, boolean timeZoneSensitive, String type, boolean repeating, TZSRecurrence recurrence, int remindBy, int firstReminder, int secondReminder, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
@Indexable(type=REINDEX) CalEvent updateEvent(long userId, long eventId, String title, String description, 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, 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)
PortalException
SystemException
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |