com.liferay.portal.staging
Class StagingImpl
java.lang.Object
com.liferay.portal.staging.StagingImpl
- All Implemented Interfaces:
- Staging
public class StagingImpl
- extends Object
- implements Staging
Method Summary |
protected void |
addWeeklyDayPos(PortletRequest portletRequest,
List<DayAndPosition> list,
int day)
|
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[]> exportParameterMap,
String remoteAddress,
int remotePort,
boolean secureConnection,
long remoteGroupId,
boolean remotePrivateLayout,
Map<String,String[]> importParameterMap,
Date startDate,
Date endDate)
|
protected void |
disableStaging(PortletRequest portletRequest,
long liveGroupId)
|
protected void |
enableLocalStaging(PortletRequest portletRequest,
long liveGroupId)
|
protected void |
enableRemoteStaging(PortletRequest portletRequest,
long liveGroupId)
|
protected String |
getCronText(PortletRequest portletRequest,
Calendar startDate,
boolean timeZoneSensitive,
int recurrenceType)
|
protected Calendar |
getDate(PortletRequest portletRequest,
String paramPrefix,
boolean timeZoneSensitive)
|
List<Layout> |
getMissingParents(Layout layout,
long liveGroupId)
|
String |
getSchedulerGroupName(String destinationName,
long groupId)
|
Map<String,String[]> |
getStagingParameters()
|
Map<String,String[]> |
getStagingParameters(PortletRequest portletRequest)
|
protected String |
getWorkflowRoleNames(PortletRequest portletRequest)
|
void |
publishLayout(long plid,
long liveGroupId,
boolean includeChildren)
|
void |
publishLayouts(long sourceGroupId,
long targetGroupId,
boolean privateLayout,
long[] layoutIds,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
|
void |
publishLayouts(long sourceGroupId,
long targetGroupId,
boolean privateLayout,
Map<Long,Boolean> layoutIdMap,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
|
void |
publishLayouts(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)
|
protected void |
setCommonStagingOptions(PortletRequest portletRequest,
Group liveGroup,
UnicodeProperties typeSettingsProperties)
|
void |
unscheduleCopyFromLive(PortletRequest portletRequest)
|
void |
unschedulePublishToLive(PortletRequest portletRequest)
|
void |
unschedulePublishToRemote(PortletRequest portletRequest)
|
void |
updateStaging(PortletRequest portletRequest)
|
protected void |
validate(String remoteAddress,
long remoteGroupId,
int remotePort,
boolean secureConnection)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StagingImpl
public StagingImpl()
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[]> exportParameterMap,
String remoteAddress,
int remotePort,
boolean secureConnection,
long remoteGroupId,
boolean remotePrivateLayout,
Map<String,String[]> importParameterMap,
Date startDate,
Date endDate)
throws Exception
- Specified by:
copyRemoteLayouts
in interface Staging
- Throws:
Exception
getMissingParents
public List<Layout> getMissingParents(Layout layout,
long liveGroupId)
throws PortalException,
SystemException
- Specified by:
getMissingParents
in interface Staging
- Throws:
PortalException
SystemException
getSchedulerGroupName
public String getSchedulerGroupName(String destinationName,
long groupId)
- Specified by:
getSchedulerGroupName
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
publishLayout
public void publishLayout(long plid,
long liveGroupId,
boolean includeChildren)
throws Exception
- Specified by:
publishLayout
in interface Staging
- Throws:
Exception
publishLayouts
public void publishLayouts(long sourceGroupId,
long targetGroupId,
boolean privateLayout,
long[] layoutIds,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
throws Exception
- Specified by:
publishLayouts
in interface Staging
- Throws:
Exception
publishLayouts
public void publishLayouts(long sourceGroupId,
long targetGroupId,
boolean privateLayout,
Map<Long,Boolean> layoutIdMap,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
throws Exception
- Specified by:
publishLayouts
in interface Staging
- Throws:
Exception
publishLayouts
public void publishLayouts(long sourceGroupId,
long targetGroupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
throws Exception
- Specified by:
publishLayouts
in interface Staging
- Throws:
Exception
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
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
updateStaging
public void updateStaging(PortletRequest portletRequest)
throws Exception
- Specified by:
updateStaging
in interface Staging
- Throws:
Exception
addWeeklyDayPos
protected void addWeeklyDayPos(PortletRequest portletRequest,
List<DayAndPosition> list,
int day)
disableStaging
protected void disableStaging(PortletRequest portletRequest,
long liveGroupId)
throws Exception
- Throws:
Exception
enableLocalStaging
protected void enableLocalStaging(PortletRequest portletRequest,
long liveGroupId)
throws Exception
- Throws:
Exception
enableRemoteStaging
protected void enableRemoteStaging(PortletRequest portletRequest,
long liveGroupId)
throws Exception
- Throws:
Exception
getCronText
protected String getCronText(PortletRequest portletRequest,
Calendar startDate,
boolean timeZoneSensitive,
int recurrenceType)
throws Exception
- Throws:
Exception
getDate
protected Calendar getDate(PortletRequest portletRequest,
String paramPrefix,
boolean timeZoneSensitive)
throws Exception
- Throws:
Exception
getWorkflowRoleNames
protected String getWorkflowRoleNames(PortletRequest portletRequest)
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
setCommonStagingOptions
protected void setCommonStagingOptions(PortletRequest portletRequest,
Group liveGroup,
UnicodeProperties typeSettingsProperties)
throws Exception
- Throws:
Exception
validate
protected void validate(String remoteAddress,
long remoteGroupId,
int remotePort,
boolean secureConnection)
throws Exception
- Throws:
Exception