Liferay 7.0-ce-m6

com.liferay.portlet.exportimport.staging
Class StagingImpl

java.lang.Object
  extended by com.liferay.portlet.exportimport.staging.StagingImpl
All Implemented Interfaces:
Staging

public class StagingImpl
extends Object
implements Staging


Constructor Summary
StagingImpl()
           
 
Method Summary
 String buildRemoteURL(String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, boolean privateLayout)
           
 String buildRemoteURL(UnicodeProperties typeSettingsProperties)
           
 void checkDefaultLayoutSetBranches(long userId, Group liveGroup, boolean branchingPublic, boolean branchingPrivate, boolean remote, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by StagingLocalServiceUtil.checkDefaultLayoutSetBranches(long, Group, boolean, boolean, boolean, ServiceContext)
 void copyFromLive(PortletRequest portletRequest)
           
 void copyFromLive(PortletRequest portletRequest, Portlet portlet)
           
 void copyPortlet(PortletRequest portletRequest, long sourceGroupId, long targetGroupId, long sourcePlid, long targetPlid, String portletId)
          Deprecated. As of 7.0.0, replaced by publishPortlet(long, long, long, long, long, String, Map)
 void copyRemoteLayouts(ExportImportConfiguration exportImportConfiguration)
           
 void copyRemoteLayouts(long exportImportConfigurationId)
           
 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)
           
 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)
          Deprecated. As of 7.0.0, replaced by copyRemoteLayouts(long, boolean, Map, Map, String, int, String, boolean, long, boolean)
 void deleteLastImportSettings(Group liveGroup, boolean privateLayout)
           
 void deleteRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid)
           
 void deleteRecentLayoutRevisionId(long userId, long layoutSetBranchId, long plid)
           
protected  void deleteRecentLayoutRevisionId(PortalPreferences portalPreferences, long layoutSetBranchId, long plid)
           
 void deleteRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid)
          Deprecated. As of 7.0.0, replaced by deleteRecentLayoutRevisionId(long, long, long)
 void disableStaging(Group scopeGroup, Group liveGroup, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( Group, ServiceContext)
 void disableStaging(Group liveGroup, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( Group, ServiceContext)
 void disableStaging(PortletRequest portletRequest, Group scopeGroup, Group liveGroup, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( PortletRequest, Group, ServiceContext)
 void disableStaging(PortletRequest portletRequest, Group liveGroup, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( PortletRequest, Group, ServiceContext)
protected  void doCopyRemoteLayouts(ExportImportConfiguration exportImportConfiguration, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, boolean remotePrivateLayout)
           
 void enableLocalStaging(long userId, Group scopeGroup, Group liveGroup, boolean branchingPublic, boolean branchingPrivate, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by StagingLocalService.enableLocalStaging( long, Group, boolean, boolean, ServiceContext)
 void enableRemoteStaging(long userId, Group scopeGroup, Group liveGroup, boolean branchingPublic, boolean branchingPrivate, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by StagingLocalService.enableRemoteStaging( long, Group, boolean, boolean, String, int, String, boolean, long, ServiceContext)
protected  boolean getBoolean(PortletRequest portletRequest, Group group, String param)
           
 JSONArray getErrorMessagesJSONArray(Locale locale, Map<String,MissingReference> missingReferences, Map<String,Serializable> contextMap)
           
 JSONObject getExceptionMessagesJSONObject(Locale locale, Exception e, Map<String,Serializable> contextMap)
           
protected  int getInteger(PortletRequest portletRequest, Group group, String param)
           
 Group getLiveGroup(long groupId)
           
 long getLiveGroupId(long groupId)
           
protected  long getLong(PortletRequest portletRequest, Group group, String param)
           
 List<Layout> getMissingParentLayouts(Layout layout, long liveGroupId)
          Deprecated. As of 7.0.0, moved to ExportImportHelperUtil.getMissingParentLayouts(Layout, long)
protected  PortalPreferences getPortalPreferences(User user)
           
protected  long getRecentLayoutBranchId(PortalPreferences portalPreferences, long layoutSetBranchId, long plid)
           
protected  String getRecentLayoutBranchIdKey(long layoutSetBranchId, long plid)
           
 long getRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid)
           
protected  long getRecentLayoutRevisionId(PortalPreferences portalPreferences, long layoutSetBranchId, long plid)
           
 long getRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid)
           
protected  String getRecentLayoutRevisionIdKey(long layoutSetBranchId, long plid)
           
 long getRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request, long layoutSetId)
           
 long getRecentLayoutSetBranchId(User user, long layoutSetId)
           
protected  String getRecentLayoutSetBranchIdKey(long layoutSetId)
           
 String getSchedulerGroupName(String destinationName, long groupId)
           
 String getStagedPortletId(String portletId)
           
 Group getStagingGroup(long groupId)
           
 Map<String,String[]> getStagingParameters()
          Deprecated. As of 7.0.0, replaced by ExportImportConfigurationParameterMapFactory.buildParameterMap( )
 Map<String,String[]> getStagingParameters(PortletRequest portletRequest)
          Deprecated. As of 7.0.0, replaced by ExportImportConfigurationParameterMapFactory.buildParameterMap( PortletRequest)
protected  int getStagingType(PortletRequest portletRequest, Group liveGroup)
           
protected  String getString(PortletRequest portletRequest, Group group, String param)
           
 JSONArray getWarningMessagesJSONArray(Locale locale, Map<String,MissingReference> missingReferences, Map<String,Serializable> contextMap)
           
 WorkflowTask getWorkflowTask(long userId, LayoutRevision layoutRevision)
           
 boolean hasWorkflowTask(long userId, LayoutRevision layoutRevision)
           
protected  boolean isCompanyGroup(HttpPrincipal httpPrincipal, Group group)
           
 boolean isIncomplete(Layout layout, long layoutSetBranchId)
           
 void lockGroup(long userId, long groupId)
          Deprecated. As of 7.0.0, see BackgroundTaskExecutor.getIsolationLevel( )
 void publishLayout(long userId, long plid, long liveGroupId, boolean includeChildren)
           
 void publishLayouts(long userId, ExportImportConfiguration exportImportConfiguration)
           
 void publishLayouts(long userId, long exportImportConfigurationId)
           
 void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap)
           
 void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate)
          Deprecated. As of 7.0.0, replaced by publishLayouts(long, long, long, boolean, long[], Map)
 void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, Map<Long,Boolean> layoutIdMap, Map<String,String[]> parameterMap, Date startDate, Date endDate)
          Deprecated. As of 7.0.0, replaced by publishLayouts(long, long, long, boolean, long[], Map)
 void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, Map<String,String[]> parameterMap)
           
 void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, Map<String,String[]> parameterMap, Date startDate, Date endDate)
          Deprecated. As of 7.0.0, replaced by publishLayouts(long, long, long, boolean, Map)
protected  void publishLayouts(PortletRequest portletRequest, long sourceGroupId, long targetGroupId, Map<String,String[]> parameterMap, boolean schedule)
           
 void publishPortlet(long userId, ExportImportConfiguration exportImportConfiguration)
           
 void publishPortlet(long userId, long exportImportConfigurationId)
           
 void publishPortlet(long userId, long sourceGroupId, long targetGroupId, long sourcePlid, long targetPlid, String portletId, Map<String,String[]> parameterMap)
           
 void publishToLive(PortletRequest portletRequest)
           
 void publishToLive(PortletRequest portletRequest, Portlet portlet)
           
 void publishToRemote(PortletRequest portletRequest)
           
protected  void publishToRemote(PortletRequest portletRequest, boolean schedule)
           
 void scheduleCopyFromLive(PortletRequest portletRequest)
           
 void schedulePublishToLive(PortletRequest portletRequest)
           
 void schedulePublishToRemote(PortletRequest portletRequest)
           
 void setRecentLayoutBranchId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid, long layoutBranchId)
           
