Liferay 6.2.0

com.liferay.portal.kernel.staging
Interface Staging

All Known Implementing Classes:
StagingImpl

public interface Staging


Method Summary
abstract  String buildRemoteURL(String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, boolean privateLayout)
           
abstract  String buildRemoteURL(UnicodeProperties typeSettingsProperties)
           
abstract  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))
abstract  void copyFromLive(PortletRequest PortletRequest)
           
abstract  void copyFromLive(PortletRequest PortletRequest, Portlet portlet)
           
abstract  void copyPortlet(PortletRequest PortletRequest, long sourceGroupId, long targetGroupId, long sourcePlid, long targetPlid, String portletId)
           
abstract  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)
           
abstract  void deleteLastImportSettings(Group liveGroup, boolean privateLayout)
           
abstract  void deleteRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid)
           
abstract  void deleteRecentLayoutRevisionId(long userId, long layoutSetBranchId, long plid)
           
abstract  void deleteRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid)
          Deprecated. As of 7.0.0, replaced by deleteRecentLayoutRevisionId(long, long, long)
abstract  void disableStaging(Group scopeGroup, Group liveGroup, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( Group, ServiceContext)
abstract  void disableStaging(Group liveGroup, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( Group, ServiceContext)
abstract  void disableStaging(PortletRequest portletRequest, Group scopeGroup, Group liveGroup, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( PortletRequest, Group, ServiceContext)
abstract  void disableStaging(PortletRequest portletRequest, Group liveGroup, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( PortletRequest, Group, ServiceContext)
abstract  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)
abstract  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)
abstract  JSONArray getErrorMessagesJSONArray(Locale locale, Map<String,MissingReference> missingReferences, Map<String,Serializable> contextMap)
           
abstract  JSONObject getExceptionMessagesJSONObject(Locale locale, Exception e, Map<String,Serializable> contextMap)
           
abstract  Date getLastPublishDate(LayoutSet layoutSet)
           
abstract  Date getLastPublishDate(PortletPreferences jxPortletPreferences)
           
abstract  Group getLiveGroup(long groupId)
           
abstract  long getLiveGroupId(long groupId)
           
abstract  List<Layout> getMissingParentLayouts(Layout layout, long liveGroupId)
           
abstract  long getRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid)
           
abstract  long getRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid)
           
abstract  long getRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request, long layoutSetId)
           
abstract  long getRecentLayoutSetBranchId(User user, long layoutSetId)
           
abstract  String getSchedulerGroupName(String destinationName, long groupId)
           
abstract  String getStagedPortletId(String portletId)
           
abstract  Map<String,String[]> getStagingParameters()
           
abstract  Map<String,String[]> getStagingParameters(PortletRequest PortletRequest)
           
abstract  JSONArray getWarningMessagesJSONArray(Locale locale, Map<String,MissingReference> missingReferences, Map<String,Serializable> contextMap)
           
abstract  WorkflowTask getWorkflowTask(long userId, LayoutRevision layoutRevision)
           
abstract  boolean hasWorkflowTask(long userId, LayoutRevision layoutRevision)
           
abstract  boolean isIncomplete(Layout layout, long layoutSetBranchId)
           
abstract  void lockGroup(long userId, long groupId)
           
abstract  void publishLayout(long userId, long plid, long liveGroupId, boolean includeChildren)
           
abstract  void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
abstract  void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, Map<Long,Boolean> layoutIdMap, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
abstract  void publishLayouts(long userId, long sourceGroupId, long targetGroupId, boolean privateLayout, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
abstract  void publishToLive(PortletRequest PortletRequest)
           
abstract  void publishToLive(PortletRequest PortletRequest, Portlet portlet)
           
abstract  void publishToRemote(PortletRequest PortletRequest)
           
abstract  void scheduleCopyFromLive(PortletRequest PortletRequest)
           
abstract  void schedulePublishToLive(PortletRequest PortletRequest)
           
abstract  void schedulePublishToRemote(PortletRequest PortletRequest)
           
abstract  void setRecentLayoutBranchId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid, long layoutBranchId)
           
