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 LayoutSetBranchLocalServiceUtil {
038
043
044
050 public static com.liferay.portal.model.LayoutSetBranch addLayoutSetBranch(
051 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
052 return getService().addLayoutSetBranch(layoutSetBranch);
053 }
054
055 public static com.liferay.portal.model.LayoutSetBranch addLayoutSetBranch(
056 long userId, long groupId, boolean privateLayout,
057 java.lang.String name, java.lang.String description, boolean master,
058 long copyLayoutSetBranchId,
059 com.liferay.portal.service.ServiceContext serviceContext)
060 throws com.liferay.portal.kernel.exception.PortalException {
061 return getService()
062 .addLayoutSetBranch(userId, groupId, privateLayout, name,
063 description, master, copyLayoutSetBranchId, serviceContext);
064 }
065
066
072 public static com.liferay.portal.model.LayoutSetBranch createLayoutSetBranch(
073 long layoutSetBranchId) {
074 return getService().createLayoutSetBranch(layoutSetBranchId);
075 }
076
077
084 public static com.liferay.portal.model.LayoutSetBranch deleteLayoutSetBranch(
085 com.liferay.portal.model.LayoutSetBranch layoutSetBranch)
086 throws com.liferay.portal.kernel.exception.PortalException {
087 return getService().deleteLayoutSetBranch(layoutSetBranch);
088 }
089
090 public static com.liferay.portal.model.LayoutSetBranch deleteLayoutSetBranch(
091 com.liferay.portal.model.LayoutSetBranch layoutSetBranch,
092 boolean includeMaster)
093 throws com.liferay.portal.kernel.exception.PortalException {
094 return getService().deleteLayoutSetBranch(layoutSetBranch, includeMaster);
095 }
096
097
104 public static com.liferay.portal.model.LayoutSetBranch deleteLayoutSetBranch(
105 long layoutSetBranchId)
106 throws com.liferay.portal.kernel.exception.PortalException {
107 return getService().deleteLayoutSetBranch(layoutSetBranchId);
108 }
109
110 public static void deleteLayoutSetBranches(long groupId,
111 boolean privateLayout)
112 throws com.liferay.portal.kernel.exception.PortalException {
113 getService().deleteLayoutSetBranches(groupId, privateLayout);
114 }
115
116 public static void deleteLayoutSetBranches(long groupId,
117 boolean privateLayout, boolean includeMaster)
118 throws com.liferay.portal.kernel.exception.PortalException {
119 getService()
120 .deleteLayoutSetBranches(groupId, privateLayout, includeMaster);
121 }
122
123
126 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
127 com.liferay.portal.model.PersistedModel persistedModel)
128 throws com.liferay.portal.kernel.exception.PortalException {
129 return getService().deletePersistedModel(persistedModel);
130 }
131
132 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
133 return getService().dynamicQuery();
134 }
135
136
142 public static <T> java.util.List<T> dynamicQuery(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
144 return getService().dynamicQuery(dynamicQuery);
145 }
146
147
159 public static <T> java.util.List<T> dynamicQuery(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
161 int end) {
162 return getService().dynamicQuery(dynamicQuery, start, end);
163 }
164
165
178 public static <T> java.util.List<T> dynamicQuery(
179 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
180 int end,
181 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
182 return getService()
183 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
184 }
185
186
192 public static long dynamicQueryCount(
193 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
194 return getService().dynamicQueryCount(dynamicQuery);
195 }
196
197
204 public static long dynamicQueryCount(
205 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
206 com.liferay.portal.kernel.dao.orm.Projection projection) {
207 return getService().dynamicQueryCount(dynamicQuery, projection);
208 }
209
210 public static com.liferay.portal.model.LayoutSetBranch fetchLayoutSetBranch(
211 long groupId, boolean privateLayout, java.lang.String name) {
212 return getService().fetchLayoutSetBranch(groupId, privateLayout, name);
213 }
214
215 public static com.liferay.portal.model.LayoutSetBranch fetchLayoutSetBranch(
216 long layoutSetBranchId) {
217 return getService().fetchLayoutSetBranch(layoutSetBranchId);
218 }
219
220 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
221 return getService().getActionableDynamicQuery();
222 }
223
224 public static com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
225 long groupId, boolean privateLayout, java.lang.String name)
226 throws com.liferay.portal.kernel.exception.PortalException {
227 return getService().getLayoutSetBranch(groupId, privateLayout, name);
228 }
229
230
237 public static com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
238 long layoutSetBranchId)
239 throws com.liferay.portal.kernel.exception.PortalException {
240 return getService().getLayoutSetBranch(layoutSetBranchId);
241 }
242
243 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranches(
244 long groupId, boolean privateLayout) {
245 return getService().getLayoutSetBranches(groupId, privateLayout);
246 }
247
248
259 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranchs(
260 int start, int end) {
261 return getService().getLayoutSetBranchs(start, end);
262 }
263
264
269 public static int getLayoutSetBranchsCount() {
270 return getService().getLayoutSetBranchsCount();
271 }
272
273 public static com.liferay.portal.model.LayoutSetBranch getMasterLayoutSetBranch(
274 long groupId, boolean privateLayout)
275 throws com.liferay.portal.kernel.exception.PortalException {
276 return getService().getMasterLayoutSetBranch(groupId, privateLayout);
277 }
278
279
284 public static java.lang.String getOSGiServiceIdentifier() {
285 return getService().getOSGiServiceIdentifier();
286 }
287
288 public static com.liferay.portal.model.PersistedModel getPersistedModel(
289 java.io.Serializable primaryKeyObj)
290 throws com.liferay.portal.kernel.exception.PortalException {
291 return getService().getPersistedModel(primaryKeyObj);
292 }
293
294
298 @Deprecated
299 public static com.liferay.portal.model.LayoutSetBranch getUserLayoutSetBranch(
300 long userId, long groupId, boolean privateLayout, long layoutSetBranchId)
301 throws com.liferay.portal.kernel.exception.PortalException {
302 return getService()
303 .getUserLayoutSetBranch(userId, groupId, privateLayout,
304 layoutSetBranchId);
305 }
306
307 public static com.liferay.portal.model.LayoutSetBranch getUserLayoutSetBranch(
308 long userId, long groupId, boolean privateLayout, long layoutSetId,
309 long layoutSetBranchId)
310 throws com.liferay.portal.kernel.exception.PortalException {
311 return getService()
312 .getUserLayoutSetBranch(userId, groupId, privateLayout,
313 layoutSetId, layoutSetBranchId);
314 }
315
316 public static com.liferay.portal.model.LayoutSetBranch mergeLayoutSetBranch(
317 long layoutSetBranchId, long mergeLayoutSetBranchId,
318 com.liferay.portal.service.ServiceContext serviceContext)
319 throws com.liferay.portal.kernel.exception.PortalException {
320 return getService()
321 .mergeLayoutSetBranch(layoutSetBranchId,
322 mergeLayoutSetBranchId, serviceContext);
323 }
324
325
331 public static com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
332 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
333 return getService().updateLayoutSetBranch(layoutSetBranch);
334 }
335
336 public static com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
337 long layoutSetBranchId, java.lang.String name,
338 java.lang.String description,
339 com.liferay.portal.service.ServiceContext serviceContext)
340 throws com.liferay.portal.kernel.exception.PortalException {
341 return getService()
342 .updateLayoutSetBranch(layoutSetBranchId, name, description,
343 serviceContext);
344 }
345
346 public static LayoutSetBranchLocalService getService() {
347 if (_service == null) {
348 _service = (LayoutSetBranchLocalService)PortalBeanLocatorUtil.locate(LayoutSetBranchLocalService.class.getName());
349
350 ReferenceRegistry.registerReference(LayoutSetBranchLocalServiceUtil.class,
351 "_service");
352 }
353
354 return _service;
355 }
356
357
360 @Deprecated
361 public void setService(LayoutSetBranchLocalService service) {
362 }
363
364 private static LayoutSetBranchLocalService _service;
365 }