001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class StagingLocalServiceUtil {
038
043 public static void checkDefaultLayoutSetBranches(long userId,
044 com.liferay.portal.model.Group liveGroup, boolean branchingPublic,
045 boolean branchingPrivate, boolean remote,
046 com.liferay.portal.service.ServiceContext serviceContext)
047 throws com.liferay.portal.kernel.exception.PortalException {
048 getService()
049 .checkDefaultLayoutSetBranches(userId, liveGroup, branchingPublic,
050 branchingPrivate, remote, serviceContext);
051 }
052
053 public static void cleanUpStagingRequest(long stagingRequestId)
054 throws com.liferay.portal.kernel.exception.PortalException {
055 getService().cleanUpStagingRequest(stagingRequestId);
056 }
057
058 public static long createStagingRequest(long userId, long groupId,
059 java.lang.String checksum)
060 throws com.liferay.portal.kernel.exception.PortalException {
061 return getService().createStagingRequest(userId, groupId, checksum);
062 }
063
064 public static void disableStaging(
065 com.liferay.portal.model.Group liveGroup,
066 com.liferay.portal.service.ServiceContext serviceContext)
067 throws com.liferay.portal.kernel.exception.PortalException {
068 getService().disableStaging(liveGroup, serviceContext);
069 }
070
071 public static void disableStaging(
072 javax.portlet.PortletRequest portletRequest,
073 com.liferay.portal.model.Group liveGroup,
074 com.liferay.portal.service.ServiceContext serviceContext)
075 throws com.liferay.portal.kernel.exception.PortalException {
076 getService().disableStaging(portletRequest, liveGroup, serviceContext);
077 }
078
079 public static void enableLocalStaging(long userId,
080 com.liferay.portal.model.Group liveGroup, boolean branchingPublic,
081 boolean branchingPrivate,
082 com.liferay.portal.service.ServiceContext serviceContext)
083 throws com.liferay.portal.kernel.exception.PortalException {
084 getService()
085 .enableLocalStaging(userId, liveGroup, branchingPublic,
086 branchingPrivate, serviceContext);
087 }
088
089 public static void enableRemoteStaging(long userId,
090 com.liferay.portal.model.Group stagingGroup, boolean branchingPublic,
091 boolean branchingPrivate, java.lang.String remoteAddress,
092 int remotePort, java.lang.String remotePathContext,
093 boolean secureConnection, long remoteGroupId,
094 com.liferay.portal.service.ServiceContext serviceContext)
095 throws com.liferay.portal.kernel.exception.PortalException {
096 getService()
097 .enableRemoteStaging(userId, stagingGroup, branchingPublic,
098 branchingPrivate, remoteAddress, remotePort, remotePathContext,
099 secureConnection, remoteGroupId, serviceContext);
100 }
101
102
107 public static java.lang.String getBeanIdentifier() {
108 return getService().getBeanIdentifier();
109 }
110
111 public static void publishStagingRequest(long userId,
112 long stagingRequestId, boolean privateLayout,
113 java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
114 throws com.liferay.portal.kernel.exception.PortalException {
115 getService()
116 .publishStagingRequest(userId, stagingRequestId, privateLayout,
117 parameterMap);
118 }
119
120
125 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
126 getService().setBeanIdentifier(beanIdentifier);
127 }
128
129 public static void updateStagingRequest(long userId, long stagingRequestId,
130 java.lang.String fileName, byte[] bytes)
131 throws com.liferay.portal.kernel.exception.PortalException {
132 getService()
133 .updateStagingRequest(userId, stagingRequestId, fileName, bytes);
134 }
135
136 public static com.liferay.portal.kernel.lar.MissingReferences validateStagingRequest(
137 long userId, long stagingRequestId, boolean privateLayout,
138 java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
139 throws com.liferay.portal.kernel.exception.PortalException {
140 return getService()
141 .validateStagingRequest(userId, stagingRequestId,
142 privateLayout, parameterMap);
143 }
144
145 public static StagingLocalService getService() {
146 if (_service == null) {
147 _service = (StagingLocalService)PortalBeanLocatorUtil.locate(StagingLocalService.class.getName());
148
149 ReferenceRegistry.registerReference(StagingLocalServiceUtil.class,
150 "_service");
151 }
152
153 return _service;
154 }
155
156
159 @Deprecated
160 public void setService(StagingLocalService service) {
161 }
162
163 private static StagingLocalService _service;
164 }