001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class LayoutPrototypeServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058
062 public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
063 java.util.Map<java.util.Locale, java.lang.String> nameMap,
064 java.lang.String description, boolean active)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException {
067 return getService().addLayoutPrototype(nameMap, description, active);
068 }
069
070 public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
071 java.util.Map<java.util.Locale, java.lang.String> nameMap,
072 java.lang.String description, boolean active,
073 com.liferay.portal.service.ServiceContext serviceContext)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .addLayoutPrototype(nameMap, description, active,
078 serviceContext);
079 }
080
081 public static void deleteLayoutPrototype(long layoutPrototypeId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException {
084 getService().deleteLayoutPrototype(layoutPrototypeId);
085 }
086
087 public static com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
088 long layoutPrototypeId)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException {
091 return getService().getLayoutPrototype(layoutPrototypeId);
092 }
093
094 public static java.util.List<com.liferay.portal.model.LayoutPrototype> search(
095 long companyId, java.lang.Boolean active,
096 com.liferay.portal.kernel.util.OrderByComparator obc)
097 throws com.liferay.portal.kernel.exception.PortalException,
098 com.liferay.portal.kernel.exception.SystemException {
099 return getService().search(companyId, active, obc);
100 }
101
102
106 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
107 long layoutPrototypeId,
108 java.util.Map<java.util.Locale, java.lang.String> nameMap,
109 java.lang.String description, boolean active)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException {
112 return getService()
113 .updateLayoutPrototype(layoutPrototypeId, nameMap,
114 description, active);
115 }
116
117 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
118 long layoutPrototypeId,
119 java.util.Map<java.util.Locale, java.lang.String> nameMap,
120 java.lang.String description, boolean active,
121 com.liferay.portal.service.ServiceContext serviceContext)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException {
124 return getService()
125 .updateLayoutPrototype(layoutPrototypeId, nameMap,
126 description, 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
143 public void setService(LayoutPrototypeService service) {
144 }
145
146 private static LayoutPrototypeService _service;
147 }