Package com.liferay.calendar.test.util
Class CalendarStagingTestUtil
java.lang.Object
com.liferay.calendar.test.util.CalendarStagingTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidaddStagingAttribute(com.liferay.portal.kernel.service.ServiceContext serviceContext, String key, Object value) protected static voidstatic voidcleanUp()static com.liferay.portal.kernel.service.ServiceContextcreateServiceContext(com.liferay.portal.kernel.model.User user) static voidenableLocalStaging(com.liferay.portal.kernel.model.Group group, boolean enableCalendarStaging) static com.liferay.calendar.model.CalendargetStagingCalendar(com.liferay.portal.kernel.model.Group group, com.liferay.calendar.model.Calendar calendar) static voidpublishLayouts(com.liferay.portal.kernel.model.Group liveGroup, boolean enableCalendarStaging) static voidpublishPortlet(com.liferay.portal.kernel.model.Group liveGroup, com.liferay.portal.kernel.model.Layout targetLayout, boolean enableCalendarStaging)
-
Constructor Details
-
CalendarStagingTestUtil
public CalendarStagingTestUtil()
-
-
Method Details
-
cleanUp
public static void cleanUp() -
createServiceContext
public static com.liferay.portal.kernel.service.ServiceContext createServiceContext(com.liferay.portal.kernel.model.User user) -
enableLocalStaging
public static void enableLocalStaging(com.liferay.portal.kernel.model.Group group, boolean enableCalendarStaging) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getStagingCalendar
public static com.liferay.calendar.model.Calendar getStagingCalendar(com.liferay.portal.kernel.model.Group group, com.liferay.calendar.model.Calendar calendar) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
publishLayouts
public static void publishLayouts(com.liferay.portal.kernel.model.Group liveGroup, boolean enableCalendarStaging) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
publishPortlet
public static void publishPortlet(com.liferay.portal.kernel.model.Group liveGroup, com.liferay.portal.kernel.model.Layout targetLayout, boolean enableCalendarStaging) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addStagingAttribute
-
addStagingAttribute
-