Liferay 6.2-ce-ga5

com.liferay.portal.staging
Class StagingImpl

java.lang.Object
  extended by com.liferay.portal.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 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)
           
 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)
           
 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)
 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)
           
 Date getLastPublishDate(LayoutSet layoutSet)
           
 Date getLastPublishDate(PortletPreferences jxPortletPreferences)
           
 Group getLiveGroup(long groupId)
           
 long getLiveGroupId(long groupId)
           
protected  long getLong(PortletRequest portletRequest, Group group, String param)
           
 List<Layout> getMissingParentLayouts(Layout layout, long liveGroupId)
           
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)
           
 Map<String,String[]> getStagingParameters()
           
 Map<String,String[]> getStagingParameters(PortletRequest 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)
           
 boolean isIncomplete(Layout layout, long layoutSetBranchId)
           
protected static boolean isValidDateRange(DateRange dateRange, Date originalLastPublishDate)
           
 void lockGroup(long userId, long groupId)
           
 void publishLayout(long userId, long plid, long liveGroupId, boolean includeChildren)
           
 void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
 void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, Map<Long,Boolean> layoutIdMap, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
 void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
protected  void publishLayouts(PortletRequest portletRequest, long sourceGroupId, long targetGroupId, Map<String,String[]> parameterMap, boolean schedule)
           
 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)
           
protected  String stripProtocolFromRemoteAddress(String remoteAddress)
           
 void unlockGroup(long groupId)
           
 void unscheduleCopyFromLive(PortletRequest portletRequest)
           
 void unschedulePublishToLive(PortletRequest portletRequest)
           
 void unschedulePublishToRemote(PortletRequest portletRequest)
           
protected  void updateGroupTypeSettingsProperties(Group group, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId)
           
 void updateLastImportSettings(Element layoutElement, Layout layout, PortletDataContext portletDataContext)
           
 void updateLastPublishDate(long groupId, boolean privateLayout, Date lastPublishDate)
           
 void updateLastPublishDate(long groupId, boolean privateLayout, DateRange dateRange, Date lastPublishDate)
           
 void updateLastPublishDate(String portletId, PortletPreferences portletPreferences, Date lastPublishDate)
           
 void updateLastPublishDate(String portletId, PortletPreferences portletPreferences, DateRange dateRange, Date lastPublishDate)
           
 void updateStaging(PortletRequest portletRequest, Group liveGroup)
           
 void validateRemote(String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId)
           
 
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,
                                          SystemException
Deprecated. As of 7.0.0, replaced by checkDefaultLayoutSetBranches(long, Group, boolean, boolean, boolean, ServiceContext))

Specified by:
checkDefaultLayoutSetBranches in interface Staging
Throws:
PortalException
SystemException

copyFromLive

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

copyFromLive

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

copyPortlet

public void copyPortlet(PortletRequest portletRequest,
                        long sourceGroupId,
                        long targetGroupId,
                        long sourcePlid,
                        long targetPlid,
                        String portletId)
                 throws Exception
Specified by:
copyPortlet in interface Staging
Throws:
Exception

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,
                              Date startDate,
                              Date endDate)
                       throws Exception
Specified by:
copyRemoteLayouts in interface Staging
Throws:
Exception

deleteLastImportSettings

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

deleteRecentLayoutRevisionId

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

deleteRecentLayoutRevisionId

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

deleteRecentLayoutRevisionId

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

Specified by:
deleteRecentLayoutRevisionId in interface Staging
Throws:
SystemException

disableStaging

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

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

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

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

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

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

getLastPublishDate

public Date getLastPublishDate(LayoutSet layoutSet)
                        throws PortalException
Specified by:
getLastPublishDate in interface Staging
Throws:
PortalException

getLastPublishDate

public Date getLastPublishDate(PortletPreferences jxPortletPreferences)
Specified by:
getLastPublishDate in interface Staging

getLiveGroup

public Group getLiveGroup(long groupId)
                   throws PortalException,
                          SystemException
Specified by:
getLiveGroup in interface Staging
Throws:
PortalException
SystemException

getLiveGroupId

public long getLiveGroupId(long groupId)
                    throws PortalException,
                           SystemException
Specified by:
getLiveGroupId in interface Staging
Throws:
PortalException
SystemException

