Class ExportImportDateUtil
Object
com.liferay.exportimport.kernel.lar.ExportImportDateUtil
- Author:
- Máté Thurzó
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
(long exportImportConfigurationId) static DateRange
getDateRange
(ExportImportConfiguration exportImportConfiguration) static DateRange
getDateRange
(ExportImportConfiguration exportImportConfiguration, String portletId) 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) static DateRange
getDateRange
(PortletRequest portletRequest, long groupId, boolean privateLayout, long plid, String portletId, String defaultRange) protected static String
getDefaultDateRange
(ExportImportConfiguration exportImportConfiguration) static Date
getLastPublishDate
(PortletDataContext portletDataContext, PortletPreferences jxPortletPreferences) static Date
getLastPublishDate
(LayoutSet layoutSet) static Date
getLastPublishDate
(PortletPreferences jxPortletPreferences) static boolean
isRange
(PortletDataContext portletDataContext, String range) static boolean
static boolean
isRangeAll
(PortletDataContext portletDataContext) static boolean
isRangeAll
(Map<String, String[]> parameterMap) static boolean
isRangeDateRange
(PortletDataContext portletDataContext) static boolean
isRangeDateRange
(Map<String, String[]> parameterMap) static boolean
isRangeFromLastPublishDate
(PortletDataContext portletDataContext) static boolean
isRangeFromLastPublishDate
(Map<String, String[]> parameterMap) static boolean
isRangeLast
(PortletDataContext portletDataContext) static boolean
isRangeLast
(Map<String, String[]> parameterMap) 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)
-
Field Details
-
RANGE
- See Also:
-
RANGE_ALL
- See Also:
-
RANGE_DATE_RANGE
- See Also:
-
RANGE_FROM_LAST_PUBLISH_DATE
- See Also:
-
RANGE_LAST
- See Also:
-
-
Constructor Details
-
ExportImportDateUtil
public ExportImportDateUtil()
-
-
Method Details
-
clearLastPublishDate
- 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(ExportImportConfiguration exportImportConfiguration, String portletId) throws PortalException - Throws:
PortalException
-
getDateRange
- Throws:
PortalException
-
getDateRange
public static DateRange getDateRange(PortletRequest portletRequest, long groupId, boolean privateLayout, long plid, String portletId, String defaultRange) throws PortalException - Throws:
PortalException
-
getLastPublishDate
-
getLastPublishDate
public static Date getLastPublishDate(PortletDataContext portletDataContext, PortletPreferences jxPortletPreferences) throws PortalException - Throws:
PortalException
-
getLastPublishDate
-
isRange
-
isRange
-
isRangeAll
-
isRangeAll
-
isRangeDateRange
-
isRangeDateRange
-
isRangeFromLastPublishDate
-
isRangeFromLastPublishDate
-
isRangeLast
-
isRangeLast
-
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
-
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
-
isValidDateRange
-