abstract  void setRecentLayoutBranchId(User user, long layoutSetBranchId, long plid, long layoutBranchId)
           
abstract  void setRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid, long layoutRevisionId)
           
abstract  void setRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid, long layoutRevisionId)
           
abstract  void setRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request, long layoutSetId, long layoutSetBranchId)
           
abstract  void setRecentLayoutSetBranchId(User user, long layoutSetId, long layoutSetBranchId)
           
abstract  void unlockGroup(long groupId)
           
abstract  void unscheduleCopyFromLive(PortletRequest PortletRequest)
           
abstract  void unschedulePublishToLive(PortletRequest PortletRequest)
           
abstract  void unschedulePublishToRemote(PortletRequest PortletRequest)
           
abstract  void updateLastImportSettings(Element layoutElement, Layout layout, PortletDataContext portletDataContext)
           
abstract  void updateLastPublishDate(long sourceGroupId, boolean privateLayout, Date lastPublishDate)
           
abstract  void updateLastPublishDate(long sourceGroupId, boolean privateLayout, DateRange dateRange, Date lastPublishDate)
           
abstract  void updateLastPublishDate(String portletId, PortletPreferences portletPreferences, Date lastPublishDate)
           
abstract  void updateLastPublishDate(String portletId, PortletPreferences portletPreferences, DateRange dateRange, Date lastPublishDate)
           
abstract  void updateStaging(PortletRequest PortletRequest, Group liveGroup)
           
abstract  void validateRemote(String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId)
           
 

Method Detail

buildRemoteURL

String buildRemoteURL(String remoteAddress,
                      int remotePort,
                      String remotePathContext,
                      boolean secureConnection,
                      long remoteGroupId,
                      boolean privateLayout)

buildRemoteURL

String buildRemoteURL(UnicodeProperties typeSettingsProperties)

checkDefaultLayoutSetBranches

@Deprecated
void checkDefaultLayoutSetBranches(long userId,
                                              Group liveGroup,
                                              boolean branchingPublic,
                                              boolean branchingPrivate,
                                              boolean remote,
                                              ServiceContext serviceContext)
                                   throws PortalException,
                                          SystemException
Deprecated. As of 7.0.0, replaced by checkDefaultLayoutSetBranches(long, Group, boolean, boolean, boolean, ServiceContext))

Throws:
PortalException
SystemException

copyFromLive

void copyFromLive(PortletRequest PortletRequest)
                  throws Exception
Throws:
Exception

copyFromLive

void copyFromLive(PortletRequest PortletRequest,
                  Portlet portlet)
                  throws Exception
Throws:
Exception

copyPortlet

void copyPortlet(PortletRequest PortletRequest,
                 long sourceGroupId,
                 long targetGroupId,
                 long sourcePlid,
                 long targetPlid,
                 String portletId)
                 throws Exception
Throws:
Exception

copyRemoteLayouts

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
Throws:
Exception

deleteLastImportSettings

void deleteLastImportSettings(Group liveGroup,
                              boolean privateLayout)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

deleteRecentLayoutRevisionId

void deleteRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
                                  long layoutSetBranchId,
                                  long plid)
                                  throws SystemException
Throws:
SystemException

deleteRecentLayoutRevisionId

void deleteRecentLayoutRevisionId(long userId,
                                  long layoutSetBranchId,
                                  long plid)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

deleteRecentLayoutRevisionId

@Deprecated
void deleteRecentLayoutRevisionId(User user,
                                             long layoutSetBranchId,
                                             long plid)
                                  throws SystemException
Deprecated. As of 7.0.0, replaced by deleteRecentLayoutRevisionId(long, long, long)

Throws:
SystemException

disableStaging

void disableStaging(Group scopeGroup,
                    Group liveGroup,
                    ServiceContext serviceContext)
                    throws Exception
Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( Group, ServiceContext)

Throws:
Exception

disableStaging

void disableStaging(Group liveGroup,
                    ServiceContext serviceContext)
                    throws Exception
Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( Group, ServiceContext)

