Liferay 6.1.2-ce-ga3

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 String buildRemoteURL(String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, boolean privateLayout)
           
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[]> parameterMap, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, boolean remotePrivateLayout, Date startDate, Date endDate)
           
static void deleteLastImportSettings(Group liveGroup, boolean privateLayout)
           
static void deleteRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid)
           
static void deleteRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid)
           
static void disableStaging(Group scopeGroup, Group liveGroup, ServiceContext serviceContext)
          Deprecated. disableStaging(Group, ServiceContext)
static void disableStaging(Group liveGroup, ServiceContext serviceContext)
           
static void disableStaging(PortletRequest portletRequest, Group scopeGroup, Group liveGroup, ServiceContext serviceContext)
          Deprecated. disableStaging(PortletRequest, Group, ServiceContext)
static void disableStaging(PortletRequest portletRequest, Group liveGroup, ServiceContext serviceContext)
           
static void enableLocalStaging(long userId, Group scopeGroup, Group liveGroup, boolean branchingPublic, boolean branchingPrivate, ServiceContext serviceContext)
           
static void enableRemoteStaging(long userId, Group scopeGroup, Group liveGroup, boolean branchingPublic, boolean branchingPrivate, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, ServiceContext serviceContext)
           
static Group getLiveGroup(long groupId)
           
static long getLiveGroupId(long groupId)
           
static List<Layout> getMissingParentLayouts(Layout layout, long liveGroupId)
           
static long getRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid)
           
static long getRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid)
           
static long getRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request, long layoutSetId)
           
static long getRecentLayoutSetBranchId(User user, long layoutSetId)
           
static String getSchedulerGroupName(String destinationName, long groupId)
           
static Staging getStaging()
           
static Map<String,String[]> getStagingParameters()
           
static Map<String,String[]> getStagingParameters(PortletRequest PortletRequest)
           
static WorkflowTask getWorkflowTask(long userId, LayoutRevision layoutRevision)
           
static boolean hasWorkflowTask(long userId, LayoutRevision layoutRevision)
           
static boolean isIncomplete(Layout layout, long layoutSetBranchId)
           
static void publishLayout(long userId, long plid, long liveGroupId, boolean includeChildren)
           
static void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
static void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, Map<Long,Boolean> layoutIdMap, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
static void publishLayouts(long userId, 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)
           
static void setRecentLayoutBranchId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid, long layoutBranchId)
           
static void setRecentLayoutBranchId(User user, long layoutSetBranchId, long plid, long layoutBranchId)
           
static void setRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid, long layoutRevisionId)
           
static void setRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid, long layoutRevisionId)
           
static void setRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request, long layoutSetId, long layoutSetBranchId)
           
static void setRecentLayoutSetBranchId(User user, long layoutSetId, long layoutSetBranchId)
           
 void setStaging(Staging staging)
           
static void unscheduleCopyFromLive(PortletRequest PortletRequest)
           
static void unschedulePublishToLive(PortletRequest PortletRequest)
           
static void unschedulePublishToRemote(PortletRequest PortletRequest)
           
static void updateLastImportSettings(Element layoutElement, Layout layout, PortletDataContext portletDataContext)
           
static void updateStaging(PortletRequest PortletRequest, Group liveGroup)
           
 
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

buildRemoteURL

public static String buildRemoteURL(String remoteAddress,
                                    int remotePort,
                                    String remotePathContext,
                                    boolean secureConnection,
                                    long remoteGroupId,
                                    boolean privateLayout)

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[]> parameterMap,
                                     String remoteAddress,
                                     int remotePort,
                                     String remotePathContext,
                                     boolean secureConnection,
                                     long remoteGroupId,
                                     boolean remotePrivateLayout,
                                     Date startDate,
                                     Date endDate)
                              throws Exception
Throws:
Exception

deleteLastImportSettings

public static void deleteLastImportSettings(Group liveGroup,
                                            boolean privateLayout)
                                     throws Exception
Throws:
Exception

deleteRecentLayoutRevisionId

public static void deleteRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
                                                long layoutSetBranchId,
                                                long plid)
                                         throws SystemException
Throws:
SystemException

deleteRecentLayoutRevisionId

public static void deleteRecentLayoutRevisionId(User user,
                                                long layoutSetBranchId,
                                                long plid)
                                         throws SystemException
Throws:
SystemException

disableStaging

