Class LayoutTestUtil

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

public class LayoutTestUtil extends Object
  • Constructor Details

    • LayoutTestUtil

      public LayoutTestUtil()
  • Method Details

    • addLayoutPrototype

      public static com.liferay.portal.kernel.model.LayoutPrototype addLayoutPrototype(String name) throws Exception
      Throws:
      Exception
    • addLayoutSetPrototype

      public static com.liferay.portal.kernel.model.LayoutSetPrototype addLayoutSetPrototype(String name) throws Exception
      Throws:
      Exception
    • addPortletToLayout

      public static String addPortletToLayout(com.liferay.portal.kernel.model.Layout layout, String portletId) throws Exception
      Throws:
      Exception
    • addPortletToLayout

      public static String addPortletToLayout(com.liferay.portal.kernel.model.Layout layout, String portletId, Map<String,String[]> preferenceMap) throws Exception
      Throws:
      Exception
    • addPortletToLayout

      public static String addPortletToLayout(long userId, com.liferay.portal.kernel.model.Layout layout, String portletId, String columnId, Map<String,String[]> preferenceMap) throws Exception
      Throws:
      Exception
    • addTypeContentLayout

      public static com.liferay.portal.kernel.model.Layout addTypeContentLayout(com.liferay.portal.kernel.model.Group group) throws Exception
      Throws:
      Exception
    • addTypeContentLayout

      public static com.liferay.portal.kernel.model.Layout addTypeContentLayout(com.liferay.portal.kernel.model.Group group, boolean privateLayout, boolean system) throws Exception
      Throws:
      Exception
    • addTypeContentLayout

      public static com.liferay.portal.kernel.model.Layout addTypeContentLayout(com.liferay.portal.kernel.model.Group group, boolean privateLayout, boolean system, long masterLayoutPlid) throws Exception
      Throws:
      Exception
    • addTypeContentLayout

      public static com.liferay.portal.kernel.model.Layout addTypeContentLayout(com.liferay.portal.kernel.model.Group group, long parentPlid) throws Exception
      Throws:
      Exception
    • addTypeContentLayout

      public static com.liferay.portal.kernel.model.Layout addTypeContentLayout(com.liferay.portal.kernel.model.Group group, Map<Locale,String> nameMap) throws Exception
      Throws:
      Exception
    • addTypeContentLayout

      public static com.liferay.portal.kernel.model.Layout addTypeContentLayout(com.liferay.portal.kernel.model.Group group, String name) throws Exception
      Throws:
      Exception
    • addTypeContentLayout

      public static com.liferay.portal.kernel.model.Layout addTypeContentLayout(com.liferay.portal.kernel.model.Group group, String name, String title) throws Exception
      Throws:
      Exception
    • addTypeContentLayout

      public static com.liferay.portal.kernel.model.Layout addTypeContentLayout(long userId, com.liferay.portal.kernel.model.Group group) throws Exception
      Throws:
      Exception
    • addTypeContentPublishedLayout

      public static com.liferay.portal.kernel.model.Layout addTypeContentPublishedLayout(com.liferay.portal.kernel.model.Group group, String name, int status) throws Exception
      Throws:
      Exception
    • addTypeEmbeddedLayout

      public static com.liferay.portal.kernel.model.Layout addTypeEmbeddedLayout(long groupId) throws Exception
      Throws:
      Exception
    • addTypeFullPageApplicationLayout

      public static com.liferay.portal.kernel.model.Layout addTypeFullPageApplicationLayout(long groupId) throws Exception
      Throws:
      Exception
    • addTypeLinkToLayoutLayout

      public static com.liferay.portal.kernel.model.Layout addTypeLinkToLayoutLayout(long groupId, long linkedToLayoutId) throws Exception
      Throws:
      Exception
    • addTypeLinkToURLLayout

      public static com.liferay.portal.kernel.model.Layout addTypeLinkToURLLayout(long groupId, String url) throws Exception
      Throws:
      Exception
    • addTypePanelLayout

      public static com.liferay.portal.kernel.model.Layout addTypePanelLayout(long groupId) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(com.liferay.portal.kernel.model.Group group) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(com.liferay.portal.kernel.model.Group group, boolean privateLayout) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(com.liferay.portal.kernel.model.Group group, boolean privateLayout, com.liferay.portal.kernel.model.LayoutPrototype layoutPrototype, boolean linkEnabled) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(com.liferay.portal.kernel.model.Group group, long parentLayoutPlid) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(long groupId) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(long groupId, boolean privateLayout) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(long groupId, boolean privateLayout, com.liferay.portal.kernel.model.LayoutPrototype layoutPrototype, boolean linkEnabled) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(long groupId, boolean privateLayout, Map<Locale,String> nameMap, Map<Locale,String> friendlyURLMap) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(long groupId, boolean privateLayout, Map<Locale,String> nameMap, Map<Locale,String> friendlyURLMap, boolean hidden) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(long groupId, boolean privateLayout, Map<Locale,String> nameMap, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, Map<Locale,String> keywordsMap, Map<Locale,String> robotsMap, String typeSettings, Map<Locale,String> friendlyURLMap, boolean hidden) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(long groupId, long parentLayoutPlid) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(long groupId, String typeSettings) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(long groupId, String name, boolean privateLayout) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(long groupId, String name, boolean privateLayout, com.liferay.portal.kernel.model.LayoutPrototype layoutPrototype, boolean linkEnabled) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(long groupId, String name, boolean privateLayout, com.liferay.portal.kernel.model.LayoutPrototype layoutPrototype, boolean linkEnabled, boolean hidden) throws Exception
      Throws:
      Exception
    • addTypePortletLayout

      public static com.liferay.portal.kernel.model.Layout addTypePortletLayout(long groupId, String name, long parentLayoutPlid) throws Exception
      Throws:
      Exception
    • getLayoutTemplateId

      public static String getLayoutTemplateId(com.liferay.portal.kernel.model.Layout layout)
    • getPortletPreferences

      public static javax.portlet.PortletPreferences getPortletPreferences(com.liferay.portal.kernel.model.Layout layout, String portletId) throws Exception
      Throws:
      Exception
    • getPortletPreferences

      public static javax.portlet.PortletPreferences getPortletPreferences(long plid, String portletId) throws Exception
      Throws:
      Exception
    • getPortlets

      public static List<com.liferay.portal.kernel.model.Portlet> getPortlets(com.liferay.portal.kernel.model.Layout layout) throws Exception
      Throws:
      Exception
    • isLayoutColumnCustomizable

      public static boolean isLayoutColumnCustomizable(com.liferay.portal.kernel.model.Layout layout, String columnId)
    • updateFriendlyURL

      public static com.liferay.portal.kernel.model.Layout updateFriendlyURL(com.liferay.portal.kernel.model.Layout layout, Map<Locale,String> friendlyURLMap) throws Exception
      Throws:
      Exception
    • updateLayoutColumnCustomizable

      public static com.liferay.portal.kernel.model.Layout updateLayoutColumnCustomizable(com.liferay.portal.kernel.model.Layout layout, String columnId, boolean customizable) throws Exception
      Throws:
      Exception
    • updateLayoutPortletPreference

      public static com.liferay.portal.kernel.model.Layout updateLayoutPortletPreference(com.liferay.portal.kernel.model.Layout layout, String portletId, String portletPreferenceName, String portletPreferenceValue) throws Exception
      Throws:
      Exception
    • updateLayoutPortletPreferences

      public static com.liferay.portal.kernel.model.Layout updateLayoutPortletPreferences(com.liferay.portal.kernel.model.Layout layout, String portletId, Map<String,String> portletPreferences) throws Exception
      Throws:
      Exception
    • updateLayoutTemplateId

      public static com.liferay.portal.kernel.model.Layout updateLayoutTemplateId(com.liferay.portal.kernel.model.Layout layout, String layoutTemplateId) throws Exception
      Throws:
      Exception