com.liferay.portlet.communities.util
Class StagingUtil
java.lang.Object
com.liferay.portlet.communities.util.StagingUtil
public class StagingUtil
- extends java.lang.Object
View Source
- Author:
- Raymond Augé
Method Summary |
static void |
copyFromLive(javax.portlet.ActionRequest req)
|
static void |
copyFromLive(javax.portlet.ActionRequest req,
com.liferay.portal.model.Portlet portlet)
|
static void |
copyLayouts(long sourceGroupId,
long targetGroupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
|
static void |
copyPortlet(javax.portlet.ActionRequest req,
long sourcePlid,
long targetPlid,
java.lang.String portletId)
|
static java.util.List<com.liferay.portal.model.Layout> |
getMissingParents(com.liferay.portal.model.Layout layout,
long liveGroupId)
|
static java.util.Map<java.lang.String,java.lang.String[]> |
getStagingParameters()
|
static java.util.Map<java.lang.String,java.lang.String[]> |
getStagingParameters(javax.portlet.ActionRequest req)
|
static void |
publishLayout(long plid,
long liveGroupId,
boolean includeChildren)
|
static void |
publishLayouts(java.util.Map<java.lang.Long,java.lang.Boolean> layoutIdMap,
long stagingGroupId,
long liveGroupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
|
static void |
publishToLive(javax.portlet.ActionRequest req)
|
static void |
publishToLive(javax.portlet.ActionRequest req,
com.liferay.portal.model.Portlet portlet)
|
static void |
updateStaging(javax.portlet.ActionRequest req)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StagingUtil
public StagingUtil()
copyFromLive
public static void copyFromLive(javax.portlet.ActionRequest req)
throws java.lang.Exception
- Throws:
java.lang.Exception
copyFromLive
public static void copyFromLive(javax.portlet.ActionRequest req,
com.liferay.portal.model.Portlet portlet)
throws java.lang.Exception
- Throws:
java.lang.Exception
copyLayouts
public static void copyLayouts(long sourceGroupId,
long targetGroupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
throws java.lang.Exception
- Throws:
java.lang.Exception
copyPortlet
public static void copyPortlet(javax.portlet.ActionRequest req,
long sourcePlid,
long targetPlid,
java.lang.String portletId)
throws java.lang.Exception
- Throws:
java.lang.Exception
getMissingParents
public static java.util.List<com.liferay.portal.model.Layout> getMissingParents(com.liferay.portal.model.Layout layout,
long liveGroupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getStagingParameters
public static java.util.Map<java.lang.String,java.lang.String[]> getStagingParameters(javax.portlet.ActionRequest req)
getStagingParameters
public static java.util.Map<java.lang.String,java.lang.String[]> getStagingParameters()
publishLayout
public static void publishLayout(long plid,
long liveGroupId,
boolean includeChildren)
throws java.lang.Exception
- Throws:
java.lang.Exception
publishLayouts
public static void publishLayouts(java.util.Map<java.lang.Long,java.lang.Boolean> layoutIdMap,
long stagingGroupId,
long liveGroupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
throws java.lang.Exception
- Throws:
java.lang.Exception
publishToLive
public static void publishToLive(javax.portlet.ActionRequest req)
throws java.lang.Exception
- Throws:
java.lang.Exception
publishToLive
public static void publishToLive(javax.portlet.ActionRequest req,
com.liferay.portal.model.Portlet portlet)
throws java.lang.Exception
- Throws:
java.lang.Exception
updateStaging
public static void updateStaging(javax.portlet.ActionRequest req)
throws java.lang.Exception
- Throws:
java.lang.Exception