1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class LayoutPrototypeLocalServiceUtil {
40 public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
41 com.liferay.portal.model.LayoutPrototype layoutPrototype)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addLayoutPrototype(layoutPrototype);
44 }
45
46 public static com.liferay.portal.model.LayoutPrototype createLayoutPrototype(
47 long layoutPrototypeId) {
48 return getService().createLayoutPrototype(layoutPrototypeId);
49 }
50
51 public static void deleteLayoutPrototype(long layoutPrototypeId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteLayoutPrototype(layoutPrototypeId);
55 }
56
57 public static void deleteLayoutPrototype(
58 com.liferay.portal.model.LayoutPrototype layoutPrototype)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteLayoutPrototype(layoutPrototype);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.kernel.exception.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.kernel.exception.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
91 long layoutPrototypeId)
92 throws com.liferay.portal.kernel.exception.PortalException,
93 com.liferay.portal.kernel.exception.SystemException {
94 return getService().getLayoutPrototype(layoutPrototypeId);
95 }
96
97 public static java.util.List<com.liferay.portal.model.LayoutPrototype> getLayoutPrototypes(
98 int start, int end)
99 throws com.liferay.portal.kernel.exception.SystemException {
100 return getService().getLayoutPrototypes(start, end);
101 }
102
103 public static int getLayoutPrototypesCount()
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().getLayoutPrototypesCount();
106 }
107
108 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
109 com.liferay.portal.model.LayoutPrototype layoutPrototype)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().updateLayoutPrototype(layoutPrototype);
112 }
113
114 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
115 com.liferay.portal.model.LayoutPrototype layoutPrototype, boolean merge)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getService().updateLayoutPrototype(layoutPrototype, merge);
118 }
119
120 public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
121 long userId, long companyId,
122 java.util.Map<java.util.Locale, String> nameMap,
123 java.lang.String description, boolean active)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException {
126 return getService()
127 .addLayoutPrototype(userId, companyId, nameMap, description,
128 active);
129 }
130
131 public static java.util.List<com.liferay.portal.model.LayoutPrototype> search(
132 long companyId, java.lang.Boolean active, int start, int end,
133 com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.kernel.exception.SystemException {
135 return getService().search(companyId, active, start, end, obc);
136 }
137
138 public static int searchCount(long companyId, java.lang.Boolean active)
139 throws com.liferay.portal.kernel.exception.SystemException {
140 return getService().searchCount(companyId, active);
141 }
142
143 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
144 long layoutPrototypeId,
145 java.util.Map<java.util.Locale, String> nameMap,
146 java.lang.String description, boolean active)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException {
149 return getService()
150 .updateLayoutPrototype(layoutPrototypeId, nameMap,
151 description, active);
152 }
153
154 public static LayoutPrototypeLocalService getService() {
155 if (_service == null) {
156 _service = (LayoutPrototypeLocalService)PortalBeanLocatorUtil.locate(LayoutPrototypeLocalService.class.getName());
157 }
158
159 return _service;
160 }
161
162 public void setService(LayoutPrototypeLocalService service) {
163 _service = service;
164 }
165
166 private static LayoutPrototypeLocalService _service;
167 }