com.liferay.sites.kernel.util
Class SitesUtil
java.lang.Object
com.liferay.sites.kernel.util.SitesUtil
public class SitesUtil
- extends Object
|
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 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 |
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 |
SitesUtil
public SitesUtil()
addMergeFailFriendlyURLLayout
public static void addMergeFailFriendlyURLLayout(Layout layout)
throws PortalException
- Throws:
PortalException
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
- Throws:
PortalException
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
- Throws:
PortalException
getMergeFailCount
public static int getMergeFailCount(LayoutSetPrototype layoutSetPrototype)
throws PortalException
- Throws:
PortalException
getMergeFailFriendlyURLLayouts
public static List<Layout> getMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
throws PortalException
- Throws:
PortalException
getOrganizationNames
public static List<String> getOrganizationNames(Group group,
User user)
throws Exception
- Throws:
Exception
getSites
public static Sites getSites()
getUserGroupNames
public static List<String> getUserGroupNames(Group group,
User user)
throws Exception
- Throws:
Exception
importLayoutSetPrototype
public static void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
InputStream inputStream,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
isContentSharingWithChildrenEnabled
public static boolean isContentSharingWithChildrenEnabled(Group group)
isFirstLayout
public static boolean isFirstLayout(long groupId,
boolean privateLayout,
long layoutId)
isLayoutDeleteable
public static boolean isLayoutDeleteable(Layout layout)
isLayoutModifiedSinceLastMerge
public static boolean isLayoutModifiedSinceLastMerge(Layout layout)
throws PortalException
- Throws:
PortalException
isLayoutSetMergeable
public static boolean isLayoutSetMergeable(Group group,
LayoutSet layoutSet)
throws PortalException
- Throws:
PortalException
isLayoutSetPrototypeUpdateable
public static boolean isLayoutSetPrototypeUpdateable(LayoutSet layoutSet)
isLayoutSortable
public static boolean isLayoutSortable(Layout layout)
isLayoutUpdateable
public static boolean isLayoutUpdateable(Layout layout)
isUserGroupLayout
public static boolean isUserGroupLayout(Layout layout)
throws PortalException
- Throws:
PortalException
isUserGroupLayoutSetViewable
public static boolean isUserGroupLayoutSetViewable(PermissionChecker permissionChecker,
Group userGroupGroup)
throws PortalException
- Throws:
PortalException
mergeLayoutPrototypeLayout
public static void mergeLayoutPrototypeLayout(Group group,
Layout layout)
throws Exception
- Throws:
Exception
mergeLayoutProtypeLayout
@Deprecated
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
@Deprecated
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)
resetPrototype
public static void resetPrototype(Layout layout)
throws PortalException
- Throws:
PortalException
resetPrototype
public static void resetPrototype(LayoutSet layoutSet)
throws PortalException
- Throws:
PortalException
setMergeFailCount
public static void setMergeFailCount(LayoutPrototype layoutPrototype,
int newMergeFailCount)
throws PortalException
- Throws:
PortalException
setMergeFailCount
public static void setMergeFailCount(LayoutSetPrototype layoutSetPrototype,
int newMergeFailCount)
throws PortalException
- Throws:
PortalException
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)