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 LayoutPrototypeServiceUtil {
038
043
044
048 @Deprecated
049 public static com.liferay.portal.kernel.model.LayoutPrototype addLayoutPrototype(
050 java.util.Map<java.util.Locale, java.lang.String> nameMap,
051 java.lang.String description, boolean active,
052 com.liferay.portal.kernel.service.ServiceContext serviceContext)
053 throws com.liferay.portal.kernel.exception.PortalException {
054 return getService()
055 .addLayoutPrototype(nameMap, description, active,
056 serviceContext);
057 }
058
059 public static com.liferay.portal.kernel.model.LayoutPrototype addLayoutPrototype(
060 java.util.Map<java.util.Locale, java.lang.String> nameMap,
061 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
062 boolean active,
063 com.liferay.portal.kernel.service.ServiceContext serviceContext)
064 throws com.liferay.portal.kernel.exception.PortalException {
065 return getService()
066 .addLayoutPrototype(nameMap, descriptionMap, active,
067 serviceContext);
068 }
069
070 public static void deleteLayoutPrototype(long layoutPrototypeId)
071 throws com.liferay.portal.kernel.exception.PortalException {
072 getService().deleteLayoutPrototype(layoutPrototypeId);
073 }
074
075 public static com.liferay.portal.kernel.model.LayoutPrototype fetchLayoutPrototype(
076 long layoutPrototypeId)
077 throws com.liferay.portal.kernel.exception.PortalException {
078 return getService().fetchLayoutPrototype(layoutPrototypeId);
079 }
080
081 public static com.liferay.portal.kernel.model.LayoutPrototype getLayoutPrototype(
082 long layoutPrototypeId)
083 throws com.liferay.portal.kernel.exception.PortalException {
084 return getService().getLayoutPrototype(layoutPrototypeId);
085 }
086
087
092 public static java.lang.String getOSGiServiceIdentifier() {
093 return getService().getOSGiServiceIdentifier();
094 }
095
096 public static java.util.List<com.liferay.portal.kernel.model.LayoutPrototype> search(
097 long companyId, java.lang.Boolean active,
098 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.LayoutPrototype> obc)
099 throws com.liferay.portal.kernel.exception.PortalException {
100 return getService().search(companyId, active, obc);
101 }
102
103
107 @Deprecated
108 public static com.liferay.portal.kernel.model.LayoutPrototype updateLayoutPrototype(
109 long layoutPrototypeId,
110 java.util.Map<java.util.Locale, java.lang.String> nameMap,
111 java.lang.String description, boolean active,
112 com.liferay.portal.kernel.service.ServiceContext serviceContext)
113 throws com.liferay.portal.kernel.exception.PortalException {
114 return getService()
115 .updateLayoutPrototype(layoutPrototypeId, nameMap,
116 description, active, serviceContext);
117 }
118
119 public static com.liferay.portal.kernel.model.LayoutPrototype updateLayoutPrototype(
120 long layoutPrototypeId,
121 java.util.Map<java.util.Locale, java.lang.String> nameMap,
122 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
123 boolean active,
124 com.liferay.portal.kernel.service.ServiceContext serviceContext)
125 throws com.liferay.portal.kernel.exception.PortalException {
126 return getService()
127 .updateLayoutPrototype(layoutPrototypeId, nameMap,
128 descriptionMap, active, serviceContext);
129 }
130
131 public static LayoutPrototypeService getService() {
132 if (_service == null) {
133 _service = (LayoutPrototypeService)PortalBeanLocatorUtil.locate(LayoutPrototypeService.class.getName());
134
135 ReferenceRegistry.registerReference(LayoutPrototypeServiceUtil.class,
136 "_service");
137 }
138
139 return _service;
140 }
141
142 private static LayoutPrototypeService _service;
143 }