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 |
addDefaultLayoutSetBranch(long userId,
long groupId,
String groupName,
boolean privateLayout,
ServiceContext serviceContext)
|
String |
buildRemoteURL(String remoteAddress,
int remotePort,
String remotePathContext,
boolean secureConnection,
long remoteGroupId,
boolean privateLayout)
|
protected void |
checkDefaultLayoutSetBranches(long userId,
Group liveGroup,
boolean branchingPublic,
boolean branchingPrivate,
boolean remote,
ServiceContext 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)
|
protected void |
deleteRecentLayoutRevisionId(PortalPreferences portalPreferences,
long layoutSetBranchId,
long plid)
|
void |
deleteRecentLayoutRevisionId(User user,
long layoutSetBranchId,
long plid)
|
void |
disableStaging(Group scopeGroup,
Group liveGroup,
ServiceContext serviceContext)
Deprecated. |
void |
disableStaging(Group liveGroup,
ServiceContext serviceContext)
|
void |
disableStaging(PortletRequest portletRequest,
Group scopeGroup,
Group liveGroup,
ServiceContext serviceContext)
Deprecated. |
void |
disableStaging(PortletRequest portletRequest,
Group liveGroup,
ServiceContext serviceContext)
|
void |
enableLocalStaging(long userId,
Group scopeGroup,
Group liveGroup,
boolean branchingPublic,
boolean branchingPrivate,
ServiceContext 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)
|
protected boolean |
getBoolean(PortletRequest portletRequest,
Group group,
String param)
|
protected Calendar |
getDate(PortletRequest portletRequest,
String paramPrefix,
boolean timeZoneSensitive)
|
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)
|
protected List<Layout> |
getMissingRemoteParentLayouts(HttpPrincipal httpPrincipal,
Layout layout,
long remoteGroupId)
|
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)
|
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)
|
WorkflowTask |
getWorkflowTask(long userId,
LayoutRevision layoutRevision)
|
boolean |
hasWorkflowTask(long userId,
LayoutRevision layoutRevision)
|
boolean |
isIncomplete(Layout layout,
long layoutSetBranchId)
|
protected 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)
|
protected void |
setCommonStagingOptions(Group liveGroup,
UnicodeProperties typeSettingsProperties,
ServiceContext serviceContext)
|
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)
|
protected 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 |
updateStaging(PortletRequest portletRequest,
Group liveGroup)
|
protected void |
validate(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 |
StagingImpl
public StagingImpl()
buildRemoteURL
public String buildRemoteURL(String remoteAddress,
int remotePort,
String remotePathContext,
boolean secureConnection,
long remoteGroupId,
boolean privateLayout)
- Specified by:
buildRemoteURL
in interface Staging
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 Exception
- Specified by:
deleteLastImportSettings
in interface Staging
- Throws:
Exception
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(User user,
long layoutSetBranchId,
long plid)
throws SystemException
- Specified by:
deleteRecentLayoutRevisionId
in interface Staging
- Throws:
SystemException
disableStaging
@Deprecated
public void disableStaging(Group scopeGroup,
Group liveGroup,
ServiceContext serviceContext)
throws Exception
- Deprecated.
- Specified by:
disableStaging
in interface Staging
- Throws:
Exception
disableStaging
public void disableStaging(Group liveGroup,
ServiceContext serviceContext)
throws Exception
- Specified by:
disableStaging
in interface Staging
- Throws:
Exception
disableStaging
@Deprecated
public void disableStaging(PortletRequest portletRequest,
Group scopeGroup,
Group liveGroup,
ServiceContext serviceContext)
throws Exception
- Deprecated.
- Specified by:
disableStaging
in interface Staging
- Throws:
Exception
disableStaging
public void disableStaging(PortletRequest portletRequest,
Group liveGroup,
ServiceContext serviceContext)
throws Exception
- 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
- 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
- Specified by:
enableRemoteStaging
in interface Staging
- Throws:
Exception
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 Exception
- Specified by:
getMissingParentLayouts
in interface Staging
- Throws:
Exception
- See Also:
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
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
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
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 Exception
- Specified by:
publishLayouts
in interface Staging
- Throws:
Exception
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 Exception
- Specified by:
publishLayouts
in interface Staging
- Throws:
Exception
publishLayouts
public void publishLayouts(long userId,
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
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
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
updateStaging
public void updateStaging(PortletRequest portletRequest,
Group liveGroup)
throws Exception
- Specified by:
updateStaging
in interface Staging
- Throws:
Exception
addDefaultLayoutSetBranch
protected void addDefaultLayoutSetBranch(long userId,
long groupId,
String groupName,
boolean privateLayout,
ServiceContext serviceContext)
throws SystemException
- Throws:
SystemException
checkDefaultLayoutSetBranches
protected void checkDefaultLayoutSetBranches(long userId,
Group liveGroup,
boolean branchingPublic,
boolean branchingPrivate,
boolean remote,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
deleteRecentLayoutRevisionId
protected void deleteRecentLayoutRevisionId(PortalPreferences portalPreferences,
long layoutSetBranchId,
long plid)
getBoolean
protected boolean getBoolean(PortletRequest portletRequest,
Group group,
String param)
getDate
protected Calendar getDate(PortletRequest portletRequest,
String paramPrefix,
boolean timeZoneSensitive)
throws Exception
- Throws:
Exception
getInteger
protected int getInteger(PortletRequest portletRequest,
Group group,
String param)
getLong
protected long getLong(PortletRequest portletRequest,
Group group,
String param)
getMissingRemoteParentLayouts
protected List<Layout> getMissingRemoteParentLayouts(HttpPrincipal httpPrincipal,
Layout layout,
long remoteGroupId)
throws Exception
- Throws:
Exception
- See Also:
getMissingParentLayouts(Layout, long)
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)
lockGroup
protected void lockGroup(long userId,
long groupId)
throws Exception
- Throws:
Exception
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(Group liveGroup,
UnicodeProperties typeSettingsProperties,
ServiceContext serviceContext)
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)
unlockGroup
protected void unlockGroup(long groupId)
throws SystemException
- Throws:
SystemException
updateGroupTypeSettingsProperties
protected void updateGroupTypeSettingsProperties(Group group,
String remoteAddress,
int remotePort,
String remotePathContext,
boolean secureConnection,
long remoteGroupId)
throws Exception
- Throws:
Exception
validate
protected void validate(String remoteAddress,
int remotePort,
String remotePathContext,
boolean secureConnection,
long remoteGroupId)
throws Exception
- Throws:
Exception