Class StagingServiceUtil
Object
com.liferay.exportimport.kernel.service.StagingServiceUtil
Provides the remote service utility for Staging. This utility wraps
com.liferay.portlet.exportimport.service.impl.StagingServiceImpl and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcleanUpStagingRequest(long stagingRequestId) static longcreateStagingRequest(long groupId, String checksum) static voidenableLocalStaging(long groupId, boolean branchingPublic, boolean branchingPrivate, ServiceContext serviceContext) static voidenableRemoteStaging(long groupId, boolean branchingPublic, boolean branchingPrivate, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, ServiceContext serviceContext) static StringReturns the OSGi service identifier.static StagingServicestatic booleanhasRemoteLayout(String uuid, long groupId, boolean privateLayout) static voidpropagateExportImportLifecycleEvent(int code, int processFlag, String processId, List<Serializable> arguments) static MissingReferencespublishStagingRequest(long stagingRequestId, ExportImportConfiguration exportImportConfiguration) static voidsetService(StagingService service) static voidupdateStagingRequest(long stagingRequestId, String fileName, byte[] bytes)
-
Constructor Details
-
StagingServiceUtil
public StagingServiceUtil()
-
-
Method Details
-
cleanUpStagingRequest
- Throws:
PortalException
-
createStagingRequest
- Throws:
PortalException
-
enableLocalStaging
public static void enableLocalStaging(long groupId, boolean branchingPublic, boolean branchingPrivate, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
enableRemoteStaging
public static void enableRemoteStaging(long groupId, boolean branchingPublic, boolean branchingPrivate, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
hasRemoteLayout
public static boolean hasRemoteLayout(String uuid, long groupId, boolean privateLayout) throws PortalException - Throws:
PortalException
-
propagateExportImportLifecycleEvent
public static void propagateExportImportLifecycleEvent(int code, int processFlag, String processId, List<Serializable> arguments) throws PortalException - Throws:
PortalException
-
publishStagingRequest
public static MissingReferences publishStagingRequest(long stagingRequestId, ExportImportConfiguration exportImportConfiguration) throws PortalException - Throws:
PortalException
-
updateStagingRequest
public static void updateStagingRequest(long stagingRequestId, String fileName, byte[] bytes) throws PortalException - Throws:
PortalException
-
getService
-
setService
-