001
014
015 package com.liferay.portal.kernel.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 public static com.liferay.portal.kernel.model.LayoutBranch addLayoutBranch(
044 long layoutRevisionId, java.lang.String name,
045 java.lang.String description, boolean master,
046 ServiceContext serviceContext)
047 throws com.liferay.portal.kernel.exception.PortalException {
048 return getService()
049 .addLayoutBranch(layoutRevisionId, name, description,
050 master, serviceContext);
051 }
052
053 public static com.liferay.portal.kernel.model.LayoutBranch updateLayoutBranch(
054 long layoutBranchId, java.lang.String name,
055 java.lang.String description, ServiceContext serviceContext)
056 throws com.liferay.portal.kernel.exception.PortalException {
057 return getService()
058 .updateLayoutBranch(layoutBranchId, name, description,
059 serviceContext);
060 }
061
062
067 public static java.lang.String getOSGiServiceIdentifier() {
068 return getService().getOSGiServiceIdentifier();
069 }
070
071 public static void deleteLayoutBranch(long layoutBranchId)
072 throws com.liferay.portal.kernel.exception.PortalException {
073 getService().deleteLayoutBranch(layoutBranchId);
074 }
075
076 public static LayoutBranchService getService() {
077 if (_service == null) {
078 _service = (LayoutBranchService)PortalBeanLocatorUtil.locate(LayoutBranchService.class.getName());
079
080 ReferenceRegistry.registerReference(LayoutBranchServiceUtil.class,
081 "_service");
082 }
083
084 return _service;
085 }
086
087 private static LayoutBranchService _service;
088 }