protected  void setRecentLayoutBranchId(PortalPreferences portalPreferences, long layoutSetBranchId, long plid, long layoutBranchId)
           
 void setRecentLayoutBranchId(User user, long layoutSetBranchId, long plid, long layoutBranchId)
           
 void setRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid, long layoutRevisionId)
           
protected  void setRecentLayoutRevisionId(PortalPreferences portalPreferences, long layoutSetBranchId, long plid, long layoutRevisionId)
           
 void setRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid, long layoutRevisionId)
           
 void setRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request, long layoutSetId, long layoutSetBranchId)
           
 void setRecentLayoutSetBranchId(User user, long layoutSetId, long layoutSetBranchId)
           
 String stripProtocolFromRemoteAddress(String remoteAddress)
           
 void unlockGroup(long groupId)
          Deprecated. As of 7.0.0, see BackgroundTaskExecutor.getIsolationLevel( )
 void unscheduleCopyFromLive(PortletRequest portletRequest)
           
 void unschedulePublishToLive(PortletRequest portletRequest)
           
 void unschedulePublishToRemote(PortletRequest portletRequest)
           
 void updateLastImportSettings(Element layoutElement, Layout layout, PortletDataContext portletDataContext)
           
 void updateLastPublishDate(long groupId, boolean privateLayout, Date lastPublishDate)
          Deprecated. As of 7.0.0, replaced by ExportImportDateUtil.updateLastPublishDate(long, boolean, DateRange, Date)
 void updateLastPublishDate(String portletId, PortletPreferences portletPreferences, Date lastPublishDate)
          Deprecated. As of 7.0.0, replaced by ExportImportDateUtil.updateLastPublishDate(String, PortletPreferences, DateRange, Date)
 void updateStaging(PortletRequest portletRequest, Group liveGroup)
           
 void validateRemote(long groupId, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId)
           
 void validateRemote(String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId)
          Deprecated. As of 7.0.0, replaced by validateRemote(long, String, int, String, boolean, long)
protected  void validateRemoteGroup(long groupId, long remoteGroupId, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StagingImpl

public StagingImpl()
Method Detail

buildRemoteURL

public String buildRemoteURL(String remoteAddress,
                             int remotePort,
                             String remotePathContext,
                             boolean secureConnection,
                             long remoteGroupId,
                             boolean privateLayout)
Specified by:
buildRemoteURL in interface Staging

buildRemoteURL

public String buildRemoteURL(UnicodeProperties typeSettingsProperties)
Specified by:
buildRemoteURL in interface Staging

checkDefaultLayoutSetBranches

@Deprecated
public void checkDefaultLayoutSetBranches(long userId,
                                                     Group liveGroup,
                                                     boolean branchingPublic,
                                                     boolean branchingPrivate,
                                                     boolean remote,
                                                     ServiceContext serviceContext)
                                   throws PortalException
Deprecated. As of 7.0.0, replaced by StagingLocalServiceUtil.checkDefaultLayoutSetBranches(long, Group, boolean, boolean, boolean, ServiceContext)

Specified by:
checkDefaultLayoutSetBranches in interface Staging
Throws:
PortalException

copyFromLive

public void copyFromLive(PortletRequest portletRequest)
                  throws PortalException
Specified by:
copyFromLive in interface Staging
Throws:
PortalException

copyFromLive

public void copyFromLive(PortletRequest portletRequest,
                         Portlet portlet)
                  throws PortalException
Specified by:
copyFromLive in interface Staging
Throws:
PortalException

copyPortlet

@Deprecated
public void copyPortlet(PortletRequest portletRequest,
                                   long sourceGroupId,
                                   long targetGroupId,
                                   long sourcePlid,
                                   long targetPlid,
                                   String portletId)
                 throws PortalException
Deprecated. As of 7.0.0, replaced by publishPortlet(long, long, long, long, long, String, Map)

Specified by:
copyPortlet in interface Staging
Throws:
PortalException

copyRemoteLayouts

public void copyRemoteLayouts(ExportImportConfiguration exportImportConfiguration)
                       throws PortalException
Specified by:
copyRemoteLayouts in interface Staging
Throws:
PortalException

copyRemoteLayouts

public void copyRemoteLayouts(long exportImportConfigurationId)
                       throws PortalException
Specified by:
copyRemoteLayouts in interface Staging
Throws:
PortalException

copyRemoteLayouts

public 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)
                       throws PortalException
