Package com.liferay.layout.test.util
Class ContentLayoutTestUtil
java.lang.Object
com.liferay.layout.test.util.ContentLayoutTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddCollectionDisplayToLayout(com.liferay.portal.kernel.json.JSONObject collectionJSONObject, com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, String listStyle, String parentItemId, int position, long segmentsExperienceId, com.liferay.fragment.model.FragmentEntryLink... fragmentEntryLinks) static com.liferay.portal.kernel.json.JSONObjectaddFormToLayout(boolean addCaptcha, String classNameId, String classTypeId, com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, long segmentsExperienceId, com.liferay.info.field.InfoField... infoFields) static com.liferay.portal.kernel.json.JSONObjectaddFormToLayout(boolean addCaptcha, String classNameId, String classTypeId, String inputHTML, com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, long segmentsExperienceId, com.liferay.info.field.InfoField... infoFields) static StringaddFormToPublishedLayout(boolean addCaptcha, String classNameId, String classTypeId, com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, com.liferay.info.field.InfoField<?>... infoField) static StringaddFragmentEntryLinkToLayout(com.liferay.fragment.model.FragmentEntryLink fragmentEntryLink, com.liferay.portal.kernel.model.Layout layout, String parentItemId, int position, long segmentsExperienceId) static com.liferay.fragment.model.FragmentEntryLinkaddFragmentEntryLinkToLayout(String editableValues, com.liferay.fragment.renderer.FragmentRenderer fragmentRenderer, com.liferay.portal.kernel.model.Layout layout, String parentItemId, int position, long segmentsExperienceId) static com.liferay.fragment.model.FragmentEntryLinkaddFragmentEntryLinkToLayout(String editableValues, com.liferay.portal.kernel.model.Layout layout, long segmentsExperienceId) static com.liferay.fragment.model.FragmentEntryLinkaddFragmentEntryLinkToLayout(String editableValues, com.liferay.portal.kernel.model.Layout layout, String parentItemId, int position, long segmentsExperienceId) static com.liferay.fragment.model.FragmentEntryLinkaddFragmentEntryLinkToLayout(String editableValues, String css, String configuration, String fragmentEntryERC, String fragmentEntryScopeERC, String html, String js, com.liferay.portal.kernel.model.Layout layout, String rendererKey, int type, String parentItemId, int position, long segmentsExperienceId) static com.liferay.fragment.model.FragmentEntryLinkaddFragmentEntryLinkToLayout(String editableValues, String css, String configuration, String fragmentEntryERC, String fragmentEntryScopeERC, String html, String js, com.liferay.portal.kernel.model.Layout layout, String rendererKey, long segmentsExperienceId, int type) static com.liferay.portal.kernel.json.JSONObjectaddItemToLayout(String itemConfig, String itemType, com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, long segmentsExperienceId) static com.liferay.portal.kernel.json.JSONObjectaddItemToLayout(String itemConfig, String itemType, com.liferay.portal.kernel.model.Layout layout, String parentItemId, int position, long segmentsExperienceId) static com.liferay.portal.kernel.json.JSONObjectaddPortletToLayout(com.liferay.portal.kernel.model.Layout layout, String portletId) static org.springframework.mock.web.MockHttpServletRequestgetMockHttpServletRequest(com.liferay.portal.kernel.model.Company company, com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.model.Layout layout) static com.liferay.portal.kernel.test.portlet.MockLiferayPortletActionRequestgetMockLiferayPortletActionRequest(com.liferay.portal.kernel.model.Company company, com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.model.Layout layout) static com.liferay.portal.kernel.portlet.bridges.mvc.MVCActionCommandgetMVCActionCommand(String mvcCommandName) static StringgetRenderLayoutHTML(com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.util.LayoutServiceContextHelper layoutServiceContextHelper, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, long segmentsExperienceId) static StringgetRenderLayoutHTML(Map<String, Object> attributes, com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.util.LayoutServiceContextHelper layoutServiceContextHelper, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, long segmentsExperienceId) static com.liferay.portal.kernel.theme.ThemeDisplaygetThemeDisplay(com.liferay.portal.kernel.model.Company company, com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.model.Layout layout) static com.liferay.portal.kernel.json.JSONObjectmarkItemForDeletionFromLayout(String itemId, com.liferay.portal.kernel.model.Layout layout, String portletId) static voidpublishLayout(com.liferay.portal.kernel.model.Layout draftLayout, com.liferay.portal.kernel.model.Layout layout)
-
Constructor Details
-
ContentLayoutTestUtil
public ContentLayoutTestUtil()
-
-
Method Details
-
addCollectionDisplayToLayout
public static String addCollectionDisplayToLayout(com.liferay.portal.kernel.json.JSONObject collectionJSONObject, com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, String listStyle, String parentItemId, int position, long segmentsExperienceId, com.liferay.fragment.model.FragmentEntryLink... fragmentEntryLinks) throws Exception - Throws:
Exception
-
addFormToLayout
public static com.liferay.portal.kernel.json.JSONObject addFormToLayout(boolean addCaptcha, String classNameId, String classTypeId, com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, long segmentsExperienceId, com.liferay.info.field.InfoField... infoFields) throws Exception - Throws:
Exception
-
addFormToLayout
public static com.liferay.portal.kernel.json.JSONObject addFormToLayout(boolean addCaptcha, String classNameId, String classTypeId, String inputHTML, com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, long segmentsExperienceId, com.liferay.info.field.InfoField... infoFields) throws Exception - Throws:
Exception
-
addFormToPublishedLayout
public static String addFormToPublishedLayout(boolean addCaptcha, String classNameId, String classTypeId, com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, com.liferay.info.field.InfoField<?>... infoField) throws Exception - Throws:
Exception
-
addFragmentEntryLinkToLayout
public static String addFragmentEntryLinkToLayout(com.liferay.fragment.model.FragmentEntryLink fragmentEntryLink, com.liferay.portal.kernel.model.Layout layout, String parentItemId, int position, long segmentsExperienceId) throws Exception - Throws:
Exception
-
addFragmentEntryLinkToLayout
public static com.liferay.fragment.model.FragmentEntryLink addFragmentEntryLinkToLayout(String editableValues, com.liferay.fragment.renderer.FragmentRenderer fragmentRenderer, com.liferay.portal.kernel.model.Layout layout, String parentItemId, int position, long segmentsExperienceId) throws Exception - Throws:
Exception
-
addFragmentEntryLinkToLayout
public static com.liferay.fragment.model.FragmentEntryLink addFragmentEntryLinkToLayout(String editableValues, com.liferay.portal.kernel.model.Layout layout, long segmentsExperienceId) throws Exception - Throws:
Exception
-
addFragmentEntryLinkToLayout
public static com.liferay.fragment.model.FragmentEntryLink addFragmentEntryLinkToLayout(String editableValues, com.liferay.portal.kernel.model.Layout layout, String parentItemId, int position, long segmentsExperienceId) throws Exception - Throws:
Exception
-
addFragmentEntryLinkToLayout
public static com.liferay.fragment.model.FragmentEntryLink addFragmentEntryLinkToLayout(String editableValues, String css, String configuration, String fragmentEntryERC, String fragmentEntryScopeERC, String html, String js, com.liferay.portal.kernel.model.Layout layout, String rendererKey, int type, String parentItemId, int position, long segmentsExperienceId) throws Exception - Throws:
Exception
-
addFragmentEntryLinkToLayout
public static com.liferay.fragment.model.FragmentEntryLink addFragmentEntryLinkToLayout(String editableValues, String css, String configuration, String fragmentEntryERC, String fragmentEntryScopeERC, String html, String js, com.liferay.portal.kernel.model.Layout layout, String rendererKey, long segmentsExperienceId, int type) throws Exception - Throws:
Exception
-
addItemToLayout
public static com.liferay.portal.kernel.json.JSONObject addItemToLayout(String itemConfig, String itemType, com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, long segmentsExperienceId) throws Exception - Throws:
Exception
-
addItemToLayout
public static com.liferay.portal.kernel.json.JSONObject addItemToLayout(String itemConfig, String itemType, com.liferay.portal.kernel.model.Layout layout, String parentItemId, int position, long segmentsExperienceId) throws Exception - Throws:
Exception
-
addPortletToLayout
public static com.liferay.portal.kernel.json.JSONObject addPortletToLayout(com.liferay.portal.kernel.model.Layout layout, String portletId) throws Exception - Throws:
Exception
-
getMockHttpServletRequest
public static org.springframework.mock.web.MockHttpServletRequest getMockHttpServletRequest(com.liferay.portal.kernel.model.Company company, com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.model.Layout layout) throws Exception - Throws:
Exception
-
getMockLiferayPortletActionRequest
public static com.liferay.portal.kernel.test.portlet.MockLiferayPortletActionRequest getMockLiferayPortletActionRequest(com.liferay.portal.kernel.model.Company company, com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.model.Layout layout) throws Exception - Throws:
Exception
-
getMVCActionCommand
public static com.liferay.portal.kernel.portlet.bridges.mvc.MVCActionCommand getMVCActionCommand(String mvcCommandName) -
getRenderLayoutHTML
public static String getRenderLayoutHTML(com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.util.LayoutServiceContextHelper layoutServiceContextHelper, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, long segmentsExperienceId) throws Exception - Throws:
Exception
-
getRenderLayoutHTML
public static String getRenderLayoutHTML(Map<String, Object> attributes, com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.util.LayoutServiceContextHelper layoutServiceContextHelper, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, long segmentsExperienceId) throws Exception- Throws:
Exception
-
getThemeDisplay
public static com.liferay.portal.kernel.theme.ThemeDisplay getThemeDisplay(com.liferay.portal.kernel.model.Company company, com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.model.Layout layout) throws Exception - Throws:
Exception
-
markItemForDeletionFromLayout
public static com.liferay.portal.kernel.json.JSONObject markItemForDeletionFromLayout(String itemId, com.liferay.portal.kernel.model.Layout layout, String portletId) throws Exception - Throws:
Exception
-
publishLayout
public static void publishLayout(com.liferay.portal.kernel.model.Layout draftLayout, com.liferay.portal.kernel.model.Layout layout) throws Exception - Throws:
Exception
-