com.liferay.portlet.calendar.service
Class CalEventLocalServiceUtil

java.lang.Object
  extended bycom.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 com.liferay.portlet.calendar.service.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.

com.liferay.portlet.calendar.service.CalEventLocalServiceFactory is responsible for the lookup of the bean.

Author:
Brian Wing Shun Chan
See Also:
CalEventLocalService, CalEventLocalServiceFactory

Constructor Summary
CalEventLocalServiceUtil()
           
 
Method Summary
static CalEvent addCalEvent(CalEvent model)
           
static CalEvent addEvent(long userId, long plid, 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, com.liferay.portal.kernel.cal.Recurrence recurrence, java.lang.String remindBy, int firstReminder, int secondReminder, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static CalEvent addEvent(long userId, long plid, 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, com.liferay.portal.kernel.cal.Recurrence recurrence, java.lang.String remindBy, int firstReminder, int secondReminder, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static CalEvent addEvent(long userId, long plid, 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, com.liferay.portal.kernel.cal.Recurrence recurrence, java.lang.String remindBy, int firstReminder, int secondReminder, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
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 void deleteEvent(CalEvent event)
           
static void deleteEvent(long eventId)
           
static void deleteEvents(long groupId)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static java.io.File exportEvent(long userId, long eventId)
           
static java.io.File exportGroupEvents(long userId, long plid, java.lang.String fileName)
           
static CalEvent getEvent(long eventId)
           
static java.util.List getEvents(long groupId, java.util.Calendar cal)
           
static java.util.List getEvents(long groupId, java.util.Calendar cal, java.lang.String type)
           
static java.util.List getEvents(long groupId, java.lang.String type, int begin, int end)
           
static int getEventsCount(long groupId, java.lang.String type)
           
static java.util.List getRepeatingEvents(long groupId)
           
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 plid, java.io.File file)
           
static CalEvent updateCalEvent(CalEvent model)
           
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, com.liferay.portal.kernel.cal.Recurrence recurrence, java.lang.String remindBy, int firstReminder, int secondReminder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalEventLocalServiceUtil

public CalEventLocalServiceUtil()
Method Detail

addCalEvent

public static CalEvent addCalEvent(CalEvent model)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateCalEvent

public static CalEvent updateCalEvent(CalEvent model)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addEvent

public static CalEvent addEvent(long userId,
                                long plid,
                                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,
                                com.liferay.portal.kernel.cal.Recurrence recurrence,
                                java.lang.String remindBy,
                                int firstReminder,
                                int secondReminder,
                                boolean addCommunityPermissions,
                                boolean addGuestPermissions)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addEvent

public static CalEvent addEvent(long userId,
                                long plid,
                                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,
                                com.liferay.portal.kernel.cal.Recurrence recurrence,
                                java.lang.String remindBy,
                                int firstReminder,
                                int secondReminder,
                                java.lang.String[] communityPermissions,
                                java.lang.String[] guestPermissions)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addEvent

public static CalEvent addEvent(long userId,
                                long plid,
                                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,
                                com.liferay.portal.kernel.cal.Recurrence recurrence,
                                java.lang.String remindBy,
                                int firstReminder,
                                int secondReminder,
                                java.lang.Boolean addCommunityPermissions,
                                java.lang.Boolean addGuestPermissions,
                                java.lang.String[] communityPermissions,
                                java.lang.String[] guestPermissions)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addEventResources

public static void addEventResources(long eventId,
                                     boolean addCommunityPermissions,
                                     boolean addGuestPermissions)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addEventResources

public static void addEventResources(CalEvent event,
                                     boolean addCommunityPermissions,
                                     boolean addGuestPermissions)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addEventResources

public static void addEventResources(long eventId,
                                     java.lang.String[] communityPermissions,
                                     java.lang.String[] guestPermissions)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addEventResources

public static void addEventResources(CalEvent event,
                                     java.lang.String[] communityPermissions,
                                     java.lang.String[] guestPermissions)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkEvents

public static void checkEvents()
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteEvent

public static void deleteEvent(long eventId)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteEvent

public static void deleteEvent(CalEvent event)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteEvents

public static void deleteEvents(long groupId)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportEvent

public static java.io.File exportEvent(long userId,
                                       long eventId)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportGroupEvents

public static java.io.File exportGroupEvents(long userId,
                                             long plid,
                                             java.lang.String fileName)
                                      throws com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getEvent

public static CalEvent getEvent(long eventId)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getEvents

public static java.util.List getEvents(long groupId,
                                       java.lang.String type,
                                       int begin,
                                       int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getEvents

public static java.util.List getEvents(long groupId,
                                       java.util.Calendar cal)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getEvents

public static java.util.List getEvents(long groupId,
                                       java.util.Calendar cal,
                                       java.lang.String type)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getEventsCount

public static int getEventsCount(long groupId,
                                 java.lang.String type)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getRepeatingEvents

public static java.util.List getRepeatingEvents(long groupId)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasEvents

public static boolean hasEvents(long groupId,
                                java.util.Calendar cal)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasEvents

public static boolean hasEvents(long groupId,
                                java.util.Calendar cal,
                                java.lang.String type)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

importICal4j

public static void importICal4j(long userId,
                                long plid,
                                java.io.File file)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.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,
                                   com.liferay.portal.kernel.cal.Recurrence recurrence,
                                   java.lang.String remindBy,
                                   int firstReminder,
                                   int secondReminder)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException