Liferay 7.0-ce-b4

com.liferay.portlet.exportimport.service
Class StagingLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.exportimport.service.StagingLocalServiceUtil

@ProviderType
public class StagingLocalServiceUtil
extends Object

Provides the local service utility for Staging. This utility wraps com.liferay.portlet.exportimport.service.impl.StagingLocalServiceImpl and is the primary 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.

See Also:
StagingLocalService, com.liferay.portlet.exportimport.service.base.StagingLocalServiceBaseImpl, com.liferay.portlet.exportimport.service.impl.StagingLocalServiceImpl

Constructor Summary
StagingLocalServiceUtil()
           
 
Method Summary
static 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 getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
static StagingLocalService getService()
           
static MissingReferences publishStagingRequest(long userId, long stagingRequestId, boolean privateLayout, Map<String,String[]> parameterMap)
          Deprecated. As of 7.0.0, with no direct replacement
static MissingReferences publishStagingRequest(long userId, long stagingRequestId, ExportImportConfiguration exportImportConfiguration)
           
static void updateStagingRequest(long userId, long stagingRequestId, String fileName, byte[] bytes)
           
static MissingReferences validateStagingRequest(long userId, long stagingRequestId, boolean privateLayout, Map<String,String[]> parameterMap)
          Deprecated. As of 7.0.0, replaced by publishStagingRequest(long, long, boolean, Map)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StagingLocalServiceUtil

public StagingLocalServiceUtil()
Method Detail

checkDefaultLayoutSetBranches

public static void checkDefaultLayoutSetBranches(long userId,
                                                 Group liveGroup,
                                                 boolean branchingPublic,
                                                 boolean branchingPrivate,
                                                 boolean remote,
                                                 ServiceContext serviceContext)
                                          throws PortalException
Throws:
PortalException

cleanUpStagingRequest

public static void cleanUpStagingRequest(long stagingRequestId)
                                  throws PortalException
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

public static String 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

publishStagingRequest

@Deprecated
public static MissingReferences publishStagingRequest(long userId,
                                                                 long stagingRequestId,
                                                                 boolean privateLayout,
                                                                 Map<String,String[]> parameterMap)
                                               throws PortalException
Deprecated. As of 7.0.0, with no direct replacement

Throws:
PortalException

updateStagingRequest

public static void updateStagingRequest(long userId,
                                        long stagingRequestId,
                                        String fileName,
                                        byte[] bytes)
                                 throws PortalException
Throws:
PortalException

validateStagingRequest

@Deprecated
public static MissingReferences validateStagingRequest(long userId,
                                                                  long stagingRequestId,
                                                                  boolean privateLayout,
                                                                  Map<String,String[]> parameterMap)
Deprecated. As of 7.0.0, replaced by publishStagingRequest(long, long, boolean, Map)


getService

public static StagingLocalService getService()

Liferay 7.0-ce-b4