001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
034 public class LayoutSetBranchServiceUtil {
035
040
041
046 public static java.lang.String getBeanIdentifier() {
047 return getService().getBeanIdentifier();
048 }
049
050
055 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056 getService().setBeanIdentifier(beanIdentifier);
057 }
058
059 public static com.liferay.portal.model.LayoutSetBranch addLayoutSetBranch(
060 long groupId, boolean privateLayout, java.lang.String name,
061 java.lang.String description, boolean master,
062 long copyLayoutSetBranchId,
063 com.liferay.portal.service.ServiceContext serviceContext)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException {
066 return getService()
067 .addLayoutSetBranch(groupId, privateLayout, name,
068 description, master, copyLayoutSetBranchId, serviceContext);
069 }
070
071 public static void deleteLayoutSetBranch(long layoutSetBranchId)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException {
074 getService().deleteLayoutSetBranch(layoutSetBranchId);
075 }
076
077 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranches(
078 long groupId, boolean privateLayout)
079 throws com.liferay.portal.kernel.exception.SystemException {
080 return getService().getLayoutSetBranches(groupId, privateLayout);
081 }
082
083 public static com.liferay.portal.model.LayoutSetBranch mergeLayoutSetBranch(
084 long layoutSetBranchId, long mergeLayoutSetBranchId,
085 com.liferay.portal.service.ServiceContext serviceContext)
086 throws com.liferay.portal.kernel.exception.PortalException,
087 com.liferay.portal.kernel.exception.SystemException {
088 return getService()
089 .mergeLayoutSetBranch(layoutSetBranchId,
090 mergeLayoutSetBranchId, serviceContext);
091 }
092
093 public static com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
094 long groupId, long layoutSetBranchId, java.lang.String name,
095 java.lang.String description,
096 com.liferay.portal.service.ServiceContext serviceContext)
097 throws com.liferay.portal.kernel.exception.PortalException,
098 com.liferay.portal.kernel.exception.SystemException {
099 return getService()
100 .updateLayoutSetBranch(groupId, layoutSetBranchId, name,
101 description, serviceContext);
102 }
103
104 public static LayoutSetBranchService getService() {
105 if (_service == null) {
106 _service = (LayoutSetBranchService)PortalBeanLocatorUtil.locate(LayoutSetBranchService.class.getName());
107
108 ReferenceRegistry.registerReference(LayoutSetBranchServiceUtil.class,
109 "_service");
110 }
111
112 return _service;
113 }
114
115
118 public void setService(LayoutSetBranchService service) {
119 }
120
121 private static LayoutSetBranchService _service;
122 }