Specified by:
copyRemoteLayouts in interface Staging
Throws:
PortalException

copyRemoteLayouts

@Deprecated
public 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 PortalException
Deprecated. As of 7.0.0, replaced by copyRemoteLayouts(long, boolean, Map, Map, String, int, String, boolean, long, boolean)

Specified by:
copyRemoteLayouts in interface Staging
Throws:
PortalException

deleteLastImportSettings

public void deleteLastImportSettings(Group liveGroup,
                                     boolean privateLayout)
                              throws PortalException
Specified by:
deleteLastImportSettings in interface Staging
Throws:
PortalException

deleteRecentLayoutRevisionId

public void deleteRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
                                         long layoutSetBranchId,
                                         long plid)
Specified by:
deleteRecentLayoutRevisionId in interface Staging

deleteRecentLayoutRevisionId

public void deleteRecentLayoutRevisionId(long userId,
                                         long layoutSetBranchId,
                                         long plid)
Specified by:
deleteRecentLayoutRevisionId in interface Staging

deleteRecentLayoutRevisionId

@Deprecated
public void deleteRecentLayoutRevisionId(User user,
                                                    long layoutSetBranchId,
                                                    long plid)
Deprecated. As of 7.0.0, replaced by deleteRecentLayoutRevisionId(long, long, long)

Specified by:
deleteRecentLayoutRevisionId in interface Staging

disableStaging

@Deprecated
public void disableStaging(Group scopeGroup,
                                      Group liveGroup,
                                      ServiceContext serviceContext)
                    throws Exception
Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( Group, ServiceContext)

Specified by:
disableStaging in interface Staging
Throws:
Exception

disableStaging

@Deprecated
public void disableStaging(Group liveGroup,
                                      ServiceContext serviceContext)
                    throws Exception
Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( Group, ServiceContext)

Specified by:
disableStaging in interface Staging
Throws:
Exception

disableStaging

@Deprecated
public void disableStaging(PortletRequest portletRequest,
                                      Group scopeGroup,
                                      Group liveGroup,
                                      ServiceContext serviceContext)
                    throws Exception
Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( PortletRequest, Group, ServiceContext)

Specified by:
disableStaging in interface Staging
Throws:
Exception

disableStaging

@Deprecated
public void disableStaging(PortletRequest portletRequest,
                                      Group liveGroup,
                                      ServiceContext serviceContext)
                    throws Exception
Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( PortletRequest, Group, ServiceContext)

Specified by:
disableStaging in interface Staging
Throws:
Exception

enableLocalStaging

@Deprecated
public void enableLocalStaging(long userId,
                                          Group scopeGroup,
                                          Group liveGroup,
                                          boolean branchingPublic,
                                          boolean branchingPrivate,
                                          ServiceContext serviceContext)
                        throws Exception
Deprecated. As of 6.2.0, replaced by StagingLocalService.enableLocalStaging( long, Group, boolean, boolean, ServiceContext)

Specified by:
enableLocalStaging in interface Staging
Throws:
Exception

enableRemoteStaging

@Deprecated
public 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
Deprecated. As of 6.2.0, replaced by StagingLocalService.enableRemoteStaging( long, Group, boolean, boolean, String, int, String, boolean, long, ServiceContext)

Specified by:
enableRemoteStaging in interface Staging
Throws:
Exception

getErrorMessagesJSONArray