Throws:
Exception

disableStaging

void disableStaging(PortletRequest portletRequest,
                    Group scopeGroup,
                    Group liveGroup,
                    ServiceContext serviceContext)
                    throws Exception
Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( PortletRequest, Group, ServiceContext)

Throws:
Exception

disableStaging

void disableStaging(PortletRequest portletRequest,
                    Group liveGroup,
                    ServiceContext serviceContext)
                    throws Exception
Deprecated. As of 6.2.0, replaced by StagingLocalService.disableStaging( PortletRequest, Group, ServiceContext)

Throws:
Exception

enableLocalStaging

void enableLocalStaging(long userId,
                        Group scopeGroup,
                        Group liveGroup,
                        boolean branchingPublic,
                        boolean branchingPrivate,
                        ServiceContext serviceContext)
                        throws Exception
Deprecated. As of 6.2.0, replaced by StagingLocalService.enableLocalStaging( long, Group, boolean, boolean, ServiceContext)

Throws:
Exception

enableRemoteStaging

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
Deprecated. As of 6.2.0, replaced by StagingLocalService.enableRemoteStaging( long, Group, boolean, boolean, String, int, String, boolean, long, ServiceContext)

Throws:
Exception

getErrorMessagesJSONArray

JSONArray getErrorMessagesJSONArray(Locale locale,
                                    Map<String,MissingReference> missingReferences,
                                    Map<String,Serializable> contextMap)

getExceptionMessagesJSONObject

JSONObject getExceptionMessagesJSONObject(Locale locale,
                                          Exception e,
                                          Map<String,Serializable> contextMap)

getLastPublishDate

Date getLastPublishDate(LayoutSet layoutSet)
                        throws PortalException
Throws:
PortalException

getLastPublishDate

Date getLastPublishDate(PortletPreferences jxPortletPreferences)

getLiveGroup

Group getLiveGroup(long groupId)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

getLiveGroupId

long getLiveGroupId(long groupId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

getMissingParentLayouts

List<Layout> getMissingParentLayouts(Layout layout,
                                     long liveGroupId)
                                     throws Exception
Throws:
Exception

getRecentLayoutRevisionId

long getRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
                               long layoutSetBranchId,
                               long plid)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getRecentLayoutRevisionId

long getRecentLayoutRevisionId(User user,
                               long layoutSetBranchId,
                               long plid)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getRecentLayoutSetBranchId

long getRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request,
                                long layoutSetId)

getRecentLayoutSetBranchId

long getRecentLayoutSetBranchId(User user,
                                long layoutSetId)
                                throws SystemException
Throws:
SystemException

getSchedulerGroupName

String getSchedulerGroupName(String destinationName,
                             long groupId)

getStagedPortletId

String getStagedPortletId(String portletId)

getStagingParameters

Map<String,String[]> getStagingParameters()

getStagingParameters

Map<String,String[]> getStagingParameters(PortletRequest PortletRequest)

getWarningMessagesJSONArray

JSONArray getWarningMessagesJSONArray(Locale locale,
                                      Map<String,MissingReference> missingReferences,
                                      Map<String,Serializable> contextMap)

getWorkflowTask

WorkflowTask getWorkflowTask(long userId,
                             LayoutRevision layoutRevision)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

hasWorkflowTask

boolean hasWorkflowTask(long userId,
                        LayoutRevision layoutRevision)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

isIncomplete

boolean isIncomplete(Layout layout,
                     long layoutSetBranchId)

lockGroup

void lockGroup(long userId,
               long groupId)
               throws Exception
Throws:
Exception

publishLayout

void publishLayout(long userId,
                   long plid,
                   long liveGroupId,
                   boolean includeChildren)
                   throws Exception
Throws:
Exception

publishLayouts

void publishLayouts(long userId,
                    long sourceGroupId,
                    long targetGroupId,
                    boolean privateLayout,
                    long[] layoutIds,
                    Map<String,String[]> parameterMap,
                    Date startDate,
                    Date endDate)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

publishLayouts

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
Throws:
PortalException
SystemException