getMissingParentLayouts

public List<Layout> getMissingParentLayouts(Layout layout,
                                            long liveGroupId)
                                     throws PortalException,
                                            SystemException
Specified by:
getMissingParentLayouts in interface Staging
Throws:
PortalException
SystemException
See Also:
LayoutRemoteStagingBackgroundTaskExecutor.getMissingRemoteParentLayouts( HttpPrincipal, Layout, long)

getRecentLayoutRevisionId

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

getRecentLayoutRevisionId

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

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)
                                throws SystemException
Specified by:
getRecentLayoutSetBranchId in interface Staging
Throws:
SystemException

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

getStagingParameters

public Map<String,String[]> getStagingParameters()
Specified by:
getStagingParameters in interface Staging

getStagingParameters

public Map<String,String[]> getStagingParameters(PortletRequest 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,
                                    SystemException
Specified by:
getWorkflowTask in interface Staging
Throws:
PortalException
SystemException

hasWorkflowTask

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

isIncomplete

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

lockGroup

public void lockGroup(long userId,
                      long groupId)
               throws Exception
Specified by:
lockGroup in interface Staging
Throws:
Exception

publishLayout

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

publishLayouts

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

publishLayouts

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,
                           SystemException
Specified by:
publishLayouts in interface Staging
Throws:
PortalException
SystemException

publishLayouts

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

publishToLive

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

publishToLive

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

publishToRemote

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

scheduleCopyFromLive

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

schedulePublishToLive

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

schedulePublishToRemote

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

setRecentLayoutBranchId

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

setRecentLayoutBranchId

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

setRecentLayoutRevisionId

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

setRecentLayoutRevisionId

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

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)
                                throws SystemException
Specified by:
setRecentLayoutSetBranchId in interface Staging
Throws:
SystemException

unlockGroup

public void unlockGroup(long groupId)
                 throws SystemException
Specified by:
unlockGroup in interface Staging
Throws:
SystemException

unscheduleCopyFromLive

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

unschedulePublishToLive

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

unschedulePublishToRemote

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

updateLastImportSettings

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

updateLastPublishDate

public void updateLastPublishDate(long groupId,
                                  boolean privateLayout,
                                  Date lastPublishDate)
                           throws Exception
Specified by:
updateLastPublishDate in interface Staging
Throws:
Exception

updateLastPublishDate

public void updateLastPublishDate(long groupId,
                                  boolean privateLayout,
                                  DateRange dateRange,
                                  Date lastPublishDate)
                           throws Exception
Specified by:
updateLastPublishDate in interface Staging
Throws:
Exception

updateLastPublishDate

public void updateLastPublishDate(String portletId,
                                  PortletPreferences portletPreferences,
                                  Date lastPublishDate)
                           throws Exception
Specified by:
updateLastPublishDate in interface Staging
Throws:
Exception

updateLastPublishDate

public void updateLastPublishDate(String portletId,
                                  PortletPreferences portletPreferences,
                                  DateRange dateRange,
                                  Date lastPublishDate)
Specified by:
updateLastPublishDate in interface Staging

updateStaging

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

validateRemote

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

deleteRecentLayoutRevisionId

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

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)
                                          throws SystemException
Throws:
SystemException

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,
                                         SystemException
Throws:
PortalException
SystemException

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)

isValidDateRange

protected static boolean isValidDateRange(DateRange dateRange,
                                          Date originalLastPublishDate)

publishLayouts

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

publishToRemote

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

setRecentLayoutBranchId

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

setRecentLayoutRevisionId

protected void setRecentLayoutRevisionId(PortalPreferences portalPreferences,
                                         long layoutSetBranchId,
                                         long plid,
                                         long layoutRevisionId)
                                  throws SystemException
Throws:
SystemException

stripProtocolFromRemoteAddress

protected String stripProtocolFromRemoteAddress(String remoteAddress)

updateGroupTypeSettingsProperties

protected void updateGroupTypeSettingsProperties(Group group,
                                                 String remoteAddress,
                                                 int remotePort,
                                                 String remotePathContext,
                                                 boolean secureConnection,
                                                 long remoteGroupId)
                                          throws Exception
Throws:
Exception

Liferay 6.2-ce-ga5