Liferay 6.2-ce-ga5

com.liferay.portal.kernel.staging
Interface Staging


public interface Staging


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)
           
 void deleteRecentLayoutRevisionId(long userId, long layoutSetBranchId, long plid)
           
 void deleteRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid)
          Deprecated. As of 7.0.0, replaced by deleteRecentLayoutRevisionId(long, long, long)
 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)
 JSONArray getErrorMessagesJSONArray(Locale locale, Map<String,MissingReference> missingReferences, Map<String,Serializable> contextMap)
           
 JSONObject getExceptionMessagesJSONObject(Locale locale, Exception e, Map<String,Serializable> contextMap)
           
 Date getLastPublishDate(LayoutSet layoutSet)
           
 Date getLastPublishDate(PortletPreferences jxPortletPreferences)
           
 Group getLiveGroup(long groupId)
           
 long getLiveGroupId(long groupId)
           
 List<Layout> getMissingParentLayouts(Layout layout, long liveGroupId)
           
 long getRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, long layoutSetBranchId, long plid)
           
 long getRecentLayoutRevisionId(User user, long layoutSetBranchId, long plid)
           
 long getRecentLayoutSetBranchId(javax.servlet.http.HttpServletRequest request, long layoutSetId)
           
 long getRecentLayoutSetBranchId(User user, long layoutSetId)
           
 String getSchedulerGroupName(String destinationName, long groupId)
           
 String getStagedPortletId(String portletId)
           
 Map<String,String[]> getStagingParameters()
           
 Map<String,String[]> getStagingParameters(PortletRequest PortletRequest)
           
 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)
           
 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)
           
 void publishToLive(PortletRequest PortletRequest)
           
 void publishToLive(PortletRequest PortletRequest, Portlet portlet)
           
 void publishToRemote(PortletRequest PortletRequest)
           
 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)
           
 void setRecentLayoutBranchId(User user, long layoutSetBranchId, long plid, long layoutBranchId)
           
 void setRecentLayoutRevisionId(javax.servlet.http.HttpServletRequest request, 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)
           
 void unlockGroup(long groupId)
           
 void unscheduleCopyFromLive(PortletRequest PortletRequest)
           
 void unschedulePublishToLive(PortletRequest PortletRequest)
           
 void unschedulePublishToRemote(PortletRequest PortletRequest)
           
 void updateLastImportSettings(Element layoutElement, Layout layout, PortletDataContext portletDataContext)
           
 void updateLastPublishDate(long sourceGroupId, boolean privateLayout, Date lastPublishDate)
           
 void updateLastPublishDate(long sourceGroupId, 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)
           
 

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-ce-ga5