Liferay 6.2-ce-ga5

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 addMergeFailFriendlyURLLayout(Layout layout)
           
static void addPortletBreadcrumbEntries(Group group, javax.servlet.http.HttpServletRequest request, RenderResponse renderResponse)
           
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 copyLayout(long userId, Layout sourceLayout, Layout targetLayout, 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 Long[] filterGroups(List<Group> groups, String[] names)
           
static Layout getLayoutSetPrototypeLayout(Layout layout)
           
static Map<String,String[]> getLayoutSetPrototypeParameters(ServiceContext serviceContext)
           
static int getMergeFailCount(LayoutPrototype layoutPrototype)
           
static int getMergeFailCount(LayoutSetPrototype layoutSetPrototype)
           
static List<Layout> getMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
           
static Sites getSites()
           
static void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype, InputStream inputStream, ServiceContext serviceContext)
           
static boolean isContentSharingWithChildrenEnabled(Group group)
           
static boolean isFirstLayout(long groupId, boolean privateLayout, long layoutId)
           
static boolean isLayoutDeleteable(Layout layout)
           
static boolean isLayoutModifiedSinceLastMerge(Layout layout)
           
static boolean isLayoutSetMergeable(Group group, LayoutSet layoutSet)
           
static boolean isLayoutSetPrototypeUpdateable(LayoutSet layoutSet)
           
static boolean isLayoutSortable(Layout layout)
           
static boolean isLayoutUpdateable(Layout layout)
           
static boolean isOrganizationUser(long companyId, Group group, User user, List<String> organizationNames)
           
static boolean isUserGroupLayoutSetViewable(PermissionChecker permissionChecker, Group userGroupGroup)
           
static boolean isUserGroupUser(long companyId, Group group, User user, List<String> userGroupNames)
           
static void mergeLayoutPrototypeLayout(Group group, Layout layout)
           
static void mergeLayoutProtypeLayout(Group group, Layout layout)
          Deprecated. As of 6.2.0, replaced by mergeLayoutPrototypeLayout(Group, Layout)
static void mergeLayoutSetPrototypeLayouts(Group group, LayoutSet layoutSet)
           
static void mergeLayoutSetProtypeLayouts(Group group, LayoutSet layoutSet)
          Deprecated. As of 6.2.0, replaced by mergeLayoutSetPrototypeLayouts(Group, LayoutSet)
static void removeMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
           
static void resetPrototype(Layout layout)
           
static void resetPrototype(LayoutSet layoutSet)
           
static void setMergeFailCount(LayoutPrototype layoutPrototype, int newMergeFailCount)
           
static void setMergeFailCount(LayoutSetPrototype layoutSetPrototype, int newMergeFailCount)
           
 void setSites(Sites sites)
           
static void updateLayoutScopes(long userId, Layout sourceLayout, Layout targetLayout, PortletPreferences sourcePreferences, PortletPreferences targetPreferences, String sourcePortletId, String languageId)
           
static void updateLayoutSetPrototypesLinks(Group group, long publicLayoutSetPrototypeId, long privateLayoutSetPrototypeId, boolean publicLayoutSetPrototypeLinkEnabled, boolean privateLayoutSetPrototypeLinkEnabled)
           
 
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

addMergeFailFriendlyURLLayout

public static void addMergeFailFriendlyURLLayout(Layout layout)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

addPortletBreadcrumbEntries

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

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

copyLayout

