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
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static void cleanUpStagingRequest(long stagingRequestId)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException {
065 getService().cleanUpStagingRequest(stagingRequestId);
066 }
067
068 public static long createStagingRequest(long userId, long groupId,
069 java.lang.String checksum)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException {
072 return getService().createStagingRequest(userId, groupId, checksum);
073 }
074
075 public static void disableStaging(
076 com.liferay.portal.model.Group liveGroup,
077 com.liferay.portal.service.ServiceContext serviceContext)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 getService().disableStaging(liveGroup, serviceContext);
081 }
082
083 public static void disableStaging(
084 javax.portlet.PortletRequest portletRequest,
085 com.liferay.portal.model.Group liveGroup,
086 com.liferay.portal.service.ServiceContext serviceContext)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 getService().disableStaging(portletRequest, liveGroup, serviceContext);
090 }
091
092 public static void enableLocalStaging(long userId,
093 com.liferay.portal.model.Group liveGroup, boolean branchingPublic,
094 boolean branchingPrivate,
095 com.liferay.portal.service.ServiceContext serviceContext)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException {
098 getService()
099 .enableLocalStaging(userId, liveGroup, branchingPublic,
100 branchingPrivate, serviceContext);
101 }
102
103 public static void enableRemoteStaging(long userId,
104 com.liferay.portal.model.Group liveGroup, boolean branchingPublic,
105 boolean branchingPrivate, java.lang.String remoteAddress,
106 int remotePort, java.lang.String remotePathContext,
107 boolean secureConnection, long remoteGroupId,
108 com.liferay.portal.service.ServiceContext serviceContext)
109 throws com.liferay.portal.kernel.exception.PortalException,
110 com.liferay.portal.kernel.exception.SystemException {
111 getService()
112 .enableRemoteStaging(userId, liveGroup, branchingPublic,
113 branchingPrivate, remoteAddress, remotePort, remotePathContext,
114 secureConnection, remoteGroupId, serviceContext);
115 }
116
117 public static void publishStagingRequest(long userId,
118 long stagingRequestId, boolean privateLayout,
119 java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
120 throws com.liferay.portal.kernel.exception.PortalException,
121 com.liferay.portal.kernel.exception.SystemException {
122 getService()
123 .publishStagingRequest(userId, stagingRequestId, privateLayout,
124 parameterMap);
125 }
126
127 public static void updateStagingRequest(long userId, long stagingRequestId,
128 java.lang.String fileName, byte[] bytes)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException {
131 getService()
132 .updateStagingRequest(userId, stagingRequestId, fileName, bytes);
133 }
134
135 public static com.liferay.portal.kernel.lar.MissingReferences validateStagingRequest(
136 long userId, long stagingRequestId, boolean privateLayout,
137 java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException {
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 public void setService(StagingLocalService service) {
160 }
161
162 private static StagingLocalService _service;
163 }