com.liferay.portlet.calendar.service
Class CalEventLocalServiceUtil

java.lang.Object
  extended by 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 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.

Author:
Brian Wing Shun Chan
See Also:
CalEventLocalService

Constructor Summary
CalEventLocalServiceUtil()
           
 
Method Summary
static CalEvent addCalEvent(CalEvent calEvent)
           
static CalEvent addEvent(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, com.liferay.portal.kernel.cal.TZSRecurrence recurrence, java.lang.String remindBy, int firstReminder, int secondReminder, ServiceContext serviceContext)
           
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, com.liferay.portal.kernel.cal.TZSRecurrence recurrence, java.lang.String 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<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
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 java.util.List<CalEvent> getCalEvents(int start, int end)
           
static int getCalEventsCount()
           
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> 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 CalEvent updateCalEvent(CalEvent calEvent)
           
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.TZSRecurrence 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 calEvent)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createCalEvent

public static CalEvent createCalEvent(long eventId)

deleteCalEvent

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

deleteCalEvent

public static void deleteCalEvent(CalEvent calEvent)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCalEvent

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

getCalEvents

public static java.util.List<CalEvent> getCalEvents(int start,
                                                    int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCalEventsCount

public static int getCalEventsCount()
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateCalEvent

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

addEvent

public static CalEvent addEvent(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,
                                com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
                                java.lang.String remindBy,
                                int firstReminder,
                                int secondReminder,
                                ServiceContext serviceContext)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.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,
                                com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
                                java.lang.String remindBy,
                                int firstReminder,
                                int secondReminder,
                                ServiceContext serviceContext)
                         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 groupId,
                                             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<CalEvent> getEvents(long groupId,
                                                 java.lang.String type,
                                                 int start,
                                                 int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getEvents

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

getEvents

public static java.util.List<CalEvent> 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<CalEvent> 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 groupId,
                                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.TZSRecurrence 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

getService

public static CalEventLocalService getService()

setService

public void setService(CalEventLocalService service)