Liferay 7.0-ce-b4

com.liferay.portlet.exportimport.lar
Class ExportImportDateUtil

java.lang.Object
  extended by com.liferay.portlet.exportimport.lar.ExportImportDateUtil

@ProviderType
public class ExportImportDateUtil
extends Object


Field Summary
static String RANGE
           
static String RANGE_ALL
           
static String RANGE_DATE_RANGE
           
static String RANGE_FROM_LAST_PUBLISH_DATE
           
static String RANGE_LAST
           
 
Constructor Summary
ExportImportDateUtil()
           
 
Method Summary
static void clearLastPublishDate(long groupId, boolean privateLayout)
           
protected static Calendar getCalendar(int dateAmPm, int dateYear, int dateMonth, int dateDay, int dateHour, int dateMinute, Locale locale, TimeZone timeZone, boolean timeZoneSensitive)
           
static Calendar getCalendar(PortletRequest portletRequest, String paramPrefix, boolean timeZoneSensitive)
           
static DateRange getDateRange(ExportImportConfiguration exportImportConfiguration)
           
static DateRange getDateRange(long exportImportConfigurationId)
           
static DateRange getDateRange(PortletRequest portletRequest, long groupId, boolean privateLayout, long plid, String portletId, String defaultRange)
           
protected static DateRange getDateRange(String range, int rangeLast, int startDateAmPm, int startDateYear, int startDateMonth, int startDateDay, int startDateHour, int startDateMinute, int endDateAmPm, int endDateYear, int endDateMonth, int endDateDay, int endDateHour, int endDateMinute, String portletId, long groupId, long plid, boolean privateLayout, Locale locale, TimeZone timeZone)
           
protected static String getDefaultDateRange(ExportImportConfiguration exportImportConfiguration)
           
static Date getLastPublishDate(LayoutSet layoutSet)
           
static Date getLastPublishDate(PortletDataContext portletDataContext, PortletPreferences jxPortletPreferences)
           
static Date getLastPublishDate(PortletPreferences jxPortletPreferences)
           
protected static boolean isValidDateRange(DateRange dateRange, Date originalLastPublishDate)
           
static void updateLastPublishDate(long groupId, boolean privateLayout, DateRange dateRange, Date lastPublishDate)
           
static void updateLastPublishDate(StagedGroupedModel stagedGroupedModel, DateRange dateRange, Date lastPublishDate)
           
static void updateLastPublishDate(String portletId, PortletPreferences portletPreferences, DateRange dateRange, Date lastPublishDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RANGE

public static final String RANGE
See Also:
Constant Field Values

RANGE_ALL

public static final String RANGE_ALL
See Also:
Constant Field Values

RANGE_DATE_RANGE

public static final String RANGE_DATE_RANGE
See Also:
Constant Field Values

RANGE_FROM_LAST_PUBLISH_DATE

public static final String RANGE_FROM_LAST_PUBLISH_DATE
See Also:
Constant Field Values

RANGE_LAST

public static final String RANGE_LAST
See Also:
Constant Field Values
Constructor Detail

ExportImportDateUtil

public ExportImportDateUtil()
Method Detail

clearLastPublishDate

public static void clearLastPublishDate(long groupId,
                                        boolean privateLayout)
                                 throws PortalException
Throws:
PortalException

getCalendar

public static Calendar getCalendar(PortletRequest portletRequest,
                                   String paramPrefix,
                                   boolean timeZoneSensitive)

getDateRange

public static DateRange getDateRange(ExportImportConfiguration exportImportConfiguration)
                              throws PortalException
Throws:
PortalException

getDateRange

public static DateRange getDateRange(long exportImportConfigurationId)
                              throws PortalException
Throws:
PortalException

getDateRange

public static DateRange getDateRange(PortletRequest portletRequest,
                                     long groupId,
                                     boolean privateLayout,
                                     long plid,
                                     String portletId,
                                     String defaultRange)
                              throws PortalException
Throws:
PortalException

getLastPublishDate

public static Date getLastPublishDate(LayoutSet layoutSet)

getLastPublishDate

public static Date getLastPublishDate(PortletDataContext portletDataContext,
                                      PortletPreferences jxPortletPreferences)
                               throws PortalException
Throws:
PortalException

getLastPublishDate

public static Date getLastPublishDate(PortletPreferences jxPortletPreferences)

updateLastPublishDate

public static void updateLastPublishDate(long groupId,
                                         boolean privateLayout,
                                         DateRange dateRange,
                                         Date lastPublishDate)
                                  throws PortalException
Throws:
PortalException

updateLastPublishDate

public static void updateLastPublishDate(StagedGroupedModel stagedGroupedModel,
                                         DateRange dateRange,
                                         Date lastPublishDate)

updateLastPublishDate

public static void updateLastPublishDate(String portletId,
                                         PortletPreferences portletPreferences,
                                         DateRange dateRange,
                                         Date lastPublishDate)

getCalendar

protected static Calendar getCalendar(int dateAmPm,
                                      int dateYear,
                                      int dateMonth,
                                      int dateDay,
                                      int dateHour,
                                      int dateMinute,
                                      Locale locale,
                                      TimeZone timeZone,
                                      boolean timeZoneSensitive)

getDateRange

protected static DateRange getDateRange(String range,
                                        int rangeLast,
                                        int startDateAmPm,
                                        int startDateYear,
                                        int startDateMonth,
                                        int startDateDay,
                                        int startDateHour,
                                        int startDateMinute,
                                        int endDateAmPm,
                                        int endDateYear,
                                        int endDateMonth,
                                        int endDateDay,
                                        int endDateHour,
                                        int endDateMinute,
                                        String portletId,
                                        long groupId,
                                        long plid,
                                        boolean privateLayout,
                                        Locale locale,
                                        TimeZone timeZone)
                                 throws PortalException
Throws:
PortalException

getDefaultDateRange

protected static String getDefaultDateRange(ExportImportConfiguration exportImportConfiguration)

isValidDateRange

protected static boolean isValidDateRange(DateRange dateRange,
                                          Date originalLastPublishDate)

Liferay 7.0-ce-b4