public class StagingServiceUtil
extends Object
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.StagingService
Constructor and Description |
---|
StagingServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static 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 |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static StagingService |
getService() |
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) |
public static void cleanUpStagingRequest(long stagingRequestId) throws PortalException
PortalException
public static long createStagingRequest(long groupId, String checksum) throws PortalException
PortalException
public static void enableLocalStaging(long groupId, boolean branchingPublic, boolean branchingPrivate, ServiceContext serviceContext) throws PortalException
PortalException
public static void enableRemoteStaging(long groupId, boolean branchingPublic, boolean branchingPrivate, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, ServiceContext serviceContext) throws PortalException
PortalException
public static String getOSGiServiceIdentifier()
public static boolean hasRemoteLayout(String uuid, long groupId, boolean privateLayout) throws PortalException
PortalException
public static void propagateExportImportLifecycleEvent(int code, int processFlag, String processId, List<Serializable> arguments) throws PortalException
PortalException
public static MissingReferences publishStagingRequest(long stagingRequestId, ExportImportConfiguration exportImportConfiguration) throws PortalException
PortalException
public static void updateStagingRequest(long stagingRequestId, String fileName, byte[] bytes) throws PortalException
PortalException
public static StagingService getService()
public static void setService(StagingService service)