public JSONArray getErrorMessagesJSONArray(Locale locale,
                                           Map<String,MissingReference> missingReferences,
                                           Map<String,Serializable> contextMap)
Specified by:
getErrorMessagesJSONArray in interface Staging

getExceptionMessagesJSONObject

public JSONObject getExceptionMessagesJSONObject(Locale locale,
                                                 Exception e,
                                                 Map<String,Serializable> contextMap)
Specified by:
getExceptionMessagesJSONObject in interface Staging

getLiveGroup

public Group getLiveGroup(long groupId)
Specified by:
getLiveGroup in interface Staging

getLiveGroupId

public long getLiveGroupId(long groupId)
Specified by:
getLiveGroupId in interface Staging

getMissingParentLayouts

@Deprecated
public List<Layout> getMissingParentLayouts(Layout layout,
                                                       long liveGroupId)
                                     throws PortalException
Deprecated. As of 7.0.0, moved to ExportImportHelperUtil.getMissingParentLayouts(Layout, long)

Specified by:
getMissingParentLayouts in interface Staging
Throws:
PortalException

getRecentLayoutRevisionId

public long getRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
                                      long layoutSetBranchId,
                                      long plid)
                               throws PortalException
Specified by:
getRecentLayoutRevisionId in interface Staging
Throws:
PortalException

getRecentLayoutRevisionId

public long getRecentLayoutRevisionId(User user,
                                      long layoutSetBranchId,
                                      long plid)
                               throws PortalException
Specified by:
getRecentLayoutRevisionId in interface Staging
Throws:
PortalException

getRecentLayoutSetBranchId

public long getRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request,
                                       long layoutSetId)
Specified by:
getRecentLayoutSetBranchId in interface Staging

getRecentLayoutSetBranchId

public long getRecentLayoutSetBranchId(User user,
                                       long layoutSetId)
Specified by:
getRecentLayoutSetBranchId in interface Staging

getSchedulerGroupName

public String getSchedulerGroupName(String destinationName,
                                    long groupId)
Specified by:
getSchedulerGroupName in interface Staging

getStagedPortletId

public String getStagedPortletId(String portletId)
Specified by:
getStagedPortletId in interface Staging

getStagingGroup

public Group getStagingGroup(long groupId)
Specified by:
getStagingGroup in interface Staging

getStagingParameters

@Deprecated
public Map<String,String[]> getStagingParameters()
Deprecated. As of 7.0.0, replaced by ExportImportConfigurationParameterMapFactory.buildParameterMap( )

Specified by:
getStagingParameters in interface Staging

getStagingParameters

@Deprecated
public Map<String,String[]> getStagingParameters(PortletRequest portletRequest)
Deprecated. As of 7.0.0, replaced by ExportImportConfigurationParameterMapFactory.buildParameterMap( PortletRequest)

Specified by:
getStagingParameters in interface Staging

getWarningMessagesJSONArray

public JSONArray getWarningMessagesJSONArray(Locale locale,
                                             Map<String,MissingReference> missingReferences,
                                             Map<String,Serializable> contextMap)
Specified by:
getWarningMessagesJSONArray in interface Staging

getWorkflowTask

public WorkflowTask getWorkflowTask(long userId,
                                    LayoutRevision layoutRevision)
                             throws PortalException
Specified by:
getWorkflowTask in interface Staging
Throws:
PortalException

hasWorkflowTask

public boolean hasWorkflowTask(long userId,
                               LayoutRevision layoutRevision)
                        throws PortalException
Specified by:
hasWorkflowTask in interface Staging
Throws:
PortalException

isIncomplete

public boolean isIncomplete(Layout layout,
                            long layoutSetBranchId)
Specified by:
isIncomplete in interface Staging

lockGroup

@Deprecated
public void lockGroup(long userId,
                                 long groupId)
               throws PortalException
Deprecated. As of 7.0.0, see BackgroundTaskExecutor.getIsolationLevel( )

Specified by:
lockGroup in interface Staging
Throws:
PortalException

