com.liferay.portlet.calendar.util
Class CalUtil

java.lang.Object
  extended by com.liferay.portlet.calendar.util.CalUtil

public class CalUtil
extends java.lang.Object

Author:
Brian Wing Shun Chan

Constructor Summary
CalUtil()
           
 
Method Summary
static java.lang.String getEmailEventReminderBody(javax.portlet.PortletPreferences preferences)
           
static boolean getEmailEventReminderEnabled(javax.portlet.PortletPreferences preferences)
           
static java.lang.String getEmailEventReminderSubject(javax.portlet.PortletPreferences preferences)
           
static java.lang.String getEmailFromAddress(javax.portlet.PortletPreferences preferences, long companyId)
           
static java.lang.String getEmailFromName(javax.portlet.PortletPreferences preferences, long companyId)
           
static java.util.Date getEndTime(com.liferay.portlet.calendar.model.CalEvent event)
           
static boolean isAllDay(com.liferay.portlet.calendar.model.CalEvent event, java.util.TimeZone timeZone, java.util.Locale locale)
           
static java.lang.String toString(java.util.Calendar cal, java.lang.String[] types)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalUtil

public CalUtil()
Method Detail

getEmailFromAddress

public static java.lang.String getEmailFromAddress(javax.portlet.PortletPreferences preferences,
                                                   long companyId)
                                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getEmailFromName

public static java.lang.String getEmailFromName(javax.portlet.PortletPreferences preferences,
                                                long companyId)
                                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getEmailEventReminderEnabled

public static boolean getEmailEventReminderEnabled(javax.portlet.PortletPreferences preferences)

getEmailEventReminderBody

public static java.lang.String getEmailEventReminderBody(javax.portlet.PortletPreferences preferences)

getEmailEventReminderSubject

public static java.lang.String getEmailEventReminderSubject(javax.portlet.PortletPreferences preferences)

getEndTime

public static java.util.Date getEndTime(com.liferay.portlet.calendar.model.CalEvent event)

isAllDay

public static boolean isAllDay(com.liferay.portlet.calendar.model.CalEvent event,
                               java.util.TimeZone timeZone,
                               java.util.Locale locale)

toString

public static java.lang.String toString(java.util.Calendar cal,
                                        java.lang.String[] types)