com.liferay.portlet.calendar.service
Class CalEventLocalServiceUtil
java.lang.Object
com.liferay.portlet.calendar.service.CalEventLocalServiceUtil
public class CalEventLocalServiceUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This class provides static methods for the
CalEventLocalService
bean. The static methods of
this class calls the same methods of the bean instance. It's convenient to be
able to just write one line to call a method on a bean instead of writing a
lookup call and a method call.
- Author:
- Brian Wing Shun Chan
- See Also:
CalEventLocalService
- Generated:
Method Summary |
static CalEvent |
addCalEvent(CalEvent calEvent)
|
static CalEvent |
addEvent(java.lang.String uuid,
long userId,
java.lang.String title,
java.lang.String description,
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 addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addEventResources(CalEvent event,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static void |
addEventResources(long eventId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addEventResources(long eventId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static void |
checkEvents()
|
static CalEvent |
createCalEvent(long eventId)
|
static void |
deleteCalEvent(CalEvent calEvent)
|
static void |
deleteCalEvent(long eventId)
|
static void |
deleteEvent(CalEvent event)
|
static void |
deleteEvent(long eventId)
|
static void |
deleteEvents(long groupId)
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
static java.io.File |
exportEvent(long userId,
long eventId)
|
static java.io.File |
exportGroupEvents(long userId,
long groupId,
java.lang.String fileName)
|
static CalEvent |
getCalEvent(long eventId)
|
static CalEvent |
getCalEventByUuidAndGroupId(java.lang.String uuid,
long groupId)
|
static java.util.List<CalEvent> |
getCalEvents(int start,
int end)
|
static int |
getCalEventsCount()
|
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.lang.String type,
int start,
int end)
|
static int |
getEventsCount(long groupId,
java.lang.String type)
|
static java.util.List<CalEvent> |
getNoAssetEvents()
|
static java.util.List<CalEvent> |
getRepeatingEvents(long groupId)
|
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 void |
importICal4j(long userId,
long groupId,
java.io.File file)
|
void |
setService(CalEventLocalService service)
|
static void |
updateAsset(long userId,
CalEvent event,
long[] assetCategoryIds,
java.lang.String[] assetTagNames)
|
static CalEvent |
updateCalEvent(CalEvent calEvent)
|
static CalEvent |
updateCalEvent(CalEvent calEvent,
boolean merge)
|
static CalEvent |
updateEvent(long userId,
long eventId,
java.lang.String title,
java.lang.String description,
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalEventLocalServiceUtil
public CalEventLocalServiceUtil()
addCalEvent
public static CalEvent addCalEvent(CalEvent calEvent)
throws SystemException
- Throws:
SystemException
createCalEvent
public static CalEvent createCalEvent(long eventId)
deleteCalEvent
public static void deleteCalEvent(long eventId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCalEvent
public static void deleteCalEvent(CalEvent calEvent)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getCalEvent
public static CalEvent getCalEvent(long eventId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCalEventByUuidAndGroupId
public static CalEvent getCalEventByUuidAndGroupId(java.lang.String uuid,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCalEvents
public static java.util.List<CalEvent> getCalEvents(int start,
int end)
throws SystemException
- Throws:
SystemException
getCalEventsCount
public static int getCalEventsCount()
throws SystemException
- Throws:
SystemException
updateCalEvent
public static CalEvent updateCalEvent(CalEvent calEvent)
throws SystemException
- Throws:
SystemException
updateCalEvent
public static CalEvent updateCalEvent(CalEvent calEvent,
boolean merge)
throws SystemException
- Throws:
SystemException
addEvent
public static CalEvent addEvent(java.lang.String uuid,
long userId,
java.lang.String title,
java.lang.String description,
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
- Throws:
PortalException
SystemException
addEventResources
public static void addEventResources(CalEvent event,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addEventResources
public static void addEventResources(CalEvent event,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addEventResources
public static void addEventResources(long eventId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addEventResources
public static void addEventResources(long eventId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkEvents
public static void checkEvents()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteEvent
public static void deleteEvent(CalEvent event)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteEvent
public static void deleteEvent(long eventId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteEvents
public static void deleteEvents(long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
exportEvent
public static java.io.File exportEvent(long userId,
long eventId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
exportGroupEvents
public static java.io.File exportGroupEvents(long userId,
long groupId,
java.lang.String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyEvents
public static java.util.List<CalEvent> getCompanyEvents(long companyId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getCompanyEventsCount
public static int getCompanyEventsCount(long companyId)
throws SystemException
- Throws:
SystemException
getEvent
public static CalEvent getEvent(long eventId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getEvents
public static java.util.List<CalEvent> getEvents(long groupId,
java.util.Calendar cal)
throws SystemException
- Throws:
SystemException
getEvents
public static java.util.List<CalEvent> getEvents(long groupId,
java.util.Calendar cal,
java.lang.String type)
throws SystemException
- Throws:
SystemException
getEvents
public static java.util.List<CalEvent> getEvents(long groupId,
java.lang.String type,
int start,
int end)
throws SystemException
- Throws:
SystemException
getEventsCount
public static int getEventsCount(long groupId,
java.lang.String type)
throws SystemException
- Throws:
SystemException
getNoAssetEvents
public static java.util.List<CalEvent> getNoAssetEvents()
throws SystemException
- Throws:
SystemException
getRepeatingEvents
public static java.util.List<CalEvent> getRepeatingEvents(long groupId)
throws SystemException
- Throws:
SystemException
hasEvents
public static boolean hasEvents(long groupId,
java.util.Calendar cal)
throws SystemException
- Throws:
SystemException
hasEvents
public static boolean hasEvents(long groupId,
java.util.Calendar cal,
java.lang.String type)
throws SystemException
- Throws:
SystemException
importICal4j
public static void importICal4j(long userId,
long groupId,
java.io.File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateAsset
public static void updateAsset(long userId,
CalEvent event,
long[] assetCategoryIds,
java.lang.String[] assetTagNames)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateEvent
public static CalEvent updateEvent(long userId,
long eventId,
java.lang.String title,
java.lang.String description,
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
- Throws:
PortalException
SystemException
getService
public static CalEventLocalService getService()
setService
public void setService(CalEventLocalService service)