publishLayout

public void publishLayout(long userId,
                          long plid,
                          long liveGroupId,
                          boolean includeChildren)
                   throws PortalException
Specified by:
publishLayout in interface Staging
Throws:
PortalException

publishLayouts

public void publishLayouts(long userId,
                           ExportImportConfiguration exportImportConfiguration)
                    throws PortalException
Specified by:
publishLayouts in interface Staging
Throws:
PortalException

publishLayouts

public void publishLayouts(long userId,
                           long exportImportConfigurationId)
                    throws PortalException
Specified by:
publishLayouts in interface Staging
Throws:
PortalException

publishLayouts

public void publishLayouts(long userId,
                           long sourceGroupId,
                           long targetGroupId,
                           boolean privateLayout,
                           long[] layoutIds,
                           Map<String,String[]> parameterMap)
                    throws PortalException
Specified by:
publishLayouts in interface Staging
Throws:
PortalException

publishLayouts

@Deprecated
public void publishLayouts(long userId,
                                      long sourceGroupId,
                                      long targetGroupId,
                                      boolean privateLayout,
                                      long[] layoutIds,
                                      Map<String,String[]> parameterMap,
                                      Date startDate,
                                      Date endDate)
                    throws PortalException
Deprecated. As of 7.0.0, replaced by publishLayouts(long, long, long, boolean, long[], Map)

Specified by:
publishLayouts in interface Staging
Throws:
PortalException

publishLayouts

@Deprecated
public void publishLayouts(long userId,
                                      long sourceGroupId,
                                      long targetGroupId,
                                      boolean privateLayout,
                                      Map<Long,Boolean> layoutIdMap,
                                      Map<String,String[]> parameterMap,
                                      Date startDate,
                                      Date endDate)
                    throws PortalException
Deprecated. As of 7.0.0, replaced by publishLayouts(long, long, long, boolean, long[], Map)

Specified by:
publishLayouts in interface Staging
Throws:
PortalException

publishLayouts

public void publishLayouts(long userId,
                           long sourceGroupId,
                           long targetGroupId,
                           boolean privateLayout,
                           Map<String,String[]> parameterMap)
                    throws PortalException
Specified by:
publishLayouts in interface Staging
Throws:
PortalException

publishLayouts

@Deprecated
public void publishLayouts(long userId,
                                      long sourceGroupId,
                                      long targetGroupId,
                                      boolean privateLayout,
                                      Map<String,String[]> parameterMap,
                                      Date startDate,
                                      Date endDate)
                    throws PortalException
Deprecated. As of 7.0.0, replaced by publishLayouts(long, long, long, boolean, Map)

Specified by:
publishLayouts in interface Staging
Throws:
PortalException

publishPortlet

public void publishPortlet(long userId,
                           ExportImportConfiguration exportImportConfiguration)
                    throws PortalException
Specified by:
publishPortlet in interface Staging
Throws:
PortalException

publishPortlet

public void publishPortlet(long userId,
                           long exportImportConfigurationId)
                    throws PortalException
Specified by:
publishPortlet in interface Staging
Throws:
PortalException

publishPortlet

public void publishPortlet(long userId,
                           long sourceGroupId,
                           long targetGroupId,
                           long sourcePlid,
                           long targetPlid,
                           String portletId,
                           Map<String,String[]> parameterMap)
                    throws PortalException
Specified by:
publishPortlet in interface Staging
Throws:
PortalException

publishToLive

public void publishToLive(PortletRequest portletRequest)
                   throws PortalException
Specified by:
publishToLive in interface Staging
Throws:
PortalException

publishToLive

public void publishToLive(PortletRequest portletRequest,
                          Portlet portlet)
                   throws PortalException
Specified by:
publishToLive in interface Staging
Throws:
PortalException

publishToRemote

public void publishToRemote(PortletRequest portletRequest)
                     throws PortalException
Specified by:
publishToRemote in interface Staging
Throws:
PortalException

