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.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static CalEvent addEvent(java.lang.String uuid, 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(java.lang.String uuid, 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 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 afterPropertiesSet()
           
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 CalEventFinder getCalEventFinder()
           
static CalEventPersistence getCalEventPersistence()
           
static CompanyPersistence getCompanyPersistence()
           
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 PortletPreferencesFinder getPortletPreferencesFinder()
           
static PortletPreferencesPersistence getPortletPreferencesPersistence()
           
static java.util.List getRepeatingEvents(long groupId)
           
static ResourceFinder getResourceFinder()
           
static ResourcePersistence getResourcePersistence()
           
static UserFinder getUserFinder()
           
static UserPersistence getUserPersistence()
           
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 void setCalEventFinder(CalEventFinder calEventFinder)
           
static void setCalEventPersistence(CalEventPersistence calEventPersistence)
           
static void setCompanyPersistence(CompanyPersistence companyPersistence)
           
static void setPortletPreferencesFinder(PortletPreferencesFinder portletPreferencesFinder)
           
static void setPortletPreferencesPersistence(PortletPreferencesPersistence portletPreferencesPersistence)
           
static void setResourceFinder(ResourceFinder resourceFinder)
           
static void setResourcePersistence(ResourcePersistence resourcePersistence)
           
static void setUserFinder(UserFinder userFinder)
           
static void setUserPersistence(UserPersistence userPersistence)
           
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

getCalEventPersistence

public static CalEventPersistence getCalEventPersistence()

setCalEventPersistence

public static void setCalEventPersistence(CalEventPersistence calEventPersistence)

getCalEventFinder

public static CalEventFinder getCalEventFinder()

setCalEventFinder

public static void setCalEventFinder(CalEventFinder calEventFinder)

getCompanyPersistence

public static CompanyPersistence getCompanyPersistence()

setCompanyPersistence

public static void setCompanyPersistence(CompanyPersistence companyPersistence)

getPortletPreferencesPersistence

public static PortletPreferencesPersistence getPortletPreferencesPersistence()

setPortletPreferencesPersistence

public static void setPortletPreferencesPersistence(PortletPreferencesPersistence portletPreferencesPersistence)

getPortletPreferencesFinder

public static PortletPreferencesFinder getPortletPreferencesFinder()

setPortletPreferencesFinder

public static void setPortletPreferencesFinder(PortletPreferencesFinder portletPreferencesFinder)

getResourcePersistence

public static ResourcePersistence getResourcePersistence()

setResourcePersistence

public static void setResourcePersistence(ResourcePersistence resourcePersistence)

getResourceFinder

public static ResourceFinder getResourceFinder()

setResourceFinder

public static void setResourceFinder(ResourceFinder resourceFinder)

getUserPersistence

public static UserPersistence getUserPersistence()

setUserPersistence

public static void setUserPersistence(UserPersistence userPersistence)

getUserFinder

public static UserFinder getUserFinder()

setUserFinder

public static void setUserFinder(UserFinder userFinder)

afterPropertiesSet

public static void afterPropertiesSet()

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(java.lang.String uuid,
                                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(java.lang.String uuid,
                                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