|
Liferay 6.2-ce-ga4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.staging.StagingImpl
public class StagingImpl
| 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)
|
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. 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 |
|---|
public StagingImpl()
| Method Detail |
|---|
public String buildRemoteURL(String remoteAddress,
int remotePort,
String remotePathContext,
boolean secureConnection,
long remoteGroupId,
boolean privateLayout)
buildRemoteURL in interface Stagingpublic String buildRemoteURL(UnicodeProperties typeSettingsProperties)
buildRemoteURL in interface Staging
@Deprecated
public void checkDefaultLayoutSetBranches(long userId,
Group liveGroup,
boolean branchingPublic,
boolean branchingPrivate,
boolean remote,
ServiceContext serviceContext)
throws PortalException,
SystemException
checkDefaultLayoutSetBranches(long, Group, boolean, boolean,
boolean, ServiceContext))
checkDefaultLayoutSetBranches in interface StagingPortalException
SystemException
public void copyFromLive(PortletRequest portletRequest)
throws Exception
copyFromLive in interface StagingException
public void copyFromLive(PortletRequest portletRequest,
Portlet portlet)
throws Exception
copyFromLive in interface StagingException
public void copyPortlet(PortletRequest portletRequest,
long sourceGroupId,
long targetGroupId,
long sourcePlid,
long targetPlid,
String portletId)
throws Exception
copyPortlet in interface StagingException
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
copyRemoteLayouts in interface StagingException
public void deleteLastImportSettings(Group liveGroup,
boolean privateLayout)
throws PortalException,
SystemException
deleteLastImportSettings in interface StagingPortalException
SystemException
public void deleteRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
long layoutSetBranchId,
long plid)
throws SystemException
deleteRecentLayoutRevisionId in interface StagingSystemException
public void deleteRecentLayoutRevisionId(User user,
long layoutSetBranchId,
long plid)
throws SystemException
deleteRecentLayoutRevisionId in interface StagingSystemException
public void disableStaging(Group scopeGroup,
Group liveGroup,
ServiceContext serviceContext)
throws Exception
StagingLocalService.disableStaging(
Group, ServiceContext)
disableStaging in interface StagingException
public void disableStaging(Group liveGroup,
ServiceContext serviceContext)
throws Exception
StagingLocalService.disableStaging(
Group, ServiceContext)
disableStaging in interface StagingException
public void disableStaging(PortletRequest portletRequest,
Group scopeGroup,
Group liveGroup,
ServiceContext serviceContext)
throws Exception
StagingLocalService.disableStaging(
PortletRequest, Group, ServiceContext)
disableStaging in interface StagingException
public void disableStaging(PortletRequest portletRequest,
Group liveGroup,
ServiceContext serviceContext)
throws Exception
StagingLocalService.disableStaging(
PortletRequest, Group, ServiceContext)
disableStaging in interface StagingException
public void enableLocalStaging(long userId,
Group scopeGroup,
Group liveGroup,
boolean branchingPublic,
boolean branchingPrivate,
ServiceContext serviceContext)
throws Exception
StagingLocalService.enableLocalStaging(
long, Group, boolean, boolean, ServiceContext)
enableLocalStaging in interface StagingException
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
StagingLocalService.enableRemoteStaging(
long, Group, boolean, boolean, String, int, String, boolean,
long, ServiceContext)
enableRemoteStaging in interface StagingException
public JSONArray getErrorMessagesJSONArray(Locale locale,
Map<String,MissingReference> missingReferences,
Map<String,Serializable> contextMap)
getErrorMessagesJSONArray in interface Staging
public JSONObject getExceptionMessagesJSONObject(Locale locale,
Exception e,
Map<String,Serializable> contextMap)
getExceptionMessagesJSONObject in interface Staging
public Date getLastPublishDate(LayoutSet layoutSet)
throws PortalException
getLastPublishDate in interface StagingPortalExceptionpublic Date getLastPublishDate(PortletPreferences jxPortletPreferences)
getLastPublishDate in interface Staging
public Group getLiveGroup(long groupId)
throws PortalException,
SystemException
getLiveGroup in interface StagingPortalException
SystemException
public long getLiveGroupId(long groupId)
throws PortalException,
SystemException
getLiveGroupId in interface StagingPortalException
SystemException
public List<Layout> getMissingParentLayouts(Layout layout,
long liveGroupId)
throws PortalException,
SystemException
getMissingParentLayouts in interface StagingPortalException
SystemExceptionLayoutRemoteStagingBackgroundTaskExecutor.getMissingRemoteParentLayouts(
HttpPrincipal, Layout, long)
public long getRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
long layoutSetBranchId,
long plid)
throws PortalException,
SystemException
getRecentLayoutRevisionId in interface StagingPortalException
SystemException
public long getRecentLayoutRevisionId(User user,
long layoutSetBranchId,
long plid)
throws PortalException,
SystemException
getRecentLayoutRevisionId in interface StagingPortalException
SystemException
public long getRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request,
long layoutSetId)
getRecentLayoutSetBranchId in interface Staging
public long getRecentLayoutSetBranchId(User user,
long layoutSetId)
throws SystemException
getRecentLayoutSetBranchId in interface StagingSystemException
public String getSchedulerGroupName(String destinationName,
long groupId)
getSchedulerGroupName in interface Stagingpublic String getStagedPortletId(String portletId)
getStagedPortletId in interface Stagingpublic Map<String,String[]> getStagingParameters()
getStagingParameters in interface Stagingpublic Map<String,String[]> getStagingParameters(PortletRequest portletRequest)
getStagingParameters in interface Staging
public JSONArray getWarningMessagesJSONArray(Locale locale,
Map<String,MissingReference> missingReferences,
Map<String,Serializable> contextMap)
getWarningMessagesJSONArray in interface Staging
public WorkflowTask getWorkflowTask(long userId,
LayoutRevision layoutRevision)
throws PortalException,
SystemException
getWorkflowTask in interface StagingPortalException
SystemException
public boolean hasWorkflowTask(long userId,
LayoutRevision layoutRevision)
throws PortalException,
SystemException
hasWorkflowTask in interface StagingPortalException
SystemException
public boolean isIncomplete(Layout layout,
long layoutSetBranchId)
isIncomplete in interface Staging
public void lockGroup(long userId,
long groupId)
throws Exception
lockGroup in interface StagingException
public void publishLayout(long userId,
long plid,
long liveGroupId,
boolean includeChildren)
throws Exception
publishLayout in interface StagingException
public void publishLayouts(long userId,
long sourceGroupId,
long targetGroupId,
boolean privateLayout,
long[] layoutIds,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
throws PortalException,
SystemException
publishLayouts in interface StagingPortalException
SystemException
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
publishLayouts in interface StagingPortalException
SystemException
public void publishLayouts(long userId,
long sourceGroupId,
long targetGroupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
throws PortalException,
SystemException
publishLayouts in interface StagingPortalException
SystemException
public void publishToLive(PortletRequest portletRequest)
throws Exception
publishToLive in interface StagingException
public void publishToLive(PortletRequest portletRequest,
Portlet portlet)
throws Exception
publishToLive in interface StagingException
public void publishToRemote(PortletRequest portletRequest)
throws Exception
publishToRemote in interface StagingException
public void scheduleCopyFromLive(PortletRequest portletRequest)
throws Exception
scheduleCopyFromLive in interface StagingException
public void schedulePublishToLive(PortletRequest portletRequest)
throws Exception
schedulePublishToLive in interface StagingException
public void schedulePublishToRemote(PortletRequest portletRequest)
throws Exception
schedulePublishToRemote in interface StagingException
public void setRecentLayoutBranchId(javax.servlet.http.HttpServletRequest request,
long layoutSetBranchId,
long plid,
long layoutBranchId)
throws SystemException
setRecentLayoutBranchId in interface StagingSystemException
public void setRecentLayoutBranchId(User user,
long layoutSetBranchId,
long plid,
long layoutBranchId)
throws SystemException
setRecentLayoutBranchId in interface StagingSystemException
public void setRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
long layoutSetBranchId,
long plid,
long layoutRevisionId)
throws SystemException
setRecentLayoutRevisionId in interface StagingSystemException
public void setRecentLayoutRevisionId(User user,
long layoutSetBranchId,
long plid,
long layoutRevisionId)
throws SystemException
setRecentLayoutRevisionId in interface StagingSystemException
public void setRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request,
long layoutSetId,
long layoutSetBranchId)
setRecentLayoutSetBranchId in interface Staging
public void setRecentLayoutSetBranchId(User user,
long layoutSetId,
long layoutSetBranchId)
throws SystemException
setRecentLayoutSetBranchId in interface StagingSystemException
public void unlockGroup(long groupId)
throws SystemException
unlockGroup in interface StagingSystemException
public void unscheduleCopyFromLive(PortletRequest portletRequest)
throws Exception
unscheduleCopyFromLive in interface StagingException
public void unschedulePublishToLive(PortletRequest portletRequest)
throws Exception
unschedulePublishToLive in interface StagingException
public void unschedulePublishToRemote(PortletRequest portletRequest)
throws Exception
unschedulePublishToRemote in interface StagingException
public void updateLastImportSettings(Element layoutElement,
Layout layout,
PortletDataContext portletDataContext)
throws Exception
updateLastImportSettings in interface StagingException
public void updateLastPublishDate(long groupId,
boolean privateLayout,
Date lastPublishDate)
throws Exception
updateLastPublishDate in interface StagingException
public void updateLastPublishDate(long groupId,
boolean privateLayout,
DateRange dateRange,
Date lastPublishDate)
throws Exception
updateLastPublishDate in interface StagingException
public void updateLastPublishDate(String portletId,
PortletPreferences portletPreferences,
Date lastPublishDate)
throws Exception
updateLastPublishDate in interface StagingException
public void updateLastPublishDate(String portletId,
PortletPreferences portletPreferences,
DateRange dateRange,
Date lastPublishDate)
updateLastPublishDate in interface Staging
public void updateStaging(PortletRequest portletRequest,
Group liveGroup)
throws Exception
updateStaging in interface StagingException
public void validateRemote(String remoteAddress,
int remotePort,
String remotePathContext,
boolean secureConnection,
long remoteGroupId)
throws PortalException
validateRemote in interface StagingPortalException
protected void deleteRecentLayoutRevisionId(PortalPreferences portalPreferences,
long layoutSetBranchId,
long plid)
protected boolean getBoolean(PortletRequest portletRequest,
Group group,
String param)
protected int getInteger(PortletRequest portletRequest,
Group group,
String param)
protected long getLong(PortletRequest portletRequest,
Group group,
String param)
protected PortalPreferences getPortalPreferences(User user)
throws SystemException
SystemException
protected long getRecentLayoutBranchId(PortalPreferences portalPreferences,
long layoutSetBranchId,
long plid)
protected String getRecentLayoutBranchIdKey(long layoutSetBranchId,
long plid)
protected long getRecentLayoutRevisionId(PortalPreferences portalPreferences,
long layoutSetBranchId,
long plid)
throws PortalException,
SystemException
PortalException
SystemException
protected String getRecentLayoutRevisionIdKey(long layoutSetBranchId,
long plid)
protected String getRecentLayoutSetBranchIdKey(long layoutSetId)
protected int getStagingType(PortletRequest portletRequest,
Group liveGroup)
protected String getString(PortletRequest portletRequest,
Group group,
String param)
protected static boolean isValidDateRange(DateRange dateRange,
Date originalLastPublishDate)
protected void publishLayouts(PortletRequest portletRequest,
long sourceGroupId,
long targetGroupId,
Map<String,String[]> parameterMap,
boolean schedule)
throws Exception
Exception
protected void publishToRemote(PortletRequest portletRequest,
boolean schedule)
throws Exception
Exception
protected void setRecentLayoutBranchId(PortalPreferences portalPreferences,
long layoutSetBranchId,
long plid,
long layoutBranchId)
protected void setRecentLayoutRevisionId(PortalPreferences portalPreferences,
long layoutSetBranchId,
long plid,
long layoutRevisionId)
throws SystemException
SystemExceptionprotected String stripProtocolFromRemoteAddress(String remoteAddress)
protected void updateGroupTypeSettingsProperties(Group group,
String remoteAddress,
int remotePort,
String remotePathContext,
boolean secureConnection,
long remoteGroupId)
throws Exception
Exception
|
Liferay 6.2-ce-ga4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||