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
034 public class LayoutPrototypeServiceUtil {
035
040
041
046 public static java.lang.String getBeanIdentifier() {
047 return getService().getBeanIdentifier();
048 }
049
050
055 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056 getService().setBeanIdentifier(beanIdentifier);
057 }
058
059
063 public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
064 java.util.Map<java.util.Locale, java.lang.String> nameMap,
065 java.lang.String description, boolean active)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException {
068 return getService().addLayoutPrototype(nameMap, description, active);
069 }
070
071 public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
072 java.util.Map<java.util.Locale, java.lang.String> nameMap,
073 java.lang.String description, boolean active,
074 com.liferay.portal.service.ServiceContext serviceContext)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService()
078 .addLayoutPrototype(nameMap, description, active,
079 serviceContext);
080 }
081
082 public static void deleteLayoutPrototype(long layoutPrototypeId)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException {
085 getService().deleteLayoutPrototype(layoutPrototypeId);
086 }
087
088 public static com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
089 long layoutPrototypeId)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException {
092 return getService().getLayoutPrototype(layoutPrototypeId);
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 obc)
098 throws com.liferay.portal.kernel.exception.PortalException,
099 com.liferay.portal.kernel.exception.SystemException {
100 return getService().search(companyId, active, obc);
101 }
102
103
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 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException {
113 return getService()
114 .updateLayoutPrototype(layoutPrototypeId, nameMap,
115 description, active);
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.lang.String description, boolean active,
122 com.liferay.portal.service.ServiceContext serviceContext)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException {
125 return getService()
126 .updateLayoutPrototype(layoutPrototypeId, nameMap,
127 description, active, serviceContext);
128 }
129
130 public static LayoutPrototypeService getService() {
131 if (_service == null) {
132 _service = (LayoutPrototypeService)PortalBeanLocatorUtil.locate(LayoutPrototypeService.class.getName());
133
134 ReferenceRegistry.registerReference(LayoutPrototypeServiceUtil.class,
135 "_service");
136 }
137
138 return _service;
139 }
140
141
144 public void setService(LayoutPrototypeService service) {
145 }
146
147 private static LayoutPrototypeService _service;
148 }