Liferay 6.1.0-ce-ga1

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 applyLayoutPrototype(LayoutPrototype layoutPrototype, Layout targetLayout, boolean linkEnabled)
           
static void applyLayoutSetPrototypes(Group group, long publicLayoutSetPrototypeId, long privateLayoutSetPrototypeId, ServiceContext serviceContext)
           
static void copyLayout(long userId, Layout sourceLayout, Layout targetLayout, ServiceContext serviceContext)
           
protected static void copyLayoutPrototypePermissions(Layout targetLayout, LayoutPrototype sourceLayoutPrototype)
           
static void copyLayoutSet(LayoutSet sourceLayoutSet, LayoutSet targetLayoutSet, ServiceContext serviceContext)
           
static void copyLookAndFeel(Layout targetLayout, Layout sourceLayout)
           
static void copyPortletPermissions(Layout targetLayout, Layout sourceLayout)
           
static void copyPortletSetups(Layout sourceLayout, Layout targetLayout)
           
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 isLayoutModifiedSinceLastMerge(Layout layout)
           
static boolean isLayoutSetPrototypeUpdateable(LayoutSet layoutSet)
           
static boolean isLayoutToBeUpdatedFromSourcePrototype(Layout layout)
           
static boolean isLayoutUpdateable(Layout layout)
           
static boolean isUserGroupLayoutSetViewable(PermissionChecker permissionChecker, Group userGroupGroup)
           
protected static void setLayoutSetPrototypeLinkEnabledParameter(Map<String,String[]> parameterMap, LayoutSet targetLayoutSet, ServiceContext serviceContext)
           
 
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

applyLayoutPrototype

public static void applyLayoutPrototype(LayoutPrototype layoutPrototype,
                                        Layout targetLayout,
                                        boolean linkEnabled)
                                 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

copyLookAndFeel

public static void copyLookAndFeel(Layout targetLayout,
                                   Layout sourceLayout)
                            throws Exception
Throws:
Exception

copyPortletPermissions

public static void copyPortletPermissions(Layout targetLayout,
                                          Layout sourceLayout)
                                   throws Exception
Throws:
Exception

copyPortletSetups

public static void copyPortletSetups(Layout sourceLayout,
                                     Layout targetLayout)
                              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

isLayoutModifiedSinceLastMerge

public static boolean isLayoutModifiedSinceLastMerge(Layout layout)
                                              throws PortalException,
                                                     SystemException
Throws:
PortalException
SystemException

isLayoutSetPrototypeUpdateable

public static boolean isLayoutSetPrototypeUpdateable(LayoutSet layoutSet)

isLayoutToBeUpdatedFromSourcePrototype

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

isLayoutUpdateable

public static boolean isLayoutUpdateable(Layout layout)

isUserGroupLayoutSetViewable

public static boolean isUserGroupLayoutSetViewable(PermissionChecker permissionChecker,
                                                   Group userGroupGroup)
                                            throws PortalException,
                                                   SystemException
Throws:
PortalException
SystemException

copyLayoutPrototypePermissions

protected static void copyLayoutPrototypePermissions(Layout targetLayout,
                                                     LayoutPrototype sourceLayoutPrototype)
                                              throws Exception
Throws:
Exception

setLayoutSetPrototypeLinkEnabledParameter

protected static void setLayoutSetPrototypeLinkEnabledParameter(Map<String,String[]> parameterMap,
                                                                LayoutSet targetLayoutSet,
                                                                ServiceContext serviceContext)

Liferay 6.1.0-ce-ga1