public static void copyLayout(long userId,
                              Layout sourceLayout,
                              Layout targetLayout,
                              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

filterGroups

public static Long[] filterGroups(List<Group> groups,
                                  String[] names)

getLayoutSetPrototypeLayout

public static Layout getLayoutSetPrototypeLayout(Layout layout)

getLayoutSetPrototypeParameters

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

getMergeFailCount

public static int getMergeFailCount(LayoutPrototype layoutPrototype)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getMergeFailCount

public static int getMergeFailCount(LayoutSetPrototype layoutSetPrototype)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getMergeFailFriendlyURLLayouts

public static List<Layout> getMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
                                                   throws PortalException,
                                                          SystemException
Throws:
PortalException
SystemException

getSites

public static Sites getSites()

importLayoutSetPrototype

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

isContentSharingWithChildrenEnabled

public static boolean isContentSharingWithChildrenEnabled(Group group)
                                                   throws SystemException
Throws:
SystemException

isFirstLayout

public static boolean isFirstLayout(long groupId,
                                    boolean privateLayout,
                                    long layoutId)
                             throws SystemException
Throws:
SystemException

isLayoutDeleteable

public static boolean isLayoutDeleteable(Layout layout)

isLayoutModifiedSinceLastMerge

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

isLayoutSetMergeable

public static boolean isLayoutSetMergeable(Group group,
                                           LayoutSet layoutSet)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

isLayoutSetPrototypeUpdateable

public static boolean isLayoutSetPrototypeUpdateable(LayoutSet layoutSet)

isLayoutSortable

public static boolean isLayoutSortable(Layout layout)

isLayoutUpdateable

public static boolean isLayoutUpdateable(Layout layout)

isOrganizationUser

public static boolean isOrganizationUser(long companyId,
                                         Group group,
                                         User user,
                                         List<String> organizationNames)
                                  throws Exception
Throws:
Exception

isUserGroupLayoutSetViewable

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

isUserGroupUser

public static boolean isUserGroupUser(long companyId,
                                      Group group,
                                      User user,
                                      List<String> userGroupNames)
                               throws Exception
Throws:
Exception

mergeLayoutPrototypeLayout

public static void mergeLayoutPrototypeLayout(Group group,
                                              Layout layout)
                                       throws Exception
Throws:
Exception

mergeLayoutProtypeLayout

public static void mergeLayoutProtypeLayout(Group group,
                                            Layout layout)
                                     throws Exception
Deprecated. As of 6.2.0, replaced by mergeLayoutPrototypeLayout(Group, Layout)

Throws:
Exception

mergeLayoutSetPrototypeLayouts

public static void mergeLayoutSetPrototypeLayouts(Group group,
                                                  LayoutSet layoutSet)
                                           throws Exception
Throws:
Exception

mergeLayoutSetProtypeLayouts

public static void mergeLayoutSetProtypeLayouts(Group group,
                                                LayoutSet layoutSet)
                                         throws Exception
Deprecated. As of 6.2.0, replaced by mergeLayoutSetPrototypeLayouts(Group, LayoutSet)

Throws:
Exception

removeMergeFailFriendlyURLLayouts

public static void removeMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
                                              throws SystemException
Throws:
SystemException

resetPrototype

public static void resetPrototype(Layout layout)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

resetPrototype

public static void resetPrototype(LayoutSet layoutSet)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

setMergeFailCount

public static void setMergeFailCount(LayoutPrototype layoutPrototype,
                                     int newMergeFailCount)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

setMergeFailCount

public static void setMergeFailCount(LayoutSetPrototype layoutSetPrototype,
                                     int newMergeFailCount)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

updateLayoutScopes

public static void updateLayoutScopes(long userId,
                                      Layout sourceLayout,
                                      Layout targetLayout,
                                      PortletPreferences sourcePreferences,
                                      PortletPreferences targetPreferences,
                                      String sourcePortletId,
                                      String languageId)
                               throws Exception
Throws:
Exception

updateLayoutSetPrototypesLinks

public static void updateLayoutSetPrototypesLinks(Group group,
                                                  long publicLayoutSetPrototypeId,
                                                  long privateLayoutSetPrototypeId,
                                                  boolean publicLayoutSetPrototypeLinkEnabled,
                                                  boolean privateLayoutSetPrototypeLinkEnabled)
                                           throws Exception
Throws:
Exception

setSites

public void setSites(Sites sites)

Liferay 6.2-ce-ga5