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 LayoutBranchServiceUtil {
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 com.liferay.portal.model.LayoutBranch addLayoutBranch(
063 long layoutRevisionId, java.lang.String name,
064 java.lang.String description, boolean master,
065 com.liferay.portal.service.ServiceContext serviceContext)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException {
068 return getService()
069 .addLayoutBranch(layoutRevisionId, name, description,
070 master, serviceContext);
071 }
072
073 public static void deleteLayoutBranch(long layoutBranchId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 getService().deleteLayoutBranch(layoutBranchId);
077 }
078
079 public static com.liferay.portal.model.LayoutBranch updateLayoutBranch(
080 long layoutBranchId, java.lang.String name,
081 java.lang.String description,
082 com.liferay.portal.service.ServiceContext serviceContext)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException {
085 return getService()
086 .updateLayoutBranch(layoutBranchId, name, description,
087 serviceContext);
088 }
089
090 public static LayoutBranchService getService() {
091 if (_service == null) {
092 _service = (LayoutBranchService)PortalBeanLocatorUtil.locate(LayoutBranchService.class.getName());
093
094 ReferenceRegistry.registerReference(LayoutBranchServiceUtil.class,
095 "_service");
096 }
097
098 return _service;
099 }
100
101
104 public void setService(LayoutBranchService service) {
105 }
106
107 private static LayoutBranchService _service;
108 }