Liferay 7.0-ce-b4

com.liferay.portal.util
Class DefaultLayoutPrototypesUtil

java.lang.Object
  extended by com.liferay.portal.util.DefaultLayoutPrototypesUtil

public class DefaultLayoutPrototypesUtil
extends Object


Constructor Summary
DefaultLayoutPrototypesUtil()
           
 
Method Summary
static Layout addLayout(LayoutSet layoutSet, String nameKey, String friendlyURL, String layouteTemplateId)
           
static Layout addLayoutPrototype(long companyId, long defaultUserId, String nameKey, String descriptionKey, String layouteTemplateId, List<LayoutPrototype> layoutPrototypes, ClassLoader classLoader)
           
static String addPortletId(Layout layout, String portletId, String columnId)
           
protected static void addResourcePermissions(Layout layout, String portletId)
           
protected static void updateLayout(Layout layout)
           
static PortletPreferences updatePortletSetup(Layout layout, String portletId, Map<String,String> preferences)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLayoutPrototypesUtil

public DefaultLayoutPrototypesUtil()
Method Detail

addLayout

public static Layout addLayout(LayoutSet layoutSet,
                               String nameKey,
                               String friendlyURL,
                               String layouteTemplateId)
                        throws Exception
Throws:
Exception

addLayoutPrototype

public static Layout addLayoutPrototype(long companyId,
                                        long defaultUserId,
                                        String nameKey,
                                        String descriptionKey,
                                        String layouteTemplateId,
                                        List<LayoutPrototype> layoutPrototypes,
                                        ClassLoader classLoader)
                                 throws Exception
Throws:
Exception

addPortletId

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

updatePortletSetup

public static PortletPreferences updatePortletSetup(Layout layout,
                                                    String portletId,
                                                    Map<String,String> preferences)
                                             throws Exception
Throws:
Exception

addResourcePermissions

protected static void addResourcePermissions(Layout layout,
                                             String portletId)
                                      throws Exception
Throws:
Exception

updateLayout

protected static void updateLayout(Layout layout)
                            throws Exception
Throws:
Exception

Liferay 7.0-ce-b4