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
097 public static java.lang.String getBeanIdentifier() {
098 return getService().getBeanIdentifier();
099 }
100
101 public static com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
102 long layoutPrototypeId)
103 throws com.liferay.portal.kernel.exception.PortalException {
104 return getService().getLayoutPrototype(layoutPrototypeId);
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
119 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
120 getService().setBeanIdentifier(beanIdentifier);
121 }
122
123
127 @Deprecated
128 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
129 long layoutPrototypeId,
130 java.util.Map<java.util.Locale, java.lang.String> nameMap,
131 java.lang.String description, boolean active)
132 throws com.liferay.portal.kernel.exception.PortalException {
133 return getService()
134 .updateLayoutPrototype(layoutPrototypeId, nameMap,
135 description, active);
136 }
137
138
142 @Deprecated
143 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
144 long layoutPrototypeId,
145 java.util.Map<java.util.Locale, java.lang.String> nameMap,
146 java.lang.String description, boolean active,
147 com.liferay.portal.service.ServiceContext serviceContext)
148 throws com.liferay.portal.kernel.exception.PortalException {
149 return getService()
150 .updateLayoutPrototype(layoutPrototypeId, nameMap,
151 description, active, serviceContext);
152 }
153
154 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
155 long layoutPrototypeId,
156 java.util.Map<java.util.Locale, java.lang.String> nameMap,
157 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
158 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
159 throws com.liferay.portal.kernel.exception.PortalException {
160 return getService()
161 .updateLayoutPrototype(layoutPrototypeId, nameMap,
162 descriptionMap, active, serviceContext);
163 }
164
165 public static LayoutPrototypeService getService() {
166 if (_service == null) {
167 _service = (LayoutPrototypeService)PortalBeanLocatorUtil.locate(LayoutPrototypeService.class.getName());
168
169 ReferenceRegistry.registerReference(LayoutPrototypeServiceUtil.class,
170 "_service");
171 }
172
173 return _service;
174 }
175
176
179 @Deprecated
180 public void setService(LayoutPrototypeService service) {
181 }
182
183 private static LayoutPrototypeService _service;
184 }