|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.calendar.service.CalEventLocalServiceUtil
public class CalEventLocalServiceUtil
The utility for the cal event local service. This utility wraps CalEventLocalServiceImpl
and is the primary access point for service operations in application layer code running on the local server.
This is a local service. 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
,
CalEventLocalServiceBaseImpl
,
CalEventLocalServiceImpl
Constructor Summary | |
---|---|
CalEventLocalServiceUtil()
|
Method Summary | |
---|---|
static CalEvent |
addCalEvent(CalEvent calEvent)
Adds the cal event to the database. |
static 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)
|
static 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. addEvent(long, String, String, String, int, int, int,
int, int, int, int, boolean, boolean, String, boolean,
TZSRecurrence, int, int, int, ServiceContext) |
static void |
addEventResources(CalEvent event,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
static void |
addEventResources(CalEvent event,
String[] groupPermissions,
String[] guestPermissions)
|
static void |
addEventResources(long eventId,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
static void |
addEventResources(long eventId,
String[] groupPermissions,
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 void |
deleteEvent(CalEvent event)
|
static void |
deleteEvent(long eventId)
|
static void |
deleteEvents(long groupId)
|
static DynamicQuery |
dynamicQuery()
|
static List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
static 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 File |
exportEvent(long userId,
long eventId)
|
static File |
exportGroupEvents(long userId,
long groupId,
String fileName)
|
static CalEvent |
fetchCalEvent(long eventId)
|
static 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 |
getCalEventByUuidAndGroupId(String uuid,
long groupId)
Returns the cal event with the UUID in the group. |
static 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 List<CalEvent> |
getCompanyEvents(long companyId,
int start,
int end)
|
static int |
getCompanyEventsCount(long companyId)
|
static CalEvent |
getEvent(long eventId)
|
static List<CalEvent> |
getEvents(long groupId,
Calendar cal)
|
static List<CalEvent> |
getEvents(long groupId,
Calendar cal,
String type)
|
static List<CalEvent> |
getEvents(long groupId,
Calendar cal,
String[] types)
|
static List<CalEvent> |
getEvents(long groupId,
String[] types,
int start,
int end)
|
static List<CalEvent> |
getEvents(long groupId,
String type,
int start,
int end)
|
static int |
getEventsCount(long groupId,
String type)
|
static int |
getEventsCount(long groupId,
String[] types)
|
static List<CalEvent> |
getNoAssetEvents()
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
static List<CalEvent> |
getRepeatingEvents(long groupId)
|
static List<CalEvent> |
getRepeatingEvents(long groupId,
Calendar cal,
String[] types)
|
static CalEventLocalService |
getService()
|
static boolean |
hasEvents(long groupId,
Calendar cal)
|
static boolean |
hasEvents(long groupId,
Calendar cal,
String type)
|
static boolean |
hasEvents(long groupId,
Calendar cal,
String[] types)
|
static void |
importICal4j(long userId,
long groupId,
InputStream inputStream)
|
static void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
setService(CalEventLocalService service)
Deprecated. |
static void |
updateAsset(long userId,
CalEvent event,
long[] assetCategoryIds,
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 |
updateCalEvent(CalEvent calEvent,
boolean merge)
Updates the cal event in the database or adds it if it does not yet exist. |
static 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)
|
static 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. updateEvent(long, long, String, String, String, int,
int, int, int, int, int, int, boolean, boolean, String,
boolean, TZSRecurrence, int, int, int, ServiceContext) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalEventLocalServiceUtil()
Method Detail |
---|
public static CalEvent addCalEvent(CalEvent calEvent) throws SystemException
calEvent
- the cal event
SystemException
- if a system exception occurredpublic static CalEvent createCalEvent(long eventId)
eventId
- the primary key for the new cal event
public static 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 occurredpublic static CalEvent deleteCalEvent(CalEvent calEvent) throws SystemException
calEvent
- the cal event
SystemException
- if a system exception occurredpublic static DynamicQuery dynamicQuery()
public static List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic static 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.
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 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.
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 query
SystemException
- if a system exception occurredpublic static CalEvent fetchCalEvent(long eventId) throws SystemException
SystemException
public static 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 occurredpublic static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException, SystemException
PortalException
SystemException
public static CalEvent getCalEventByUuidAndGroupId(String uuid, long groupId) throws PortalException, SystemException
uuid
- the UUID of cal eventgroupId
- the group id of the cal event
PortalException
- if a cal event with the UUID in the group could not be found
SystemException
- if a system exception occurredpublic static 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.
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 event
SystemException
- if a system exception occurredpublic static CalEvent updateCalEvent(CalEvent calEvent, boolean merge) throws SystemException
calEvent
- the cal eventmerge
- whether to merge the cal event with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredpublic static String getBeanIdentifier()
public static void setBeanIdentifier(String beanIdentifier)
beanIdentifier
- the Spring bean ID for this beanpublic static 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
public static 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
public static void addEventResources(CalEvent event, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void addEventResources(CalEvent event, String[] groupPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void addEventResources(long eventId, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void addEventResources(long eventId, String[] groupPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void checkEvents() throws PortalException, SystemException
PortalException
SystemException
public static void deleteEvent(CalEvent event) throws PortalException, SystemException
PortalException
SystemException
public static void deleteEvent(long eventId) throws PortalException, SystemException
PortalException
SystemException
public static void deleteEvents(long groupId) throws PortalException, SystemException
PortalException
SystemException
public static File exportEvent(long userId, long eventId) throws PortalException, SystemException
PortalException
SystemException
public static File exportGroupEvents(long userId, long groupId, String fileName) throws PortalException, SystemException
PortalException
SystemException
public static List<CalEvent> getCompanyEvents(long companyId, int start, int end) throws SystemException
SystemException
public static int getCompanyEventsCount(long companyId) throws SystemException
SystemException
public static CalEvent getEvent(long eventId) throws PortalException, SystemException
PortalException
SystemException
public static List<CalEvent> getEvents(long groupId, Calendar cal) throws SystemException
SystemException
public static List<CalEvent> getEvents(long groupId, Calendar cal, String type) throws SystemException
SystemException
public static List<CalEvent> getEvents(long groupId, Calendar cal, String[] types) throws SystemException
SystemException
public static List<CalEvent> getEvents(long groupId, String type, int start, int end) throws SystemException
SystemException
public static List<CalEvent> getEvents(long groupId, String[] types, int start, int end) throws SystemException
SystemException
public static int getEventsCount(long groupId, String type) throws SystemException
SystemException
public static int getEventsCount(long groupId, String[] types) throws SystemException
SystemException
public static List<CalEvent> getNoAssetEvents() throws SystemException
SystemException
public static List<CalEvent> getRepeatingEvents(long groupId) throws SystemException
SystemException
public static List<CalEvent> getRepeatingEvents(long groupId, Calendar cal, String[] types) throws SystemException
SystemException
public static boolean hasEvents(long groupId, Calendar cal) throws SystemException
SystemException
public static boolean hasEvents(long groupId, Calendar cal, String type) throws SystemException
SystemException
public static boolean hasEvents(long groupId, Calendar cal, String[] types) throws SystemException
SystemException
public static void importICal4j(long userId, long groupId, InputStream inputStream) throws PortalException, SystemException
PortalException
SystemException
public static void updateAsset(long userId, CalEvent event, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) throws PortalException, SystemException
PortalException
SystemException
public static 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
public static 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
public static CalEventLocalService getService()
public void setService(CalEventLocalService service)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |