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 void
cleanUpStagingRequest
(long stagingRequestId) static long
createStagingRequest
(long groupId, String checksum) static void
enableLocalStaging
(long groupId, boolean branchingPublic, boolean branchingPrivate, ServiceContext serviceContext) static void
enableRemoteStaging
(long groupId, boolean branchingPublic, boolean branchingPrivate, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, ServiceContext serviceContext) static String
Returns the OSGi service identifier.static StagingService
static boolean
hasRemoteLayout
(String uuid, long groupId, boolean privateLayout) static void
propagateExportImportLifecycleEvent
(int code, int processFlag, String processId, List<Serializable> arguments) static MissingReferences
publishStagingRequest
(long stagingRequestId, ExportImportConfiguration exportImportConfiguration) static void
setService
(StagingService service) static void
updateStagingRequest
(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
-