com.liferay.portlet.sites.util
Class SitesUtil
java.lang.Object
com.liferay.portlet.sites.util.SitesUtil
public class SitesUtil
- extends java.lang.Object
- Author:
- Raymond Augé, Ryan Park, Zsolt Berentey
|
Method Summary |
static void |
addMergeFailFriendlyURLLayout(Layout layout)
|
static void |
addPortletBreadcrumbEntries(Group group,
javax.servlet.http.HttpServletRequest request,
javax.portlet.RenderResponse renderResponse)
|
static void |
addPortletBreadcrumbEntries(Group group,
java.lang.String pagesName,
javax.portlet.PortletURL redirectURL,
javax.servlet.http.HttpServletRequest request,
javax.portlet.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 java.lang.Object[] |
deleteLayout(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
|
static java.lang.Object[] |
deleteLayout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
static void |
deleteLayout(javax.portlet.RenderRequest renderRequest,
javax.portlet.RenderResponse renderResponse)
|
static java.io.File |
exportLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
ServiceContext serviceContext)
|
static java.lang.Long[] |
filterGroups(java.util.List<Group> groups,
java.lang.String[] names)
|
static Layout |
getLayoutSetPrototypeLayout(Layout layout)
|
static java.util.Map<java.lang.String,java.lang.String[]> |
getLayoutSetPrototypeParameters(ServiceContext serviceContext)
|
static int |
getMergeFailCount(LayoutPrototype layoutPrototype)
|
static int |
getMergeFailCount(LayoutSetPrototype layoutSetPrototype)
|
static java.util.List<Layout> |
getMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
|
static Sites |
getSites()
|
static void |
importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
java.io.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,
java.util.List<java.lang.String> organizationNames)
|
static boolean |
isUserGroupLayoutSetViewable(PermissionChecker permissionChecker,
Group userGroupGroup)
|
static boolean |
isUserGroupUser(long companyId,
Group group,
User user,
java.util.List<java.lang.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,
javax.portlet.PortletPreferences sourcePreferences,
javax.portlet.PortletPreferences targetPreferences,
java.lang.String sourcePortletId,
java.lang.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 |
SitesUtil
public SitesUtil()
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,
javax.portlet.RenderResponse renderResponse)
throws java.lang.Exception
- Throws:
java.lang.Exception
addPortletBreadcrumbEntries
public static void addPortletBreadcrumbEntries(Group group,
java.lang.String pagesName,
javax.portlet.PortletURL redirectURL,
javax.servlet.http.HttpServletRequest request,
javax.portlet.RenderResponse renderResponse)
throws java.lang.Exception
- Throws:
java.lang.Exception
applyLayoutPrototype
public static void applyLayoutPrototype(LayoutPrototype layoutPrototype,
Layout targetLayout,
boolean linkEnabled)
throws java.lang.Exception
- Throws:
java.lang.Exception
copyLayout
public static void copyLayout(long userId,
Layout sourceLayout,
Layout targetLayout,
ServiceContext serviceContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
copyLookAndFeel
public static void copyLookAndFeel(Layout targetLayout,
Layout sourceLayout)
throws java.lang.Exception
- Throws:
java.lang.Exception
copyPortletPermissions
public static void copyPortletPermissions(Layout targetLayout,
Layout sourceLayout)
throws java.lang.Exception
- Throws:
java.lang.Exception
copyPortletSetups
public static void copyPortletSetups(Layout sourceLayout,
Layout targetLayout)
throws java.lang.Exception
- Throws:
java.lang.Exception
copyTypeSettings
public static void copyTypeSettings(Group sourceGroup,
Group targetGroup)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteLayout
public static java.lang.Object[] deleteLayout(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteLayout
public static java.lang.Object[] deleteLayout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteLayout
public static void deleteLayout(javax.portlet.RenderRequest renderRequest,
javax.portlet.RenderResponse renderResponse)
throws java.lang.Exception
- Throws:
java.lang.Exception
exportLayoutSetPrototype
public static java.io.File exportLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterGroups
public static java.lang.Long[] filterGroups(java.util.List<Group> groups,
java.lang.String[] names)
getLayoutSetPrototypeLayout
public static Layout getLayoutSetPrototypeLayout(Layout layout)
getLayoutSetPrototypeParameters
public static java.util.Map<java.lang.String,java.lang.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 java.util.List<Layout> getMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getSites
public static Sites getSites()
importLayoutSetPrototype
public static void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
java.io.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,
java.util.List<java.lang.String> organizationNames)
throws java.lang.Exception
- Throws:
java.lang.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,
java.util.List<java.lang.String> userGroupNames)
throws java.lang.Exception
- Throws:
java.lang.Exception
mergeLayoutPrototypeLayout
public static void mergeLayoutPrototypeLayout(Group group,
Layout layout)
throws java.lang.Exception
- Throws:
java.lang.Exception
mergeLayoutProtypeLayout
public static void mergeLayoutProtypeLayout(Group group,
Layout layout)
throws java.lang.Exception
- Deprecated. As of 6.2.0, replaced by
mergeLayoutPrototypeLayout(Group, Layout)
- Throws:
java.lang.Exception
mergeLayoutSetPrototypeLayouts
public static void mergeLayoutSetPrototypeLayouts(Group group,
LayoutSet layoutSet)
throws java.lang.Exception
- Throws:
java.lang.Exception
mergeLayoutSetProtypeLayouts
public static void mergeLayoutSetProtypeLayouts(Group group,
LayoutSet layoutSet)
throws java.lang.Exception
- Deprecated. As of 6.2.0, replaced by
mergeLayoutSetPrototypeLayouts(Group, LayoutSet)
- Throws:
java.lang.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,
javax.portlet.PortletPreferences sourcePreferences,
javax.portlet.PortletPreferences targetPreferences,
java.lang.String sourcePortletId,
java.lang.String languageId)
throws java.lang.Exception
- Throws:
java.lang.Exception
updateLayoutSetPrototypesLinks
public static void updateLayoutSetPrototypesLinks(Group group,
long publicLayoutSetPrototypeId,
long privateLayoutSetPrototypeId,
boolean publicLayoutSetPrototypeLinkEnabled,
boolean privateLayoutSetPrototypeLinkEnabled)
throws java.lang.Exception
- Throws:
java.lang.Exception
setSites
public void setSites(Sites sites)