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
229 public static java.lang.String getBeanIdentifier() {
230 return getService().getBeanIdentifier();
231 }
232
233 public static com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
234 long groupId, boolean privateLayout, java.lang.String name)
235 throws com.liferay.portal.kernel.exception.PortalException {
236 return getService().getLayoutSetBranch(groupId, privateLayout, name);
237 }
238
239
246 public static com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
247 long layoutSetBranchId)
248 throws com.liferay.portal.kernel.exception.PortalException {
249 return getService().getLayoutSetBranch(layoutSetBranchId);
250 }
251
252 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranches(
253 long groupId, boolean privateLayout) {
254 return getService().getLayoutSetBranches(groupId, privateLayout);
255 }
256
257
268 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranchs(
269 int start, int end) {
270 return getService().getLayoutSetBranchs(start, end);
271 }
272
273
278 public static int getLayoutSetBranchsCount() {
279 return getService().getLayoutSetBranchsCount();
280 }
281
282 public static com.liferay.portal.model.LayoutSetBranch getMasterLayoutSetBranch(
283 long groupId, boolean privateLayout)
284 throws com.liferay.portal.kernel.exception.PortalException {
285 return getService().getMasterLayoutSetBranch(groupId, privateLayout);
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
330 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
331 getService().setBeanIdentifier(beanIdentifier);
332 }
333
334
340 public static com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
341 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
342 return getService().updateLayoutSetBranch(layoutSetBranch);
343 }
344
345 public static com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
346 long layoutSetBranchId, java.lang.String name,
347 java.lang.String description,
348 com.liferay.portal.service.ServiceContext serviceContext)
349 throws com.liferay.portal.kernel.exception.PortalException {
350 return getService()
351 .updateLayoutSetBranch(layoutSetBranchId, name, description,
352 serviceContext);
353 }
354
355 public static LayoutSetBranchLocalService getService() {
356 if (_service == null) {
357 _service = (LayoutSetBranchLocalService)PortalBeanLocatorUtil.locate(LayoutSetBranchLocalService.class.getName());
358
359 ReferenceRegistry.registerReference(LayoutSetBranchLocalServiceUtil.class,
360 "_service");
361 }
362
363 return _service;
364 }
365
366
369 @Deprecated
370 public void setService(LayoutSetBranchLocalService service) {
371 }
372
373 private static LayoutSetBranchLocalService _service;
374 }