public static void disableStaging(Group scopeGroup,
                                  Group liveGroup,
                                  ServiceContext serviceContext)
                           throws Exception
Deprecated. disableStaging(Group, ServiceContext)

Throws:
Exception

disableStaging

public static void disableStaging(Group liveGroup,
                                  ServiceContext serviceContext)
                           throws Exception
Throws:
Exception

disableStaging

public static void disableStaging(PortletRequest portletRequest,
                                  Group scopeGroup,
                                  Group liveGroup,
                                  ServiceContext serviceContext)
                           throws Exception
Deprecated. disableStaging(PortletRequest, Group, ServiceContext)

Throws:
Exception

disableStaging

public static void disableStaging(PortletRequest portletRequest,
                                  Group liveGroup,
                                  ServiceContext serviceContext)
                           throws Exception
Throws:
Exception

enableLocalStaging

public static void enableLocalStaging(long userId,
                                      Group scopeGroup,
                                      Group liveGroup,
                                      boolean branchingPublic,
                                      boolean branchingPrivate,
                                      ServiceContext serviceContext)
                               throws Exception
Throws:
Exception

enableRemoteStaging

public static void enableRemoteStaging(long userId,
                                       Group scopeGroup,
                                       Group liveGroup,
                                       boolean branchingPublic,
                                       boolean branchingPrivate,
                                       String remoteAddress,
                                       int remotePort,
                                       String remotePathContext,
                                       boolean secureConnection,
                                       long remoteGroupId,
                                       ServiceContext serviceContext)
                                throws Exception
Throws:
Exception

getLiveGroup

public static Group getLiveGroup(long groupId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getLiveGroupId

public static long getLiveGroupId(long groupId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getMissingParentLayouts

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

getRecentLayoutRevisionId

public static long getRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
                                             long layoutSetBranchId,
                                             long plid)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getRecentLayoutRevisionId

public static long getRecentLayoutRevisionId(User user,
                                             long layoutSetBranchId,
                                             long plid)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getRecentLayoutSetBranchId

public static long getRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request,
                                              long layoutSetId)

getRecentLayoutSetBranchId

public static long getRecentLayoutSetBranchId(User user,
                                              long layoutSetId)
                                       throws SystemException
Throws:
SystemException

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)

getWorkflowTask

public static WorkflowTask getWorkflowTask(long userId,
                                           LayoutRevision layoutRevision)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

hasWorkflowTask

public static boolean hasWorkflowTask(long userId,
                                      LayoutRevision layoutRevision)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

isIncomplete

public static boolean isIncomplete(Layout layout,
                                   long layoutSetBranchId)

publishLayout

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

publishLayouts

public static void publishLayouts(long userId,
                                  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 userId,
                                  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 userId,
                                  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

setRecentLayoutBranchId

public static void setRecentLayoutBranchId(javax.servlet.http.HttpServletRequest request,
                                           long layoutSetBranchId,
                                           long plid,
                                           long layoutBranchId)
                                    throws SystemException
Throws:
SystemException

setRecentLayoutBranchId

public static void setRecentLayoutBranchId(User user,
                                           long layoutSetBranchId,
                                           long plid,
                                           long layoutBranchId)
                                    throws SystemException
Throws:
SystemException

setRecentLayoutRevisionId

public static void setRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
                                             long layoutSetBranchId,
                                             long plid,
                                             long layoutRevisionId)
                                      throws SystemException
Throws:
SystemException

setRecentLayoutRevisionId

public static void setRecentLayoutRevisionId(User user,
                                             long layoutSetBranchId,
                                             long plid,
                                             long layoutRevisionId)
                                      throws SystemException
Throws:
SystemException

setRecentLayoutSetBranchId

public static void setRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request,
                                              long layoutSetId,
                                              long layoutSetBranchId)

setRecentLayoutSetBranchId

public static void setRecentLayoutSetBranchId(User user,
                                              long layoutSetId,
                                              long layoutSetBranchId)
                                       throws SystemException
Throws:
SystemException

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

updateLastImportSettings

public static void updateLastImportSettings(Element layoutElement,
                                            Layout layout,
                                            PortletDataContext portletDataContext)
                                     throws Exception
Throws:
Exception

updateStaging

public static void updateStaging(PortletRequest PortletRequest,
                                 Group liveGroup)
                          throws Exception
Throws:
Exception

setStaging

public void setStaging(Staging staging)

Liferay 6.1.2-ce-ga3