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 |
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 Layout |
getLayoutSetPrototypeLayout(Layout layout)
|
static Map<String,String[]> |
getLayoutSetPrototypeParameters(ServiceContext serviceContext)
|
protected static Map<String,String[]> |
getLayoutSetPrototypesParameters(boolean importData)
|
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 |
isLayoutSetPrototypeUpdateable(LayoutSet layoutSet)
|
static boolean |
isLayoutUpdateable(Layout layout)
|
static boolean |
isUserGroupLayoutSetViewable(PermissionChecker permissionChecker,
Group userGroupGroup)
|
static void |
mergeLayoutProtypeLayout(Group group,
Layout layout)
|
static void |
mergeLayoutSetProtypeLayouts(Group group,
LayoutSet layoutSet)
|
static void |
resetPrototype(Layout layout)
|
protected static void |
setLayoutSetPrototypeLinkEnabledParameter(Map<String,String[]> parameterMap,
LayoutSet targetLayoutSet,
ServiceContext serviceContext)
|
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 |
SitesUtil
public SitesUtil()
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)
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)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
isLayoutSetPrototypeUpdateable
public static boolean isLayoutSetPrototypeUpdateable(LayoutSet layoutSet)
isLayoutUpdateable
public static boolean isLayoutUpdateable(Layout layout)
isUserGroupLayoutSetViewable
public static boolean isUserGroupLayoutSetViewable(PermissionChecker permissionChecker,
Group userGroupGroup)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
mergeLayoutProtypeLayout
public static void mergeLayoutProtypeLayout(Group group,
Layout layout)
throws Exception
- Throws:
Exception
mergeLayoutSetProtypeLayouts
public static void mergeLayoutSetProtypeLayouts(Group group,
LayoutSet layoutSet)
throws Exception
- Throws:
Exception
resetPrototype
public static void resetPrototype(Layout layout)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateLayoutSetPrototypesLinks
public static void updateLayoutSetPrototypesLinks(Group group,
long publicLayoutSetPrototypeId,
long privateLayoutSetPrototypeId,
boolean publicLayoutSetPrototypeLinkEnabled,
boolean privateLayoutSetPrototypeLinkEnabled)
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