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