scheduleCopyFromLive

public void scheduleCopyFromLive(PortletRequest portletRequest)
                          throws PortalException
Specified by:
scheduleCopyFromLive in interface Staging
Throws:
PortalException

schedulePublishToLive

public void schedulePublishToLive(PortletRequest portletRequest)
                           throws PortalException
Specified by:
schedulePublishToLive in interface Staging
Throws:
PortalException

schedulePublishToRemote

public void schedulePublishToRemote(PortletRequest portletRequest)
                             throws PortalException
Specified by:
schedulePublishToRemote in interface Staging
Throws:
PortalException

setRecentLayoutBranchId

public void setRecentLayoutBranchId(javax.servlet.http.HttpServletRequest request,
                                    long layoutSetBranchId,
                                    long plid,
                                    long layoutBranchId)
Specified by:
setRecentLayoutBranchId in interface Staging

setRecentLayoutBranchId

public void setRecentLayoutBranchId(User user,
                                    long layoutSetBranchId,
                                    long plid,
                                    long layoutBranchId)
Specified by:
setRecentLayoutBranchId in interface Staging

setRecentLayoutRevisionId

public void setRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
                                      long layoutSetBranchId,
                                      long plid,
                                      long layoutRevisionId)
Specified by:
setRecentLayoutRevisionId in interface Staging

setRecentLayoutRevisionId

public void setRecentLayoutRevisionId(User user,
                                      long layoutSetBranchId,
                                      long plid,
                                      long layoutRevisionId)
Specified by:
setRecentLayoutRevisionId in interface Staging

setRecentLayoutSetBranchId

public void setRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request,
                                       long layoutSetId,
                                       long layoutSetBranchId)
Specified by:
setRecentLayoutSetBranchId in interface Staging

setRecentLayoutSetBranchId

public void setRecentLayoutSetBranchId(User user,
                                       long layoutSetId,
                                       long layoutSetBranchId)
Specified by:
setRecentLayoutSetBranchId in interface Staging

stripProtocolFromRemoteAddress

public String stripProtocolFromRemoteAddress(String remoteAddress)
Specified by:
stripProtocolFromRemoteAddress in interface Staging

unlockGroup

@Deprecated
public void unlockGroup(long groupId)
Deprecated. As of 7.0.0, see BackgroundTaskExecutor.getIsolationLevel( )

Specified by:
unlockGroup in interface Staging

unscheduleCopyFromLive

public void unscheduleCopyFromLive(PortletRequest portletRequest)
                            throws PortalException
Specified by:
unscheduleCopyFromLive in interface Staging
Throws:
PortalException

unschedulePublishToLive

public void unschedulePublishToLive(PortletRequest portletRequest)
                             throws PortalException
Specified by:
unschedulePublishToLive in interface Staging
Throws:
PortalException

unschedulePublishToRemote

public void unschedulePublishToRemote(PortletRequest portletRequest)
                               throws PortalException
Specified by:
unschedulePublishToRemote in interface Staging
Throws:
PortalException

updateLastImportSettings

public void updateLastImportSettings(Element layoutElement,
                                     Layout layout,
                                     PortletDataContext portletDataContext)
Specified by:
updateLastImportSettings in interface Staging

updateLastPublishDate

@Deprecated
public void updateLastPublishDate(long groupId,
                                             boolean privateLayout,
                                             Date lastPublishDate)
                           throws PortalException
Deprecated. As of 7.0.0, replaced by ExportImportDateUtil.updateLastPublishDate(long, boolean, DateRange, Date)

Specified by:
updateLastPublishDate in interface Staging
Throws:
PortalException

updateLastPublishDate

@Deprecated
public void updateLastPublishDate(String portletId,
                                             PortletPreferences portletPreferences,
                                             Date lastPublishDate)
Deprecated. As of 7.0.0, replaced by ExportImportDateUtil.updateLastPublishDate(String, PortletPreferences, DateRange, Date)

Specified by:
updateLastPublishDate in interface Staging

