|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.kernel.staging.StagingUtil
public class StagingUtil
Constructor Summary | |
---|---|
StagingUtil()
|
Method Summary | |
---|---|
static String |
buildRemoteURL(String remoteAddress,
int remotePort,
String remotePathContext,
boolean secureConnection,
long remoteGroupId,
boolean privateLayout)
|
static String |
buildRemoteURL(UnicodeProperties typeSettingsProperties)
|
static 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)) |
static void |
copyFromLive(PortletRequest PortletRequest)
|
static void |
copyFromLive(PortletRequest PortletRequest,
Portlet portlet)
|
static void |
copyPortlet(PortletRequest PortletRequest,
long sourceGroupId,
long targetGroupId,
long sourcePlid,
long targetPlid,
String portletId)
|
static 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)
|
static void |
deleteLastImportSettings(Group liveGroup,
boolean privateLayout)
|
static void |
deleteRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
long layoutSetBranchId,
long plid)
|
static void |
deleteRecentLayoutRevisionId(long userId,
long layoutSetBranchId,
long plid)
|
static void |
deleteRecentLayoutRevisionId(User user,
long layoutSetBranchId,
long plid)
Deprecated. As of 7.0.0, replaced by deleteRecentLayoutRevisionId(long, long, long) |
static void |
disableStaging(Group scopeGroup,
Group liveGroup,
ServiceContext serviceContext)
Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging(
Group, ServiceContext) |
static void |
disableStaging(Group liveGroup,
ServiceContext serviceContext)
Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging(
Group, ServiceContext) |
static void |
disableStaging(PortletRequest portletRequest,
Group scopeGroup,
Group liveGroup,
ServiceContext serviceContext)
Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging(
PortletRequest, Group, ServiceContext) |
static void |
disableStaging(PortletRequest portletRequest,
Group liveGroup,
ServiceContext serviceContext)
Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging(
PortletRequest, Group, ServiceContext) |
static 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) |
static 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) |
static JSONArray |
getErrorMessagesJSONArray(Locale locale,
Map<String,MissingReference> missingReferences,
Map<String,Serializable> contextMap)
|
static JSONObject |
getExceptionMessagesJSONObject(Locale locale,
Exception e,
Map<String,Serializable> contextMap)
|
static Date |
getLastPublishDate(LayoutSet layoutSet)
|
static Date |
getLastPublishDate(PortletPreferences jxPortletPreferences)
|
static Group |
getLiveGroup(long groupId)
|
static long |
getLiveGroupId(long groupId)
|
static List<Layout> |
getMissingParentLayouts(Layout layout,
long liveGroupId)
|
static long |
getRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
long layoutSetBranchId,
long plid)
|
static long |
getRecentLayoutRevisionId(User user,
long layoutSetBranchId,
long plid)
|
static long |
getRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request,
long layoutSetId)
|
static long |
getRecentLayoutSetBranchId(User user,
long layoutSetId)
|
static String |
getSchedulerGroupName(String destinationName,
long groupId)
|
static String |
getStagedPortletId(String portletId)
|
static Staging |
getStaging()
|
static Map<String,String[]> |
getStagingParameters()
|
static Map<String,String[]> |
getStagingParameters(PortletRequest PortletRequest)
|
static JSONArray |
getWarningMessagesJSONArray(Locale locale,
Map<String,MissingReference> missingReferences,
Map<String,Serializable> contextMap)
|
static WorkflowTask |
getWorkflowTask(long userId,
LayoutRevision layoutRevision)
|
static boolean |
hasWorkflowTask(long userId,
LayoutRevision layoutRevision)
|
static boolean |
isIncomplete(Layout layout,
long layoutSetBranchId)
|
static void |
lockGroup(long userId,
long groupId)
|
static void |
publishLayout(long userId,
long plid,
long liveGroupId,
boolean includeChildren)
|
static void |
publishLayouts(long userId,
long sourceGroupId,
long targetGroupId,
boolean privateLayout,
long[] layoutIds,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
|
static void |
publishLayouts(long userId,
long sourceGroupId,
long targetGroupId,
boolean privateLayout,
Map<Long,Boolean> layoutIdMap,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
|
static void |
publishLayouts(long userId,
long sourceGroupId,
long targetGroupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
|
static void |
publishToLive(PortletRequest PortletRequest)
|
static void |
publishToLive(PortletRequest PortletRequest,
Portlet portlet)
|
static void |
publishToRemote(PortletRequest PortletRequest)
|
static void |
scheduleCopyFromLive(PortletRequest PortletRequest)
|
static void |
schedulePublishToLive(PortletRequest PortletRequest)
|
static void |
schedulePublishToRemote(PortletRequest PortletRequest)
|
static void |
setRecentLayoutBranchId(javax.servlet.http.HttpServletRequest request,
long layoutSetBranchId,
long plid,
long layoutBranchId)
|
static void |
setRecentLayoutBranchId(User user,
long layoutSetBranchId,
long plid,
long layoutBranchId)
|
static void |
setRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
long layoutSetBranchId,
long plid,
long layoutRevisionId)
|
static void |
setRecentLayoutRevisionId(User user,
long layoutSetBranchId,
long plid,
long layoutRevisionId)
|
static void |
setRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request,
long layoutSetId,
long layoutSetBranchId)
|
static void |
setRecentLayoutSetBranchId(User user,
long layoutSetId,
long layoutSetBranchId)
|
void |
setStaging(Staging staging)
|
static void |
unlockGroup(long groupId)
|
static void |
unscheduleCopyFromLive(PortletRequest PortletRequest)
|
static void |
unschedulePublishToLive(PortletRequest PortletRequest)
|
static void |
unschedulePublishToRemote(PortletRequest PortletRequest)
|
static void |
updateLastImportSettings(Element layoutElement,
Layout layout,
PortletDataContext portletDataContext)
|
static void |
updateLastPublishDate(long sourceGroupId,
boolean privateLayout,
Date lastPublishDate)
|
static void |
updateLastPublishDate(long sourceGroupId,
boolean privateLayout,
DateRange dateRange,
Date lastPublishDate)
|
static void |
updateLastPublishDate(String portletId,
PortletPreferences portletPreferences,
Date lastPublishDate)
|
static void |
updateLastPublishDate(String portletId,
PortletPreferences portletPreferences,
DateRange dateRange,
Date lastPublishDate)
|
static void |
updateStaging(PortletRequest PortletRequest,
Group liveGroup)
|
static 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 StagingUtil()
Method Detail |
---|
public static String buildRemoteURL(String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, boolean privateLayout)
public static String buildRemoteURL(UnicodeProperties typeSettingsProperties)
@Deprecated public static void checkDefaultLayoutSetBranches(long userId, Group liveGroup, boolean branchingPublic, boolean branchingPrivate, boolean remote, ServiceContext serviceContext) throws PortalException, SystemException
checkDefaultLayoutSetBranches(long, Group, boolean, boolean,
boolean, ServiceContext))
PortalException
SystemException
public static void copyFromLive(PortletRequest PortletRequest) throws Exception
Exception
public static void copyFromLive(PortletRequest PortletRequest, Portlet portlet) throws Exception
Exception
public static void copyPortlet(PortletRequest PortletRequest, long sourceGroupId, long targetGroupId, long sourcePlid, long targetPlid, String portletId) throws Exception
Exception
public static 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
Exception
public static void deleteLastImportSettings(Group liveGroup, boolean privateLayout) throws PortalException, SystemException
PortalException
SystemException
public static void deleteRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid) throws SystemException
SystemException
public static void deleteRecentLayoutRevisionId(long userId, long layoutSetBranchId, long plid) throws PortalException, SystemException
PortalException
SystemException
@Deprecated public static void deleteRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid) throws SystemException
deleteRecentLayoutRevisionId(long, long, long)
SystemException
public static void disableStaging(Group scopeGroup, Group liveGroup, ServiceContext serviceContext) throws Exception
StagingLocalService.disableStaging(
Group, ServiceContext)
Exception
public static void disableStaging(Group liveGroup, ServiceContext serviceContext) throws Exception
StagingLocalService.disableStaging(
Group, ServiceContext)
Exception
public static void disableStaging(PortletRequest portletRequest, Group scopeGroup, Group liveGroup, ServiceContext serviceContext) throws Exception
StagingLocalService.disableStaging(
PortletRequest, Group, ServiceContext)
Exception
public static void disableStaging(PortletRequest portletRequest, Group liveGroup, ServiceContext serviceContext) throws Exception
StagingLocalService.disableStaging(
PortletRequest, Group, ServiceContext)
Exception
public static void enableLocalStaging(long userId, Group scopeGroup, Group liveGroup, boolean branchingPublic, boolean branchingPrivate, ServiceContext serviceContext) throws Exception
StagingLocalService.enableLocalStaging(
long, Group, boolean, boolean, ServiceContext)
Exception
public static 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)
Exception
public static JSONArray getErrorMessagesJSONArray(Locale locale, Map<String,MissingReference> missingReferences, Map<String,Serializable> contextMap)
public static JSONObject getExceptionMessagesJSONObject(Locale locale, Exception e, Map<String,Serializable> contextMap)
public static Group getLiveGroup(long groupId) throws PortalException, SystemException
PortalException
SystemException
public static long getLiveGroupId(long groupId) throws PortalException, SystemException
PortalException
SystemException
public static List<Layout> getMissingParentLayouts(Layout layout, long liveGroupId) throws Exception
Exception
public static long getRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid) throws PortalException, SystemException
PortalException
SystemException
public static long getRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid) throws PortalException, SystemException
PortalException
SystemException
public static long getRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request, long layoutSetId)
public static long getRecentLayoutSetBranchId(User user, long layoutSetId) throws SystemException
SystemException
public static String getSchedulerGroupName(String destinationName, long groupId)
public static String getStagedPortletId(String portletId)
public static Staging getStaging()
public static Map<String,String[]> getStagingParameters()
public static Map<String,String[]> getStagingParameters(PortletRequest PortletRequest)
public static JSONArray getWarningMessagesJSONArray(Locale locale, Map<String,MissingReference> missingReferences, Map<String,Serializable> contextMap)
public static WorkflowTask getWorkflowTask(long userId, LayoutRevision layoutRevision) throws PortalException, SystemException
PortalException
SystemException
public static boolean hasWorkflowTask(long userId, LayoutRevision layoutRevision) throws PortalException, SystemException
PortalException
SystemException
public static boolean isIncomplete(Layout layout, long layoutSetBranchId)
public static void lockGroup(long userId, long groupId) throws Exception
Exception
public static void publishLayout(long userId, long plid, long liveGroupId, boolean includeChildren) throws Exception
Exception
public static void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException, SystemException
PortalException
SystemException
public static 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
PortalException
SystemException
public static void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException, SystemException
PortalException
SystemException
public static void publishToLive(PortletRequest PortletRequest) throws Exception
Exception
public static void publishToLive(PortletRequest PortletRequest, Portlet portlet) throws Exception
Exception
public static void publishToRemote(PortletRequest PortletRequest) throws Exception
Exception
public static void scheduleCopyFromLive(PortletRequest PortletRequest) throws Exception
Exception
public static void schedulePublishToLive(PortletRequest PortletRequest) throws Exception
Exception
public static void schedulePublishToRemote(PortletRequest PortletRequest) throws Exception
Exception
public static void setRecentLayoutBranchId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid, long layoutBranchId) throws SystemException
SystemException
public static void setRecentLayoutBranchId(User user, long layoutSetBranchId, long plid, long layoutBranchId) throws SystemException
SystemException
public static void setRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid, long layoutRevisionId) throws SystemException
SystemException
public static void setRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid, long layoutRevisionId) throws SystemException
SystemException
public static void setRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request, long layoutSetId, long layoutSetBranchId)
public static void setRecentLayoutSetBranchId(User user, long layoutSetId, long layoutSetBranchId) throws SystemException
SystemException
public static void unlockGroup(long groupId) throws SystemException
SystemException
public static void unscheduleCopyFromLive(PortletRequest PortletRequest) throws Exception
Exception
public static void unschedulePublishToLive(PortletRequest PortletRequest) throws Exception
Exception
public static void unschedulePublishToRemote(PortletRequest PortletRequest) throws Exception
Exception
public static void updateLastImportSettings(Element layoutElement, Layout layout, PortletDataContext portletDataContext) throws Exception
Exception
public static void updateLastPublishDate(long sourceGroupId, boolean privateLayout, Date lastPublishDate) throws Exception
Exception
public static void updateLastPublishDate(long sourceGroupId, boolean privateLayout, DateRange dateRange, Date lastPublishDate) throws Exception
Exception
public static Date getLastPublishDate(LayoutSet layoutSet) throws PortalException
PortalException
public static Date getLastPublishDate(PortletPreferences jxPortletPreferences)
public static void updateLastPublishDate(String portletId, PortletPreferences portletPreferences, Date lastPublishDate) throws Exception
Exception
public static void updateLastPublishDate(String portletId, PortletPreferences portletPreferences, DateRange dateRange, Date lastPublishDate) throws Exception
Exception
public static void updateStaging(PortletRequest PortletRequest, Group liveGroup) throws Exception
Exception
public static void validateRemote(String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId) throws PortalException
PortalException
public void setStaging(Staging staging)
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |