Liferay 6.1.0-ce-b4

com.liferay.portlet.sites.util
Class SitesUtil

java.lang.Object
  extended by com.liferay.portlet.sites.util.SitesUtil

public class SitesUtil
extends Object


Constructor Summary
SitesUtil()
           
 
Method Summary
static void addPortletBreadcrumbEntries(Group group, String pagesName, PortletURL redirectURL, javax.servlet.http.HttpServletRequest request, RenderResponse renderResponse)
           
static void applyLayoutSetPrototypes(Group group, long publicLayoutSetPrototypeId, long privateLayoutSetPrototypeId, ServiceContext serviceContext)
           
static void copyLayout(long userId, Layout sourceLayout, Layout targetLayout, ServiceContext serviceContext)
           
static void copyLayoutSet(LayoutSet sourceLayoutSet, LayoutSet targetLayoutSet, ServiceContext serviceContext)
           
static void copyTypeSettings(Group sourceGroup, Group targetGroup)
           
static Object[] deleteLayout(ActionRequest actionRequest, ActionResponse actionResponse)
           
static Object[] deleteLayout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static void deleteLayout(RenderRequest renderRequest, RenderResponse renderResponse)
           
static File exportLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype, ServiceContext serviceContext)
           
static Map<String,String[]> getLayoutSetPrototypeParameters(ServiceContext serviceContext)
           
static void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype, InputStream inputStream, ServiceContext serviceContext)
           
static boolean isLayoutLocked(Layout layout)
           
static boolean isLayoutLocked(LayoutTypePortlet layoutTypePortlet)
           
static boolean isLayoutSetLocked(Group group, boolean privateLayout)
           
static boolean isLayoutSetLocked(LayoutSet layoutSet)
           
static boolean isLayoutToBeUpdatedFromTemplate(Layout layout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SitesUtil

public SitesUtil()
Method Detail

addPortletBreadcrumbEntries

public static void addPortletBreadcrumbEntries(Group group,
                                               String pagesName,
                                               PortletURL redirectURL,
                                               javax.servlet.http.HttpServletRequest request,
                                               RenderResponse renderResponse)
                                        throws Exception
Throws:
Exception

applyLayoutSetPrototypes

public static void applyLayoutSetPrototypes(Group group,
                                            long publicLayoutSetPrototypeId,
                                            long privateLayoutSetPrototypeId,
                                            ServiceContext serviceContext)
                                     throws Exception
Throws:
Exception

copyLayout

public static void copyLayout(long userId,
                              Layout sourceLayout,
                              Layout targetLayout,
                              ServiceContext serviceContext)
                       throws Exception
Throws:
Exception

copyLayoutSet

public static void copyLayoutSet(LayoutSet sourceLayoutSet,
                                 LayoutSet targetLayoutSet,
                                 ServiceContext serviceContext)
                          throws Exception
Throws:
Exception

copyTypeSettings

public static void copyTypeSettings(Group sourceGroup,
                                    Group targetGroup)
                             throws Exception
Throws:
Exception

deleteLayout

public static Object[] deleteLayout(ActionRequest actionRequest,
                                    ActionResponse actionResponse)
                             throws Exception
Throws:
Exception

deleteLayout

public static Object[] deleteLayout(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
                             throws Exception
Throws:
Exception

deleteLayout

public static void deleteLayout(RenderRequest renderRequest,
                                RenderResponse renderResponse)
                         throws Exception
Throws:
Exception

exportLayoutSetPrototype

public static File exportLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
                                            ServiceContext serviceContext)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

getLayoutSetPrototypeParameters

public static Map<String,String[]> getLayoutSetPrototypeParameters(ServiceContext serviceContext)

importLayoutSetPrototype

public static void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
                                            InputStream inputStream,
                                            ServiceContext serviceContext)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

isLayoutLocked

public static boolean isLayoutLocked(Layout layout)

isLayoutLocked

public static boolean isLayoutLocked(LayoutTypePortlet layoutTypePortlet)

isLayoutSetLocked

public static boolean isLayoutSetLocked(Group group,
                                        boolean privateLayout)

isLayoutSetLocked

public static boolean isLayoutSetLocked(LayoutSet layoutSet)

isLayoutToBeUpdatedFromTemplate

public static boolean isLayoutToBeUpdatedFromTemplate(Layout layout)
                                               throws Exception
Throws:
Exception

Liferay 6.1.0-ce-b4