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
091 public static java.lang.String getBeanIdentifier() {
092 return getService().getBeanIdentifier();
093 }
094
095 public static com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
096 long layoutPrototypeId)
097 throws com.liferay.portal.kernel.exception.PortalException {
098 return getService().getLayoutPrototype(layoutPrototypeId);
099 }
100
101 public static java.util.List<com.liferay.portal.model.LayoutPrototype> search(
102 long companyId, java.lang.Boolean active,
103 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutPrototype> obc)
104 throws com.liferay.portal.kernel.exception.PortalException {
105 return getService().search(companyId, active, obc);
106 }
107
108
113 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
114 getService().setBeanIdentifier(beanIdentifier);
115 }
116
117
121 @Deprecated
122 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
123 long layoutPrototypeId,
124 java.util.Map<java.util.Locale, java.lang.String> nameMap,
125 java.lang.String description, boolean active)
126 throws com.liferay.portal.kernel.exception.PortalException {
127 return getService()
128 .updateLayoutPrototype(layoutPrototypeId, nameMap,
129 description, active);
130 }
131
132
136 @Deprecated
137 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
138 long layoutPrototypeId,
139 java.util.Map<java.util.Locale, java.lang.String> nameMap,
140 java.lang.String description, boolean active,
141 com.liferay.portal.service.ServiceContext serviceContext)
142 throws com.liferay.portal.kernel.exception.PortalException {
143 return getService()
144 .updateLayoutPrototype(layoutPrototypeId, nameMap,
145 description, active, serviceContext);
146 }
147
148 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
149 long layoutPrototypeId,
150 java.util.Map<java.util.Locale, java.lang.String> nameMap,
151 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
152 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
153 throws com.liferay.portal.kernel.exception.PortalException {
154 return getService()
155 .updateLayoutPrototype(layoutPrototypeId, nameMap,
156 descriptionMap, active, serviceContext);
157 }
158
159 public static LayoutPrototypeService getService() {
160 if (_service == null) {
161 _service = (LayoutPrototypeService)PortalBeanLocatorUtil.locate(LayoutPrototypeService.class.getName());
162
163 ReferenceRegistry.registerReference(LayoutPrototypeServiceUtil.class,
164 "_service");
165 }
166
167 return _service;
168 }
169
170
173 @Deprecated
174 public void setService(LayoutPrototypeService service) {
175 }
176
177 private static LayoutPrototypeService _service;
178 }