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 LayoutPrototypeServiceUtil {
038
043
044
048 @Deprecated
049 public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
050 java.util.Map<java.util.Locale, java.lang.String> nameMap,
051 java.lang.String description, boolean active)
052 throws com.liferay.portal.kernel.exception.PortalException {
053 return getService().addLayoutPrototype(nameMap, description, active);
054 }
055
056
060 @Deprecated
061 public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
062 java.util.Map<java.util.Locale, java.lang.String> nameMap,
063 java.lang.String description, boolean active,
064 com.liferay.portal.service.ServiceContext serviceContext)
065 throws com.liferay.portal.kernel.exception.PortalException {
066 return getService()
067 .addLayoutPrototype(nameMap, description, active,
068 serviceContext);
069 }
070
071 public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
072 java.util.Map<java.util.Locale, java.lang.String> nameMap,
073 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
074 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
075 throws com.liferay.portal.kernel.exception.PortalException {
076 return getService()
077 .addLayoutPrototype(nameMap, descriptionMap, active,
078 serviceContext);
079 }
080
081 public static void deleteLayoutPrototype(long layoutPrototypeId)
082 throws com.liferay.portal.kernel.exception.PortalException {
083 getService().deleteLayoutPrototype(layoutPrototypeId);
084 }
085
086 public static com.liferay.portal.model.LayoutPrototype fetchLayoutPrototype(
087 long layoutPrototypeId)
088 throws com.liferay.portal.kernel.exception.PortalException {
089 return getService().fetchLayoutPrototype(layoutPrototypeId);
090 }
091
092 public static com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
093 long layoutPrototypeId)
094 throws com.liferay.portal.kernel.exception.PortalException {
095 return getService().getLayoutPrototype(layoutPrototypeId);
096 }
097
098
103 public static java.lang.String getOSGiServiceIdentifier() {
104 return getService().getOSGiServiceIdentifier();
105 }
106
107 public static java.util.List<com.liferay.portal.model.LayoutPrototype> search(
108 long companyId, java.lang.Boolean active,
109 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutPrototype> obc)
110 throws com.liferay.portal.kernel.exception.PortalException {
111 return getService().search(companyId, active, obc);
112 }
113
114
118 @Deprecated
119 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
120 long layoutPrototypeId,
121 java.util.Map<java.util.Locale, java.lang.String> nameMap,
122 java.lang.String description, boolean active)
123 throws com.liferay.portal.kernel.exception.PortalException {
124 return getService()
125 .updateLayoutPrototype(layoutPrototypeId, nameMap,
126 description, active);
127 }
128
129
133 @Deprecated
134 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
135 long layoutPrototypeId,
136 java.util.Map<java.util.Locale, java.lang.String> nameMap,
137 java.lang.String description, boolean active,
138 com.liferay.portal.service.ServiceContext serviceContext)
139 throws com.liferay.portal.kernel.exception.PortalException {
140 return getService()
141 .updateLayoutPrototype(layoutPrototypeId, nameMap,
142 description, active, serviceContext);
143 }
144
145 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
146 long layoutPrototypeId,
147 java.util.Map<java.util.Locale, java.lang.String> nameMap,
148 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
149 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
150 throws com.liferay.portal.kernel.exception.PortalException {
151 return getService()
152 .updateLayoutPrototype(layoutPrototypeId, nameMap,
153 descriptionMap, active, serviceContext);
154 }
155
156 public static LayoutPrototypeService getService() {
157 if (_service == null) {
158 _service = (LayoutPrototypeService)PortalBeanLocatorUtil.locate(LayoutPrototypeService.class.getName());
159
160 ReferenceRegistry.registerReference(LayoutPrototypeServiceUtil.class,
161 "_service");
162 }
163
164 return _service;
165 }
166
167 private static LayoutPrototypeService _service;
168 }