Liferay 7.0-ce-b4

com.liferay.portal.util.test
Class LayoutTestUtil

java.lang.Object
  extended by com.liferay.portal.util.test.LayoutTestUtil

public class LayoutTestUtil
extends Object


Constructor Summary
LayoutTestUtil()
           
 
Method Summary
static Layout addLayout(Group group)
           
static Layout addLayout(Group group, boolean privateLayout)
           
static Layout addLayout(Group group, boolean privateLayout, LayoutPrototype layoutPrototype, boolean linkEnabled)
           
static Layout addLayout(Group group, long parentLayoutPlid)
           
static Layout addLayout(long groupId)
           
static Layout addLayout(long groupId, boolean privateLayout)
           
static Layout addLayout(long groupId, boolean privateLayout, LayoutPrototype layoutPrototype, boolean linkEnabled)
           
static Layout addLayout(long groupId, boolean privateLayout, Map<Locale,String> nameMap, Map<Locale,String> friendlyURLMap)
           
static Layout addLayout(long groupId, long parentLayoutPlid)
           
static Layout addLayout(long groupId, String name, boolean privateLayout)
           
static Layout addLayout(long groupId, String name, boolean privateLayout, LayoutPrototype layoutPrototype, boolean linkEnabled)
           
static Layout addLayout(long groupId, String name, long parentLayoutPlid)
           
static LayoutPrototype addLayoutPrototype(String name)
           
static LayoutSetPrototype addLayoutSetPrototype(String name)
           
static String addPortletToLayout(Layout layout, String portletId)
           
static String addPortletToLayout(Layout layout, String portletId, Map<String,String[]> preferenceMap)
           
static String addPortletToLayout(long userId, Layout layout, String portletId, String columnId, Map<String,String[]> preferenceMap)
           
static Layout addTypeLinkToLayoutLayout(long groupId, long linkedToLayoutId)
           
static String getLayoutTemplateId(Layout layout)
           
static PortletPreferences getPortletPreferences(Layout layout, String portletId)
           
static PortletPreferences getPortletPreferences(long plid, String portletId)
           
static List<Portlet> getPortlets(Layout layout)
           
static boolean isLayoutColumnCustomizable(Layout layout, String columnId)
           
static Layout updateLayoutColumnCustomizable(Layout layout, String columnId, boolean customizable)
           
static Layout updateLayoutPortletPreference(Layout layout, String portletId, String portletPreferenceName, String portletPreferenceValue)
           
static Layout updateLayoutPortletPreferences(Layout layout, String portletId, Map<String,String> portletPreferences)
           
static Layout updateLayoutTemplateId(Layout layout, String layoutTemplateId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutTestUtil

public LayoutTestUtil()
Method Detail

addLayout

public static Layout addLayout(Group group)
                        throws Exception
Throws:
Exception

addLayout

public static Layout addLayout(Group group,
                               boolean privateLayout)
                        throws Exception
Throws:
Exception

addLayout

public static Layout addLayout(Group group,
                               boolean privateLayout,
                               LayoutPrototype layoutPrototype,
                               boolean linkEnabled)
                        throws Exception
Throws:
Exception

addLayout

public static Layout addLayout(Group group,
                               long parentLayoutPlid)
                        throws Exception
Throws:
Exception

addLayout

public static Layout addLayout(long groupId)
                        throws Exception
Throws:
Exception

addLayout

public static Layout addLayout(long groupId,
                               boolean privateLayout)
                        throws Exception
Throws:
Exception

addLayout

public static Layout addLayout(long groupId,
                               boolean privateLayout,
                               LayoutPrototype layoutPrototype,
                               boolean linkEnabled)
                        throws Exception
Throws:
Exception

addLayout

public static Layout addLayout(long groupId,
                               boolean privateLayout,
                               Map<Locale,String> nameMap,
                               Map<Locale,String> friendlyURLMap)
                        throws Exception
Throws:
Exception

addLayout

public static Layout addLayout(long groupId,
                               long parentLayoutPlid)
                        throws Exception
Throws:
Exception

addLayout

public static Layout addLayout(long groupId,
                               String name,
                               boolean privateLayout)
                        throws Exception
Throws:
Exception

addLayout

public static Layout addLayout(long groupId,
                               String name,
                               boolean privateLayout,
                               LayoutPrototype layoutPrototype,
                               boolean linkEnabled)
                        throws Exception
Throws:
Exception

addLayout

public static Layout addLayout(long groupId,
                               String name,
                               long parentLayoutPlid)
                        throws Exception
Throws:
Exception

addLayoutPrototype

public static LayoutPrototype addLayoutPrototype(String name)
                                          throws Exception
Throws:
Exception

addLayoutSetPrototype

public static LayoutSetPrototype addLayoutSetPrototype(String name)
                                                throws Exception
Throws:
Exception

addPortletToLayout

public static String addPortletToLayout(Layout layout,
                                        String portletId)
                                 throws Exception
Throws:
Exception

addPortletToLayout

public static String addPortletToLayout(Layout layout,
                                        String portletId,
                                        Map<String,String[]> preferenceMap)
                                 throws Exception
Throws:
Exception

addPortletToLayout

public static String addPortletToLayout(long userId,
                                        Layout layout,
                                        String portletId,
                                        String columnId,
                                        Map<String,String[]> preferenceMap)
                                 throws Exception
Throws:
Exception

addTypeLinkToLayoutLayout

public static Layout addTypeLinkToLayoutLayout(long groupId,
                                               long linkedToLayoutId)
                                        throws Exception
Throws:
Exception

getLayoutTemplateId

public static String getLayoutTemplateId(Layout layout)

getPortletPreferences

public static PortletPreferences getPortletPreferences(Layout layout,
                                                       String portletId)
                                                throws Exception
Throws:
Exception

getPortletPreferences

public static PortletPreferences getPortletPreferences(long plid,
                                                       String portletId)
                                                throws Exception
Throws:
Exception

getPortlets

public static List<Portlet> getPortlets(Layout layout)
                                 throws Exception
Throws:
Exception

isLayoutColumnCustomizable

public static boolean isLayoutColumnCustomizable(Layout layout,
                                                 String columnId)

updateLayoutColumnCustomizable

public static Layout updateLayoutColumnCustomizable(Layout layout,
                                                    String columnId,
                                                    boolean customizable)
                                             throws Exception
Throws:
Exception

updateLayoutPortletPreference

public static Layout updateLayoutPortletPreference(Layout layout,
                                                   String portletId,
                                                   String portletPreferenceName,
                                                   String portletPreferenceValue)
                                            throws Exception
Throws:
Exception

updateLayoutPortletPreferences

public static Layout updateLayoutPortletPreferences(Layout layout,
                                                    String portletId,
                                                    Map<String,String> portletPreferences)
                                             throws Exception
Throws:
Exception

updateLayoutTemplateId

public static Layout updateLayoutTemplateId(Layout layout,
                                            String layoutTemplateId)
                                     throws Exception
Throws:
Exception

Liferay 7.0-ce-b4