001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class LayoutPrototypeServiceUtil {
033 public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
034 java.util.Map<java.util.Locale, java.lang.String> nameMap,
035 java.lang.String description, boolean active)
036 throws com.liferay.portal.kernel.exception.PortalException,
037 com.liferay.portal.kernel.exception.SystemException {
038 return getService().addLayoutPrototype(nameMap, description, active);
039 }
040
041 public static void deleteLayoutPrototype(long layoutPrototypeId)
042 throws com.liferay.portal.kernel.exception.PortalException,
043 com.liferay.portal.kernel.exception.SystemException {
044 getService().deleteLayoutPrototype(layoutPrototypeId);
045 }
046
047 public static com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
048 long layoutPrototypeId)
049 throws com.liferay.portal.kernel.exception.PortalException,
050 com.liferay.portal.kernel.exception.SystemException {
051 return getService().getLayoutPrototype(layoutPrototypeId);
052 }
053
054 public static java.util.List<com.liferay.portal.model.LayoutPrototype> search(
055 long companyId, java.lang.Boolean active,
056 com.liferay.portal.kernel.util.OrderByComparator obc)
057 throws com.liferay.portal.kernel.exception.PortalException,
058 com.liferay.portal.kernel.exception.SystemException {
059 return getService().search(companyId, active, obc);
060 }
061
062 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
063 long layoutPrototypeId,
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()
069 .updateLayoutPrototype(layoutPrototypeId, nameMap,
070 description, active);
071 }
072
073 public static LayoutPrototypeService getService() {
074 if (_service == null) {
075 _service = (LayoutPrototypeService)PortalBeanLocatorUtil.locate(LayoutPrototypeService.class.getName());
076 }
077
078 return _service;
079 }
080
081 public void setService(LayoutPrototypeService service) {
082 _service = service;
083 }
084
085 private static LayoutPrototypeService _service;
086 }