updateStaging

public void updateStaging(PortletRequest portletRequest,
                          Group liveGroup)
                   throws PortalException
Specified by:
updateStaging in interface Staging
Throws:
PortalException

validateRemote

public void validateRemote(long groupId,
                           String remoteAddress,
                           int remotePort,
                           String remotePathContext,
                           boolean secureConnection,
                           long remoteGroupId)
                    throws PortalException
Specified by:
validateRemote in interface Staging
Throws:
PortalException

validateRemote

@Deprecated
public void validateRemote(String remoteAddress,
                                      int remotePort,
                                      String remotePathContext,
                                      boolean secureConnection,
                                      long remoteGroupId)
Deprecated. As of 7.0.0, replaced by validateRemote(long, String, int, String, boolean, long)

Specified by:
validateRemote in interface Staging

deleteRecentLayoutRevisionId

protected void deleteRecentLayoutRevisionId(PortalPreferences portalPreferences,
                                            long layoutSetBranchId,
                                            long plid)

doCopyRemoteLayouts

protected void doCopyRemoteLayouts(ExportImportConfiguration exportImportConfiguration,
                                   String remoteAddress,
                                   int remotePort,
                                   String remotePathContext,
                                   boolean secureConnection,
                                   boolean remotePrivateLayout)
                            throws PortalException
Throws:
PortalException

getBoolean

protected boolean getBoolean(PortletRequest portletRequest,
                             Group group,
                             String param)

getInteger

protected int getInteger(PortletRequest portletRequest,
                         Group group,
                         String param)

getLong

protected long getLong(PortletRequest portletRequest,
                       Group group,
                       String param)

getPortalPreferences

protected PortalPreferences getPortalPreferences(User user)

getRecentLayoutBranchId

protected long getRecentLayoutBranchId(PortalPreferences portalPreferences,
                                       long layoutSetBranchId,
                                       long plid)

getRecentLayoutBranchIdKey

protected String getRecentLayoutBranchIdKey(long layoutSetBranchId,
                                            long plid)

getRecentLayoutRevisionId

protected long getRecentLayoutRevisionId(PortalPreferences portalPreferences,
                                         long layoutSetBranchId,
                                         long plid)
                                  throws PortalException
Throws:
PortalException

getRecentLayoutRevisionIdKey

protected String getRecentLayoutRevisionIdKey(long layoutSetBranchId,
                                              long plid)

getRecentLayoutSetBranchIdKey

protected String getRecentLayoutSetBranchIdKey(long layoutSetId)

getStagingType

protected int getStagingType(PortletRequest portletRequest,
                             Group liveGroup)

getString

protected String getString(PortletRequest portletRequest,
                           Group group,
                           String param)

isCompanyGroup

protected boolean isCompanyGroup(HttpPrincipal httpPrincipal,
                                 Group group)

publishLayouts

protected void publishLayouts(PortletRequest portletRequest,
                              long sourceGroupId,
                              long targetGroupId,
                              Map<String,String[]> parameterMap,
                              boolean schedule)
                       throws PortalException
Throws:
PortalException

publishToRemote

protected void publishToRemote(PortletRequest portletRequest,
                               boolean schedule)
                        throws PortalException
Throws:
PortalException

setRecentLayoutBranchId

protected void setRecentLayoutBranchId(PortalPreferences portalPreferences,
                                       long layoutSetBranchId,
                                       long plid,
                                       long layoutBranchId)

setRecentLayoutRevisionId

protected void setRecentLayoutRevisionId(PortalPreferences portalPreferences,
                                         long layoutSetBranchId,
                                         long plid,
                                         long layoutRevisionId)

validateRemoteGroup

protected void validateRemoteGroup(long groupId,
                                   long remoteGroupId,
                                   String remoteAddress,
                                   int remotePort,
                                   String remotePathContext,
                                   boolean secureConnection)
                            throws PortalException
Throws:
PortalException

Liferay 7.0-ce-m6