com.liferay.portlet.calendar.service
Class CalEventServiceUtil

java.lang.Object
  extended by com.liferay.portlet.calendar.service.CalEventServiceUtil

public class CalEventServiceUtil
extends java.lang.Object

The utility for the cal event remote service. This utility wraps com.liferay.portlet.calendar.service.impl.CalEventServiceImpl and is the primary access point for service operations in application layer code running on a remote server.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

Author:
Brian Wing Shun Chan
See Also:
CalEventService, com.liferay.portlet.calendar.service.base.CalEventServiceBaseImpl, com.liferay.portlet.calendar.service.impl.CalEventServiceImpl
Generated:

Constructor Summary
CalEventServiceUtil()
           
 
Method Summary
static CalEvent addEvent(java.lang.String title, java.lang.String description, java.lang.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, java.lang.String type, boolean repeating, TZSRecurrence recurrence, int remindBy, int firstReminder, int secondReminder, ServiceContext serviceContext)
           
static void deleteEvent(long eventId)
           
static java.io.File exportEvent(long eventId)
           
static java.io.File exportGroupEvents(long groupId, java.lang.String fileName)
           
static java.lang.String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static CalEvent getEvent(long eventId)
           
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.util.Calendar cal, java.lang.String[] types)
           
static java.util.List<CalEvent> getEvents(long groupId, java.lang.String[] types, int start, int end)
           
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 int getEventsCount(long groupId, java.lang.String[] types)
           
static CalEventService getService()
           
static boolean hasEvents(long groupId, java.util.Calendar cal)
           
static boolean hasEvents(long groupId, java.util.Calendar cal, java.lang.String type)
           
static boolean hasEvents(long groupId, java.util.Calendar cal, java.lang.String[] types)
           
static void importICal4j(long groupId, java.io.InputStream inputStream)
           
static void setBeanIdentifier(java.lang.String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(CalEventService service)
          Deprecated.  
static CalEvent updateEvent(long eventId, java.lang.String title, java.lang.String description, java.lang.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, 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
 

Constructor Detail

CalEventServiceUtil

public CalEventServiceUtil()
Method Detail

getBeanIdentifier

public static java.lang.String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

public static void setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addEvent

public static CalEvent addEvent(java.lang.String title,
                                java.lang.String description,
                                java.lang.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,
                                java.lang.String type,
                                boolean repeating,
                                TZSRecurrence recurrence,
                                int remindBy,
                                int firstReminder,
                                int secondReminder,
                                ServiceContext serviceContext)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

deleteEvent

public static void deleteEvent(long eventId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

exportEvent

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

exportGroupEvents

public static java.io.File exportGroupEvents(long groupId,
                                             java.lang.String fileName)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
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,
                                                 java.lang.String type)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getEvents

public static java.util.List<CalEvent> getEvents(long groupId,
                                                 java.util.Calendar cal,
                                                 java.lang.String[] types)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getEvents

public static java.util.List<CalEvent> getEvents(long groupId,
                                                 java.lang.String type,
                                                 int start,
                                                 int end)
                                          throws SystemException
Throws:
SystemException

getEvents

public static java.util.List<CalEvent> getEvents(long groupId,
                                                 java.lang.String[] types,
                                                 int start,
                                                 int end)
                                          throws SystemException
Throws:
SystemException

getEventsCount

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

getEventsCount

public static int getEventsCount(long groupId,
                                 java.lang.String[] types)
                          throws SystemException
Throws:
SystemException

hasEvents

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

hasEvents

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

hasEvents

public static boolean hasEvents(long groupId,
                                java.util.Calendar cal,
                                java.lang.String[] types)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

importICal4j

public static void importICal4j(long groupId,
                                java.io.InputStream inputStream)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

updateEvent

public static CalEvent updateEvent(long eventId,
                                   java.lang.String title,
                                   java.lang.String description,
                                   java.lang.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,
                                   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 CalEventService getService()

setService

public void setService(CalEventService service)
Deprecated.