Liferay 6.0.5

com.liferay.portal.kernel.staging
Class StagingUtil

java.lang.Object
  extended by com.liferay.portal.kernel.staging.StagingUtil

public class StagingUtil
extends Object


Constructor Summary
StagingUtil()
           
 
Method Summary
static void copyFromLive(PortletRequest PortletRequest)
           
static void copyFromLive(PortletRequest PortletRequest, Portlet portlet)
           
static void copyPortlet(PortletRequest PortletRequest, long sourceGroupId, long targetGroupId, long sourcePlid, long targetPlid, String portletId)
           
static void copyRemoteLayouts(long sourceGroupId, boolean privateLayout, Map<Long,Boolean> layoutIdMap, Map<String,String[]> exportParameterMap, String remoteAddress, int remotePort, boolean secureConnection, long remoteGroupId, boolean remotePrivateLayout, Map<String,String[]> importParameterMap, Date startDate, Date endDate)
           
static List<Layout> getMissingParents(Layout layout, long liveGroupId)
           
static String getSchedulerGroupName(String destinationName, long groupId)
           
static Staging getStaging()
           
static Map<String,String[]> getStagingParameters()
           
static Map<String,String[]> getStagingParameters(PortletRequest PortletRequest)
           
static void publishLayout(long plid, long liveGroupId, boolean includeChildren)
           
static void publishLayouts(long sourceGroupId, long targetGroupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
static void publishLayouts(long sourceGroupId, long targetGroupId, boolean privateLayout, Map<Long,Boolean> layoutIdMap, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
static void publishLayouts(long sourceGroupId, long targetGroupId, boolean privateLayout, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
static void publishToLive(PortletRequest PortletRequest)
           
static void publishToLive(PortletRequest PortletRequest, Portlet portlet)
           
static void publishToRemote(PortletRequest PortletRequest)
           
static void scheduleCopyFromLive(PortletRequest PortletRequest)
           
static void schedulePublishToLive(PortletRequest PortletRequest)
           
static void schedulePublishToRemote(PortletRequest PortletRequest)
           
 void setStaging(Staging staging)
           
static void unscheduleCopyFromLive(PortletRequest PortletRequest)
           
static void unschedulePublishToLive(PortletRequest PortletRequest)
           
static void unschedulePublishToRemote(PortletRequest PortletRequest)
           
static void updateStaging(PortletRequest PortletRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StagingUtil

public StagingUtil()
Method Detail

copyFromLive

public static void copyFromLive(PortletRequest PortletRequest)
                         throws Exception
Throws:
Exception

copyFromLive

public static void copyFromLive(PortletRequest PortletRequest,
                                Portlet portlet)
                         throws Exception
Throws:
Exception

copyPortlet

public static void copyPortlet(PortletRequest PortletRequest,
                               long sourceGroupId,
                               long targetGroupId,
                               long sourcePlid,
                               long targetPlid,
                               String portletId)
                        throws Exception
Throws:
Exception

copyRemoteLayouts

public static void copyRemoteLayouts(long sourceGroupId,
                                     boolean privateLayout,
                                     Map<Long,Boolean> layoutIdMap,
                                     Map<String,String[]> exportParameterMap,
                                     String remoteAddress,
                                     int remotePort,
                                     boolean secureConnection,
                                     long remoteGroupId,
                                     boolean remotePrivateLayout,
                                     Map<String,String[]> importParameterMap,
                                     Date startDate,
                                     Date endDate)
                              throws Exception
Throws:
Exception

getMissingParents

public static List<Layout> getMissingParents(Layout layout,
                                             long liveGroupId)
                                      throws Exception
Throws:
Exception

getSchedulerGroupName

public static String getSchedulerGroupName(String destinationName,
                                           long groupId)

getStaging

public static Staging getStaging()

getStagingParameters

public static Map<String,String[]> getStagingParameters()

getStagingParameters

public static Map<String,String[]> getStagingParameters(PortletRequest PortletRequest)

publishLayout

public static void publishLayout(long plid,
                                 long liveGroupId,
                                 boolean includeChildren)
                          throws Exception
Throws:
Exception

publishLayouts

public static void publishLayouts(long sourceGroupId,
                                  long targetGroupId,
                                  boolean privateLayout,
                                  long[] layoutIds,
                                  Map<String,String[]> parameterMap,
                                  Date startDate,
                                  Date endDate)
                           throws Exception
Throws:
Exception

publishLayouts

public static void publishLayouts(long sourceGroupId,
                                  long targetGroupId,
                                  boolean privateLayout,
                                  Map<Long,Boolean> layoutIdMap,
                                  Map<String,String[]> parameterMap,
                                  Date startDate,
                                  Date endDate)
                           throws Exception
Throws:
Exception

publishLayouts

public static void publishLayouts(long sourceGroupId,
                                  long targetGroupId,
                                  boolean privateLayout,
                                  Map<String,String[]> parameterMap,
                                  Date startDate,
                                  Date endDate)
                           throws Exception
Throws:
Exception

publishToLive

public static void publishToLive(PortletRequest PortletRequest)
                          throws Exception
Throws:
Exception

publishToLive

public static void publishToLive(PortletRequest PortletRequest,
                                 Portlet portlet)
                          throws Exception
Throws:
Exception

publishToRemote

public static void publishToRemote(PortletRequest PortletRequest)
                            throws Exception
Throws:
Exception

scheduleCopyFromLive

public static void scheduleCopyFromLive(PortletRequest PortletRequest)
                                 throws Exception
Throws:
Exception

schedulePublishToLive

public static void schedulePublishToLive(PortletRequest PortletRequest)
                                  throws Exception
Throws:
Exception

schedulePublishToRemote

public static void schedulePublishToRemote(PortletRequest PortletRequest)
                                    throws Exception
Throws:
Exception

unscheduleCopyFromLive

public static void unscheduleCopyFromLive(PortletRequest PortletRequest)
                                   throws Exception
Throws:
Exception

unschedulePublishToLive

public static void unschedulePublishToLive(PortletRequest PortletRequest)
                                    throws Exception
Throws:
Exception

unschedulePublishToRemote

public static void unschedulePublishToRemote(PortletRequest PortletRequest)
                                      throws Exception
Throws:
Exception

updateStaging

public static void updateStaging(PortletRequest PortletRequest)
                          throws Exception
Throws:
Exception

setStaging

public void setStaging(Staging staging)

Liferay 6.0.5