publishLayouts

void publishLayouts(long userId,
                    long sourceGroupId,
                    long targetGroupId,
                    boolean privateLayout,
                    Map<String,String[]> parameterMap,
                    Date startDate,
                    Date endDate)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

publishToLive

void publishToLive(PortletRequest PortletRequest)
                   throws Exception
Throws:
Exception

publishToLive

void publishToLive(PortletRequest PortletRequest,
                   Portlet portlet)
                   throws Exception
Throws:
Exception

publishToRemote

void publishToRemote(PortletRequest PortletRequest)
                     throws Exception
Throws:
Exception

scheduleCopyFromLive

void scheduleCopyFromLive(PortletRequest PortletRequest)
                          throws Exception
Throws:
Exception

schedulePublishToLive

void schedulePublishToLive(PortletRequest PortletRequest)
                           throws Exception
Throws:
Exception

schedulePublishToRemote

void schedulePublishToRemote(PortletRequest PortletRequest)
                             throws Exception
Throws:
Exception

setRecentLayoutBranchId

void setRecentLayoutBranchId(javax.servlet.http.HttpServletRequest request,
                             long layoutSetBranchId,
                             long plid,
                             long layoutBranchId)
                             throws SystemException
Throws:
SystemException

setRecentLayoutBranchId

void setRecentLayoutBranchId(User user,
                             long layoutSetBranchId,
                             long plid,
                             long layoutBranchId)
                             throws SystemException
Throws:
SystemException

setRecentLayoutRevisionId

void setRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request,
                               long layoutSetBranchId,
                               long plid,
                               long layoutRevisionId)
                               throws SystemException
Throws:
SystemException

setRecentLayoutRevisionId

void setRecentLayoutRevisionId(User user,
                               long layoutSetBranchId,
                               long plid,
                               long layoutRevisionId)
                               throws SystemException
Throws:
SystemException

setRecentLayoutSetBranchId

void setRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request,
                                long layoutSetId,
                                long layoutSetBranchId)

setRecentLayoutSetBranchId

void setRecentLayoutSetBranchId(User user,
                                long layoutSetId,
                                long layoutSetBranchId)
                                throws SystemException
Throws:
SystemException

unlockGroup

void unlockGroup(long groupId)
                 throws SystemException
Throws:
SystemException

unscheduleCopyFromLive

void unscheduleCopyFromLive(PortletRequest PortletRequest)
                            throws Exception
Throws:
Exception

unschedulePublishToLive

void unschedulePublishToLive(PortletRequest PortletRequest)
                             throws Exception
Throws:
Exception

unschedulePublishToRemote

void unschedulePublishToRemote(PortletRequest PortletRequest)
                               throws Exception
Throws:
Exception

updateLastImportSettings

void updateLastImportSettings(Element layoutElement,
                              Layout layout,
                              PortletDataContext portletDataContext)
                              throws Exception
Throws:
Exception

updateLastPublishDate

void updateLastPublishDate(long sourceGroupId,
                           boolean privateLayout,
                           Date lastPublishDate)
                           throws Exception
Throws:
Exception

updateLastPublishDate

void updateLastPublishDate(long sourceGroupId,
                           boolean privateLayout,
                           DateRange dateRange,
                           Date lastPublishDate)
                           throws Exception
Throws:
Exception

updateLastPublishDate

void updateLastPublishDate(String portletId,
                           PortletPreferences portletPreferences,
                           Date lastPublishDate)
                           throws Exception
Throws:
Exception

updateLastPublishDate

void updateLastPublishDate(String portletId,
                           PortletPreferences portletPreferences,
                           DateRange dateRange,
                           Date lastPublishDate)

updateStaging

void updateStaging(PortletRequest PortletRequest,
                   Group liveGroup)
                   throws Exception
Throws:
Exception

validateRemote

void validateRemote(String remoteAddress,
                    int remotePort,
                    String remotePathContext,
                    boolean secureConnection,
                    long remoteGroupId)
                    throws PortalException
Throws:
PortalException

Liferay 6.2.0