public class SitesUtil
extends Object
Constructor and Description |
---|
SitesUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addMergeFailFriendlyURLLayout(Layout layout) |
static void |
addPortletBreadcrumbEntries(Group group,
javax.servlet.http.HttpServletRequest request,
javax.portlet.PortletURL portletURL) |
static void |
addPortletBreadcrumbEntries(Group group,
javax.servlet.http.HttpServletRequest request,
javax.portlet.RenderResponse renderResponse) |
static void |
addPortletBreadcrumbEntries(Group group,
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 Object[] |
deleteLayout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static Object[] |
deleteLayout(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse) |
static void |
deleteLayout(javax.portlet.RenderRequest renderRequest,
javax.portlet.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 List<String> |
getOrganizationNames(Group group,
User user) |
static Sites |
getSites() |
static List<String> |
getUserGroupNames(Group group,
User user) |
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 |
isUserGroupLayout(Layout layout) |
static boolean |
isUserGroupLayoutSetViewable(PermissionChecker permissionChecker,
Group userGroupGroup) |
static void |
mergeLayoutPrototypeLayout(Group group,
Layout layout) |
static void |
mergeLayoutSetPrototypeLayouts(Group group,
LayoutSet 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,
String sourcePortletId,
String languageId) |
static void |
updateLayoutSetPrototypesLinks(Group group,
long publicLayoutSetPrototypeId,
long privateLayoutSetPrototypeId,
boolean publicLayoutSetPrototypeLinkEnabled,
boolean privateLayoutSetPrototypeLinkEnabled) |
public static void addMergeFailFriendlyURLLayout(Layout layout) throws PortalException
PortalException
public static void addPortletBreadcrumbEntries(Group group, javax.servlet.http.HttpServletRequest request, javax.portlet.PortletURL portletURL) throws Exception
Exception
public static void addPortletBreadcrumbEntries(Group group, javax.servlet.http.HttpServletRequest request, javax.portlet.RenderResponse renderResponse) throws Exception
Exception
public static void addPortletBreadcrumbEntries(Group group, String pagesName, javax.portlet.PortletURL redirectURL, javax.servlet.http.HttpServletRequest request, javax.portlet.RenderResponse renderResponse) throws Exception
Exception
public static void applyLayoutPrototype(LayoutPrototype layoutPrototype, Layout targetLayout, boolean linkEnabled) throws Exception
Exception
public static void copyLayout(long userId, Layout sourceLayout, Layout targetLayout, ServiceContext serviceContext) throws Exception
Exception
public static void copyLookAndFeel(Layout targetLayout, Layout sourceLayout) throws Exception
Exception
public static void copyPortletPermissions(Layout targetLayout, Layout sourceLayout) throws Exception
Exception
public static void copyPortletSetups(Layout sourceLayout, Layout targetLayout) throws Exception
Exception
public static void copyTypeSettings(Group sourceGroup, Group targetGroup) throws Exception
Exception
public static Object[] deleteLayout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public static Object[] deleteLayout(javax.portlet.PortletRequest portletRequest, javax.portlet.PortletResponse portletResponse) throws Exception
Exception
public static void deleteLayout(javax.portlet.RenderRequest renderRequest, javax.portlet.RenderResponse renderResponse) throws Exception
Exception
public static File exportLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype, ServiceContext serviceContext) throws PortalException
PortalException
public static Long[] filterGroups(List<Group> groups, String[] names)
public static Map<String,String[]> getLayoutSetPrototypeParameters(ServiceContext serviceContext)
public static int getMergeFailCount(LayoutPrototype layoutPrototype) throws PortalException
PortalException
public static int getMergeFailCount(LayoutSetPrototype layoutSetPrototype) throws PortalException
PortalException
public static List<Layout> getMergeFailFriendlyURLLayouts(LayoutSet layoutSet) throws PortalException
PortalException
public static List<String> getOrganizationNames(Group group, User user) throws Exception
Exception
public static Sites getSites()
public static List<String> getUserGroupNames(Group group, User user) throws Exception
Exception
public static void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype, InputStream inputStream, ServiceContext serviceContext) throws PortalException
PortalException
public static boolean isContentSharingWithChildrenEnabled(Group group)
public static boolean isFirstLayout(long groupId, boolean privateLayout, long layoutId)
public static boolean isLayoutDeleteable(Layout layout)
public static boolean isLayoutModifiedSinceLastMerge(Layout layout) throws PortalException
PortalException
public static boolean isLayoutSetMergeable(Group group, LayoutSet layoutSet) throws PortalException
PortalException
public static boolean isLayoutSetPrototypeUpdateable(LayoutSet layoutSet)
public static boolean isLayoutSortable(Layout layout)
public static boolean isLayoutUpdateable(Layout layout)
public static boolean isUserGroupLayout(Layout layout) throws PortalException
PortalException
public static boolean isUserGroupLayoutSetViewable(PermissionChecker permissionChecker, Group userGroupGroup) throws PortalException
PortalException
public static void mergeLayoutPrototypeLayout(Group group, Layout layout) throws Exception
Exception
public static void mergeLayoutSetPrototypeLayouts(Group group, LayoutSet layoutSet) throws Exception
Exception
public static void removeMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
public static void resetPrototype(Layout layout) throws PortalException
PortalException
public static void resetPrototype(LayoutSet layoutSet) throws PortalException
PortalException
public static void setMergeFailCount(LayoutPrototype layoutPrototype, int newMergeFailCount) throws PortalException
PortalException
public static void setMergeFailCount(LayoutSetPrototype layoutSetPrototype, int newMergeFailCount) throws PortalException
PortalException
public static void updateLayoutScopes(long userId, Layout sourceLayout, Layout targetLayout, javax.portlet.PortletPreferences sourcePreferences, javax.portlet.PortletPreferences targetPreferences, String sourcePortletId, String languageId) throws Exception
Exception
public static void updateLayoutSetPrototypesLinks(Group group, long publicLayoutSetPrototypeId, long privateLayoutSetPrototypeId, boolean publicLayoutSetPrototypeLinkEnabled, boolean privateLayoutSetPrototypeLinkEnabled) throws Exception
Exception
public void setSites(Sites sites)