Class StagingLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portlet.exportimport.service.base.StagingLocalServiceBaseImpl
com.liferay.portlet.exportimport.service.impl.StagingLocalServiceImpl
All Implemented Interfaces:
com.liferay.exportimport.kernel.service.StagingLocalService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService

public class StagingLocalServiceImpl extends StagingLocalServiceBaseImpl
Author:
Michael C. Han, Máté Thurzó, Vilmos Papp
  • Constructor Details

    • StagingLocalServiceImpl

      public StagingLocalServiceImpl()
  • Method Details

    • checkDefaultLayoutSetBranches

      public void checkDefaultLayoutSetBranches(long userId, com.liferay.portal.kernel.model.Group liveGroup, boolean branchingPublic, boolean branchingPrivate, boolean remote, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • cleanUpStagingRequest

      public void cleanUpStagingRequest(long stagingRequestId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createStagingRequest

      public long createStagingRequest(long userId, long groupId, String checksum) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • disableStaging

      public void disableStaging(com.liferay.portal.kernel.model.Group liveGroup, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • disableStaging

      public void disableStaging(PortletRequest portletRequest, com.liferay.portal.kernel.model.Group liveGroup, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • enableLocalStaging

      public void enableLocalStaging(long userId, com.liferay.portal.kernel.model.Group liveGroup, boolean branchingPublic, boolean branchingPrivate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • enableRemoteStaging

      public void enableRemoteStaging(long userId, com.liferay.portal.kernel.model.Group stagingGroup, boolean branchingPublic, boolean branchingPrivate, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • publishStagingRequest

      public com.liferay.exportimport.kernel.lar.MissingReferences publishStagingRequest(long userId, long stagingRequestId, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStagingRequest

      public void updateStagingRequest(long userId, long stagingRequestId, String fileName, byte[] bytes) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addDefaultLayoutSetBranch

      protected void addDefaultLayoutSetBranch(long userId, long groupId, String groupName, boolean privateLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addStagingGroup

      protected com.liferay.portal.kernel.model.Group addStagingGroup(long userId, com.liferay.portal.kernel.model.Group liveGroup, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutSetBranches

      protected void deleteLayoutSetBranches(long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • disableRemoteStaging

      protected void disableRemoteStaging(String remoteURL, long remoteGroupId, boolean forceDisable) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • enableRemoteStaging

      protected void enableRemoteStaging(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long remoteGroupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchRemoteGroup

      protected com.liferay.portal.kernel.model.Group fetchRemoteGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchStagingRequestFileEntry

      protected com.liferay.portal.kernel.repository.model.FileEntry fetchStagingRequestFileEntry(long stagingRequestId, com.liferay.portal.kernel.repository.model.Folder folder) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAssembledFileName

      protected String getAssembledFileName(long stagingRequestId)
    • getStagingRequestFileEntry

      protected com.liferay.portal.kernel.repository.model.FileEntry getStagingRequestFileEntry(long userId, long stagingRequestId, com.liferay.portal.kernel.repository.model.Folder folder) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • removeLayoutSetBranchIdFromExportImportConfigurations

      protected void removeLayoutSetBranchIdFromExportImportConfigurations(long groupId, boolean remote, boolean privateLayout) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • setCommonStagingOptions

      protected void setCommonStagingOptions(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • updateLayoutWithLayoutRevision

      protected com.liferay.portal.kernel.model.Layout updateLayoutWithLayoutRevision(com.liferay.portal.kernel.model.LayoutRevision layoutRevision) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updatePortletPreferences

      protected void updatePortletPreferences(com.liferay.portal.kernel.model.LayoutRevision layoutRevision, com.liferay.portal.kernel.model.Layout layout)
    • updateStagedPortlets

      protected void updateStagedPortlets(String remoteURL, long remoteGroupId, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException