Class ContentLayoutTestUtil

java.lang.Object
com.liferay.layout.test.util.ContentLayoutTestUtil

public class ContentLayoutTestUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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)
     
    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)
     
    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)
     
    static String
    addFragmentEntryLinkToLayout(com.liferay.fragment.model.FragmentEntryLink fragmentEntryLink, com.liferay.portal.kernel.model.Layout layout, String parentItemId, int position, long segmentsExperienceId)
     
    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)
     
    static com.liferay.fragment.model.FragmentEntryLink
    addFragmentEntryLinkToLayout(String editableValues, com.liferay.portal.kernel.model.Layout layout, long segmentsExperienceId)
     
    static com.liferay.fragment.model.FragmentEntryLink
    addFragmentEntryLinkToLayout(String editableValues, com.liferay.portal.kernel.model.Layout layout, String parentItemId, int position, long segmentsExperienceId)
     
    static com.liferay.fragment.model.FragmentEntryLink
    addFragmentEntryLinkToLayout(String editableValues, String css, String configuration, long fragmentEntryId, 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.FragmentEntryLink
    addFragmentEntryLinkToLayout(String editableValues, String css, String configuration, long fragmentEntryId, String html, String js, com.liferay.portal.kernel.model.Layout layout, String rendererKey, long segmentsExperienceId, int type)
     
    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)
     
    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)
     
    static com.liferay.portal.kernel.json.JSONObject
    addPortletToLayout(com.liferay.portal.kernel.model.Layout layout, String portletId)
     
    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)
     
    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)
     
    static com.liferay.portal.kernel.portlet.bridges.mvc.MVCActionCommand
    getMVCActionCommand(String mvcCommandName)
     
    static String
    getRenderLayoutHTML(com.liferay.portal.kernel.model.Layout layout, com.liferay.layout.util.LayoutServiceContextHelper layoutServiceContextHelper, com.liferay.layout.provider.LayoutStructureProvider layoutStructureProvider, long segmentsExperienceId)
     
    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)
     
    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)
     
    static com.liferay.portal.kernel.json.JSONObject
    markItemForDeletionFromLayout(String itemId, com.liferay.portal.kernel.model.Layout layout, String portletId)
     
    static void
    publishLayout(com.liferay.portal.kernel.model.Layout draftLayout, com.liferay.portal.kernel.model.Layout layout)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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, long fragmentEntryId, 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, long fragmentEntryId, 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