com.liferay.portlet.sites.util
Class SitesUtil
java.lang.Object
com.liferay.portlet.sites.util.SitesUtil
public class SitesUtil
- extends Object
Method Summary |
static void |
addMergeFailFriendlyURLLayout(Layout layout)
|
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)
|
protected static void |
doMergeLayoutPrototypeLayout(Group group,
Layout layout)
|
static File |
exportLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
ServiceContext serviceContext)
|
static Layout |
getLayoutSetPrototypeLayout(Layout layout)
|
static Map<String,String[]> |
getLayoutSetPrototypeParameters(ServiceContext serviceContext)
|
protected static Map<String,String[]> |
getLayoutSetPrototypesParameters(boolean importData)
|
static List<Layout> |
getMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
|
static void |
importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
InputStream inputStream,
ServiceContext serviceContext)
|
protected static void |
importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
boolean importData)
|
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 |
isUserGroupLayoutSetViewable(PermissionChecker permissionChecker,
Group userGroupGroup)
|
static void |
mergeLayoutPrototypeLayout(Group group,
Layout layout)
|
static void |
mergeLayoutProtypeLayout(Group group,
Layout layout)
Deprecated. mergeLayoutPrototypeLayout(Group, Layout) |
static void |
mergeLayoutSetPrototypeLayouts(Group group,
LayoutSet layoutSet)
|
static void |
mergeLayoutSetProtypeLayouts(Group group,
LayoutSet layoutSet)
Deprecated. mergeLayoutSetPrototypeLayouts(Group, LayoutSet) |
static void |
removeMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
|
static void |
resetPrototype(Layout layout)
|
protected static void |
setLayoutSetPrototypeLinkEnabledParameter(Map<String,String[]> parameterMap,
LayoutSet targetLayoutSet,
ServiceContext serviceContext)
|
static void |
updateLayoutScopes(long userId,
Layout sourceLayout,
Layout targetLayout,
PortletPreferences sourcePreferences,
PortletPreferences targetPreferences,
String sourcePortletId,
String languageId)
|
protected static void |
updateLayoutSetPrototypeLink(long groupId,
boolean privateLayout,
long layoutSetPrototypeId,
boolean layoutSetPrototypeLinkEnabled)
|
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 |
LAST_MERGE_TIME
public static final String LAST_MERGE_TIME
- See Also:
- Constant Field Values
LAST_RESET_TIME
public static final String LAST_RESET_TIME
- See Also:
- Constant Field Values
LAYOUT_UPDATEABLE
public static final String LAYOUT_UPDATEABLE
- See Also:
- Constant Field Values
MERGE_FAIL_COUNT
public static final String MERGE_FAIL_COUNT
- See Also:
- Constant Field Values
MERGE_FAIL_FRIENDLY_URL_LAYOUTS
public static final String MERGE_FAIL_FRIENDLY_URL_LAYOUTS
- See Also:
- Constant Field Values
SitesUtil
public SitesUtil()
addMergeFailFriendlyURLLayout
public static void addMergeFailFriendlyURLLayout(Layout layout)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
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
getLayoutSetPrototypeLayout
public static Layout getLayoutSetPrototypeLayout(Layout layout)
getLayoutSetPrototypeParameters
public static Map<String,String[]> getLayoutSetPrototypeParameters(ServiceContext serviceContext)
getMergeFailFriendlyURLLayouts
public static List<Layout> getMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
importLayoutSetPrototype
public static void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
InputStream inputStream,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
isLayoutDeleteable
public static boolean isLayoutDeleteable(Layout layout)
isLayoutModifiedSinceLastMerge
public static boolean isLayoutModifiedSinceLastMerge(Layout layout)
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)
isUserGroupLayoutSetViewable
public static boolean isUserGroupLayoutSetViewable(PermissionChecker permissionChecker,
Group userGroupGroup)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
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.
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.
mergeLayoutSetPrototypeLayouts(Group, LayoutSet)
- Throws:
Exception
removeMergeFailFriendlyURLLayouts
public static void removeMergeFailFriendlyURLLayouts(LayoutSet layoutSet)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
resetPrototype
public static void resetPrototype(Layout layout)
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
doMergeLayoutPrototypeLayout
protected static void doMergeLayoutPrototypeLayout(Group group,
Layout layout)
throws Exception
- Throws:
Exception
getLayoutSetPrototypesParameters
protected static Map<String,String[]> getLayoutSetPrototypesParameters(boolean importData)
importLayoutSetPrototype
protected static void importLayoutSetPrototype(LayoutSetPrototype layoutSetPrototype,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
boolean importData)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setLayoutSetPrototypeLinkEnabledParameter
protected static void setLayoutSetPrototypeLinkEnabledParameter(Map<String,String[]> parameterMap,
LayoutSet targetLayoutSet,
ServiceContext serviceContext)
updateLayoutSetPrototypeLink
protected static void updateLayoutSetPrototypeLink(long groupId,
boolean privateLayout,
long layoutSetPrototypeId,
boolean layoutSetPrototypeLinkEnabled)
throws Exception
- Throws:
Exception