Interface Staging
@ProviderType
public interface Staging
- Author:
- Raymond Augé
-
Method Summary
Modifier and TypeMethodDescription<T extends BaseModel>
voidaddModelToChangesetCollection
(T model) long
copyFromLive
(PortletRequest portletRequest) long
copyFromLive
(PortletRequest portletRequest, Portlet portlet) long
copyRemoteLayouts
(long exportImportConfigurationId) long
copyRemoteLayouts
(long sourceGroupId, boolean privateLayout, Map<Long, Boolean> layoutIdMap, String name, Map<String, String[]> parameterMap, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, boolean remotePrivateLayout) long
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) long
copyRemoteLayouts
(ExportImportConfiguration exportImportConfiguration) void
deleteLastImportSettings
(Group liveGroup, boolean privateLayout) void
deleteRecentLayoutRevisionId
(long userId, long layoutSetBranchId, long plid) void
deleteRecentLayoutRevisionId
(javax.servlet.http.HttpServletRequest httpServletRequest, long layoutSetBranchId, long plid) getErrorMessagesJSONArray
(Locale locale, Map<String, MissingReference> missingReferences) getExceptionMessagesJSONObject
(Locale locale, Exception exception, ExportImportConfiguration exportImportConfiguration) getLiveGroup
(long groupId) getLiveGroup
(Group group) long
getLiveGroupId
(long groupId) getPermissionStagingGroup
(Group group) long
getRecentLayoutRevisionId
(User user, long layoutSetBranchId, long plid) long
getRecentLayoutRevisionId
(javax.servlet.http.HttpServletRequest httpServletRequest, long layoutSetBranchId, long plid) long
getRecentLayoutSetBranchId
(User user, long layoutSetId) long
getRecentLayoutSetBranchId
(javax.servlet.http.HttpServletRequest httpServletRequest, long layoutSetId) getRemoteLayout
(long userId, long stagingGroupId, long plid) long
getRemoteLayoutPlid
(long userId, long stagingGroupId, long plid) getRemoteSiteURL
(Group stagingGroup, boolean privateLayout) getSchedulerGroupName
(String destinationName, long groupId) getStagedPortletId
(String portletId) long[]
getStagingAndLiveGroupIds
(long groupId) getStagingGroup
(long groupId) getWarningMessagesJSONArray
(Locale locale, Map<String, MissingReference> missingReferences) getWorkflowTask
(long userId, LayoutRevision layoutRevision) boolean
hasRemoteLayout
(long userId, long stagingGroupId, long plid) boolean
hasWorkflowTask
(long userId, LayoutRevision layoutRevision) boolean
isGroupAccessible
(long groupId, long fromGroupId) boolean
isGroupAccessible
(Group group, Group fromGroup) boolean
isIncomplete
(Layout layout) boolean
isIncomplete
(Layout layout, long layoutSetBranchId) boolean
isRemoteLayoutHasPortletId
(long userId, long stagingGroupId, long plid, String portletId) void
populateLastPublishDateCounts
(PortletDataContext portletDataContext, StagedModelType[] stagedModelTypes) void
populateLastPublishDateCounts
(PortletDataContext portletDataContext, String[] classNames) long
publishLayout
(long userId, long plid, long liveGroupId, boolean includeChildren) long
publishLayouts
(long userId, long exportImportConfigurationId) long
publishLayouts
(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, long[] layoutIds, String name, Map<String, String[]> parameterMap) long
publishLayouts
(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap) long
publishLayouts
(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, Map<String, String[]> parameterMap) long
publishLayouts
(long userId, ExportImportConfiguration exportImportConfiguration) long
publishPortlet
(long userId, long exportImportConfigurationId) long
publishPortlet
(long userId, long sourceGroupId, long targetGroupId, long sourcePlid, long targetPlid, String portletId, Map<String, String[]> parameterMap) long
publishPortlet
(long userId, ExportImportConfiguration exportImportConfiguration) long
publishToLive
(PortletRequest portletRequest) long
publishToLive
(PortletRequest portletRequest, Portlet portlet) long
publishToRemote
(PortletRequest portletRequest) <T extends BaseModel>
voidremoveModelFromChangesetCollection
(T model) void
scheduleCopyFromLive
(PortletRequest portletRequest) void
schedulePublishToLive
(PortletRequest portletRequest) void
schedulePublishToRemote
(PortletRequest portletRequest) void
setRecentLayoutBranchId
(User user, long layoutSetBranchId, long plid, long layoutBranchId) void
setRecentLayoutBranchId
(javax.servlet.http.HttpServletRequest httpServletRequest, long layoutSetBranchId, long plid, long layoutBranchId) void
setRecentLayoutRevisionId
(User user, long layoutSetBranchId, long plid, long layoutRevisionId) void
setRecentLayoutRevisionId
(javax.servlet.http.HttpServletRequest httpServletRequest, long layoutSetBranchId, long plid, long layoutRevisionId) void
setRecentLayoutSetBranchId
(User user, long layoutSetId, long layoutSetBranchId) void
setRecentLayoutSetBranchId
(javax.servlet.http.HttpServletRequest httpServletRequest, long layoutSetId, long layoutSetBranchId) void
setRemoteSiteURL
(Group stagingGroup, boolean overrideRemoteSiteURL, String remoteSiteURL) stripProtocolFromRemoteAddress
(String remoteAddress) void
transferFileToRemoteLive
(File file, long stagingRequestId, HttpPrincipal httpPrincipal) void
unscheduleCopyFromLive
(PortletRequest portletRequest) void
unschedulePublishToLive
(PortletRequest portletRequest) void
unschedulePublishToRemote
(PortletRequest portletRequest) void
updateLastImportSettings
(Element layoutElement, Layout layout, PortletDataContext portletDataContext) void
validateRemoteGroupIsSame
(long groupId, long remoteGroupId, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection)
-
Method Details
-
addModelToChangesetCollection
- Throws:
PortalException
-
copyFromLive
- Throws:
PortalException
-
copyFromLive
- Throws:
PortalException
-
copyRemoteLayouts
- Throws:
PortalException
-
copyRemoteLayouts
- Throws:
PortalException
-
copyRemoteLayouts
long copyRemoteLayouts(long sourceGroupId, boolean privateLayout, Map<Long, Boolean> layoutIdMap, Map<String, throws PortalExceptionString[]> parameterMap, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, boolean remotePrivateLayout) - Throws:
PortalException
-
copyRemoteLayouts
long copyRemoteLayouts(long sourceGroupId, boolean privateLayout, Map<Long, Boolean> layoutIdMap, String name, Map<String, throws PortalExceptionString[]> parameterMap, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, boolean remotePrivateLayout) - Throws:
PortalException
-
deleteLastImportSettings
- Throws:
PortalException
-
deleteRecentLayoutRevisionId
void deleteRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest httpServletRequest, long layoutSetBranchId, long plid) -
deleteRecentLayoutRevisionId
void deleteRecentLayoutRevisionId(long userId, long layoutSetBranchId, long plid) -
getErrorMessagesJSONArray
-
getExceptionMessagesJSONObject
JSONObject getExceptionMessagesJSONObject(Locale locale, Exception exception, ExportImportConfiguration exportImportConfiguration) -
getLiveGroup
-
getLiveGroup
-
getLiveGroupId
long getLiveGroupId(long groupId) -
getPermissionStagingGroup
-
getRecentLayoutRevisionId
long getRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest httpServletRequest, long layoutSetBranchId, long plid) throws PortalException - Throws:
PortalException
-
getRecentLayoutRevisionId
- Throws:
PortalException
-
getRecentLayoutSetBranchId
long getRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest httpServletRequest, long layoutSetId) -
getRecentLayoutSetBranchId
-
getRemoteLayout
- Throws:
PortalException
-
getRemoteLayoutPlid
- Throws:
PortalException
-
getRemoteSiteURL
- Throws:
PortalException
-
getSchedulerGroupName
-
getStagedPortletId
-
getStagingAndLiveGroupIds
- Throws:
PortalException
-
getStagingGroup
-
getWarningMessagesJSONArray
JSONArray getWarningMessagesJSONArray(Locale locale, Map<String, MissingReference> missingReferences) -
getWorkflowTask
- Throws:
PortalException
-
hasRemoteLayout
- Throws:
PortalException
-
hasWorkflowTask
- Throws:
PortalException
-
isGroupAccessible
-
isGroupAccessible
- Throws:
PortalException
-
isIncomplete
-
isIncomplete
-
isRemoteLayoutHasPortletId
-
populateLastPublishDateCounts
void populateLastPublishDateCounts(PortletDataContext portletDataContext, StagedModelType[] stagedModelTypes) throws PortalException - Throws:
PortalException
-
populateLastPublishDateCounts
void populateLastPublishDateCounts(PortletDataContext portletDataContext, String[] classNames) throws PortalException - Throws:
PortalException
-
publishLayout
long publishLayout(long userId, long plid, long liveGroupId, boolean includeChildren) throws PortalException - Throws:
PortalException
-
publishLayouts
long publishLayouts(long userId, ExportImportConfiguration exportImportConfiguration) throws PortalException - Throws:
PortalException
-
publishLayouts
- Throws:
PortalException
-
publishLayouts
long publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap) throws PortalException- Throws:
PortalException
-
publishLayouts
long publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, long[] layoutIds, String name, Map<String, String[]> parameterMap) throws PortalException- Throws:
PortalException
-
publishLayouts
long publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, Map<String, String[]> parameterMap) throws PortalException- Throws:
PortalException
-
publishPortlet
long publishPortlet(long userId, ExportImportConfiguration exportImportConfiguration) throws PortalException - Throws:
PortalException
-
publishPortlet
- Throws:
PortalException
-
publishPortlet
long publishPortlet(long userId, long sourceGroupId, long targetGroupId, long sourcePlid, long targetPlid, String portletId, Map<String, String[]> parameterMap) throws PortalException- Throws:
PortalException
-
publishToLive
- Throws:
PortalException
-
publishToLive
- Throws:
PortalException
-
publishToRemote
- Throws:
PortalException
-
removeModelFromChangesetCollection
- Throws:
PortalException
-
scheduleCopyFromLive
- Throws:
PortalException
-
schedulePublishToLive
- Throws:
PortalException
-
schedulePublishToRemote
- Throws:
PortalException
-
setRecentLayoutBranchId
void setRecentLayoutBranchId(javax.servlet.http.HttpServletRequest httpServletRequest, long layoutSetBranchId, long plid, long layoutBranchId) throws PortalException - Throws:
PortalException
-
setRecentLayoutBranchId
void setRecentLayoutBranchId(User user, long layoutSetBranchId, long plid, long layoutBranchId) throws PortalException - Throws:
PortalException
-
setRecentLayoutRevisionId
void setRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest httpServletRequest, long layoutSetBranchId, long plid, long layoutRevisionId) throws PortalException - Throws:
PortalException
-
setRecentLayoutRevisionId
void setRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid, long layoutRevisionId) throws PortalException - Throws:
PortalException
-
setRecentLayoutSetBranchId
void setRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest httpServletRequest, long layoutSetId, long layoutSetBranchId) throws PortalException - Throws:
PortalException
-
setRecentLayoutSetBranchId
void setRecentLayoutSetBranchId(User user, long layoutSetId, long layoutSetBranchId) throws PortalException - Throws:
PortalException
-
setRemoteSiteURL
void setRemoteSiteURL(Group stagingGroup, boolean overrideRemoteSiteURL, String remoteSiteURL) throws PortalException - Throws:
PortalException
-
stripProtocolFromRemoteAddress
-
transferFileToRemoteLive
void transferFileToRemoteLive(File file, long stagingRequestId, HttpPrincipal httpPrincipal) throws Exception - Throws:
Exception
-
unscheduleCopyFromLive
- Throws:
PortalException
-
unschedulePublishToLive
- Throws:
PortalException
-
unschedulePublishToRemote
- Throws:
PortalException
-
updateLastImportSettings
void updateLastImportSettings(Element layoutElement, Layout layout, PortletDataContext portletDataContext) throws PortalException - Throws:
PortalException
-
validateRemoteGroupIsSame
void validateRemoteGroupIsSame(long groupId, long remoteGroupId, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection) throws PortalException - Throws:
PortalException
-