Class StagingLocalServiceUtil
Object
com.liferay.exportimport.kernel.service.StagingLocalServiceUtil
Provides the local service utility for Staging. This utility wraps
com.liferay.portlet.exportimport.service.impl.StagingLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkDefaultLayoutSetBranches
(long userId, Group liveGroup, boolean branchingPublic, boolean branchingPrivate, boolean remote, ServiceContext serviceContext) static void
cleanUpStagingRequest
(long stagingRequestId) static long
createStagingRequest
(long userId, long groupId, String checksum) static void
disableStaging
(Group liveGroup, ServiceContext serviceContext) static void
disableStaging
(PortletRequest portletRequest, Group liveGroup, ServiceContext serviceContext) static void
enableLocalStaging
(long userId, Group liveGroup, boolean branchingPublic, boolean branchingPrivate, ServiceContext serviceContext) static void
enableRemoteStaging
(long userId, Group stagingGroup, boolean branchingPublic, boolean branchingPrivate, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, ServiceContext serviceContext) static String
Returns the OSGi service identifier.static StagingLocalService
static MissingReferences
publishStagingRequest
(long userId, long stagingRequestId, ExportImportConfiguration exportImportConfiguration) static void
setService
(StagingLocalService service) static void
updateStagingRequest
(long userId, long stagingRequestId, String fileName, byte[] bytes)
-
Constructor Details
-
StagingLocalServiceUtil
public StagingLocalServiceUtil()
-
-
Method Details
-
checkDefaultLayoutSetBranches
public static void checkDefaultLayoutSetBranches(long userId, Group liveGroup, boolean branchingPublic, boolean branchingPrivate, boolean remote, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
cleanUpStagingRequest
- Throws:
PortalException
-
createStagingRequest
public static long createStagingRequest(long userId, long groupId, String checksum) throws PortalException - Throws:
PortalException
-
disableStaging
public static void disableStaging(Group liveGroup, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
disableStaging
public static void disableStaging(PortletRequest portletRequest, Group liveGroup, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
enableLocalStaging
public static void enableLocalStaging(long userId, Group liveGroup, boolean branchingPublic, boolean branchingPrivate, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
enableRemoteStaging
public static void enableRemoteStaging(long userId, Group stagingGroup, 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
-
publishStagingRequest
public static MissingReferences publishStagingRequest(long userId, long stagingRequestId, ExportImportConfiguration exportImportConfiguration) throws PortalException - Throws:
PortalException
-
updateStagingRequest
public static void updateStagingRequest(long userId, long stagingRequestId, String fileName, byte[] bytes) throws PortalException - Throws:
PortalException
-
getService
-
setService
-