001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class LayoutSetBranchLocalServiceUtil {
035
040
041
048 public static com.liferay.portal.model.LayoutSetBranch addLayoutSetBranch(
049 com.liferay.portal.model.LayoutSetBranch layoutSetBranch)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addLayoutSetBranch(layoutSetBranch);
052 }
053
054
060 public static com.liferay.portal.model.LayoutSetBranch createLayoutSetBranch(
061 long layoutSetBranchId) {
062 return getService().createLayoutSetBranch(layoutSetBranchId);
063 }
064
065
072 public static void deleteLayoutSetBranch(long layoutSetBranchId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteLayoutSetBranch(layoutSetBranchId);
076 }
077
078
085 public static void deleteLayoutSetBranch(
086 com.liferay.portal.model.LayoutSetBranch layoutSetBranch)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 getService().deleteLayoutSetBranch(layoutSetBranch);
090 }
091
092
099 @SuppressWarnings("rawtypes")
100 public static java.util.List dynamicQuery(
101 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().dynamicQuery(dynamicQuery);
104 }
105
106
119 @SuppressWarnings("rawtypes")
120 public static java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException {
123 return getService().dynamicQuery(dynamicQuery, start, end);
124 }
125
126
140 @SuppressWarnings("rawtypes")
141 public static java.util.List dynamicQuery(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143 int end,
144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return getService()
147 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
148 }
149
150
157 public static long dynamicQueryCount(
158 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return getService().dynamicQueryCount(dynamicQuery);
161 }
162
163
171 public static com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
172 long layoutSetBranchId)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException {
175 return getService().getLayoutSetBranch(layoutSetBranchId);
176 }
177
178 public static com.liferay.portal.model.PersistedModel getPersistedModel(
179 java.io.Serializable primaryKeyObj)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException {
182 return getService().getPersistedModel(primaryKeyObj);
183 }
184
185
197 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranchs(
198 int start, int end)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getService().getLayoutSetBranchs(start, end);
201 }
202
203
209 public static int getLayoutSetBranchsCount()
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getService().getLayoutSetBranchsCount();
212 }
213
214
221 public static com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
222 com.liferay.portal.model.LayoutSetBranch layoutSetBranch)
223 throws com.liferay.portal.kernel.exception.SystemException {
224 return getService().updateLayoutSetBranch(layoutSetBranch);
225 }
226
227
235 public static com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
236 com.liferay.portal.model.LayoutSetBranch layoutSetBranch, boolean merge)
237 throws com.liferay.portal.kernel.exception.SystemException {
238 return getService().updateLayoutSetBranch(layoutSetBranch, merge);
239 }
240
241
246 public static java.lang.String getBeanIdentifier() {
247 return getService().getBeanIdentifier();
248 }
249
250
255 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
256 getService().setBeanIdentifier(beanIdentifier);
257 }
258
259 public static com.liferay.portal.model.LayoutSetBranch addLayoutSetBranch(
260 long userId, long groupId, boolean privateLayout,
261 java.lang.String name, java.lang.String description, boolean master,
262 long copyLayoutSetBranchId,
263 com.liferay.portal.service.ServiceContext serviceContext)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException {
266 return getService()
267 .addLayoutSetBranch(userId, groupId, privateLayout, name,
268 description, master, copyLayoutSetBranchId, serviceContext);
269 }
270
271 public static void deleteLayoutSetBranch(
272 com.liferay.portal.model.LayoutSetBranch layoutSetBranch,
273 boolean includeMaster)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException {
276 getService().deleteLayoutSetBranch(layoutSetBranch, includeMaster);
277 }
278
279 public static void deleteLayoutSetBranches(long groupId,
280 boolean privateLayout)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException {
283 getService().deleteLayoutSetBranches(groupId, privateLayout);
284 }
285
286 public static void deleteLayoutSetBranches(long groupId,
287 boolean privateLayout, boolean includeMaster)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException {
290 getService()
291 .deleteLayoutSetBranches(groupId, privateLayout, includeMaster);
292 }
293
294 public static com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
295 long groupId, boolean privateLayout, java.lang.String name)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException {
298 return getService().getLayoutSetBranch(groupId, privateLayout, name);
299 }
300
301 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranches(
302 long groupId, boolean privateLayout)
303 throws com.liferay.portal.kernel.exception.SystemException {
304 return getService().getLayoutSetBranches(groupId, privateLayout);
305 }
306
307 public static com.liferay.portal.model.LayoutSetBranch getMasterLayoutSetBranch(
308 long groupId, boolean privateLayout)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 return getService().getMasterLayoutSetBranch(groupId, privateLayout);
312 }
313
314 public static com.liferay.portal.model.LayoutSetBranch getUserLayoutSetBranch(
315 long userId, long groupId, boolean privateLayout, long layoutSetBranchId)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException {
318 return getService()
319 .getUserLayoutSetBranch(userId, groupId, privateLayout,
320 layoutSetBranchId);
321 }
322
323 public static com.liferay.portal.model.LayoutSetBranch mergeLayoutSetBranch(
324 long layoutSetBranchId, long mergeLayoutSetBranchId,
325 com.liferay.portal.service.ServiceContext serviceContext)
326 throws com.liferay.portal.kernel.exception.PortalException,
327 com.liferay.portal.kernel.exception.SystemException {
328 return getService()
329 .mergeLayoutSetBranch(layoutSetBranchId,
330 mergeLayoutSetBranchId, serviceContext);
331 }
332
333 public static com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
334 long layoutSetBranchId, java.lang.String name,
335 java.lang.String description,
336 com.liferay.portal.service.ServiceContext serviceContext)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException {
339 return getService()
340 .updateLayoutSetBranch(layoutSetBranchId, name, description,
341 serviceContext);
342 }
343
344 public static LayoutSetBranchLocalService getService() {
345 if (_service == null) {
346 _service = (LayoutSetBranchLocalService)PortalBeanLocatorUtil.locate(LayoutSetBranchLocalService.class.getName());
347
348 ReferenceRegistry.registerReference(LayoutSetBranchLocalServiceUtil.class,
349 "_service");
350 MethodCache.remove(LayoutSetBranchLocalService.class);
351 }
352
353 return _service;
354 }
355
356 public void setService(LayoutSetBranchLocalService service) {
357 MethodCache.remove(LayoutSetBranchLocalService.class);
358
359 _service = service;
360
361 ReferenceRegistry.registerReference(LayoutSetBranchLocalServiceUtil.class,
362 "_service");
363 MethodCache.remove(LayoutSetBranchLocalService.class);
364 }
365
366 private static LayoutSetBranchLocalService _service;
367 }