001
014
015 package com.liferay.portlet.dynamicdatamapping.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class DDMContentLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent addDDMContent(
049 com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addDDMContent(ddmContent);
052 }
053
054
060 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent createDDMContent(
061 long contentId) {
062 return getService().createDDMContent(contentId);
063 }
064
065
072 public static void deleteDDMContent(long contentId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteDDMContent(contentId);
076 }
077
078
084 public static void deleteDDMContent(
085 com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteDDMContent(ddmContent);
088 }
089
090
097 @SuppressWarnings("rawtypes")
098 public static java.util.List dynamicQuery(
099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().dynamicQuery(dynamicQuery);
102 }
103
104
117 @SuppressWarnings("rawtypes")
118 public static java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().dynamicQuery(dynamicQuery, start, end);
122 }
123
124
138 @SuppressWarnings("rawtypes")
139 public static java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getService()
145 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146 }
147
148
155 public static long dynamicQueryCount(
156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().dynamicQueryCount(dynamicQuery);
159 }
160
161 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchDDMContent(
162 long contentId)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().fetchDDMContent(contentId);
165 }
166
167
175 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent getDDMContent(
176 long contentId)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException {
179 return getService().getDDMContent(contentId);
180 }
181
182 public static com.liferay.portal.model.PersistedModel getPersistedModel(
183 java.io.Serializable primaryKeyObj)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException {
186 return getService().getPersistedModel(primaryKeyObj);
187 }
188
189
198 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent getDDMContentByUuidAndGroupId(
199 java.lang.String uuid, long groupId)
200 throws com.liferay.portal.kernel.exception.PortalException,
201 com.liferay.portal.kernel.exception.SystemException {
202 return getService().getDDMContentByUuidAndGroupId(uuid, groupId);
203 }
204
205
217 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getDDMContents(
218 int start, int end)
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getService().getDDMContents(start, end);
221 }
222
223
229 public static int getDDMContentsCount()
230 throws com.liferay.portal.kernel.exception.SystemException {
231 return getService().getDDMContentsCount();
232 }
233
234
241 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent updateDDMContent(
242 com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
243 throws com.liferay.portal.kernel.exception.SystemException {
244 return getService().updateDDMContent(ddmContent);
245 }
246
247
255 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent updateDDMContent(
256 com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent,
257 boolean merge)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 return getService().updateDDMContent(ddmContent, merge);
260 }
261
262
267 public static java.lang.String getBeanIdentifier() {
268 return getService().getBeanIdentifier();
269 }
270
271
276 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
277 getService().setBeanIdentifier(beanIdentifier);
278 }
279
280 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent addContent(
281 long userId, long groupId, java.lang.String name,
282 java.lang.String description, java.lang.String xml,
283 com.liferay.portal.service.ServiceContext serviceContext)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException {
286 return getService()
287 .addContent(userId, groupId, name, description, xml,
288 serviceContext);
289 }
290
291 public static void deleteContent(
292 com.liferay.portlet.dynamicdatamapping.model.DDMContent content)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 getService().deleteContent(content);
295 }
296
297 public static void deleteContents(long groupId)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 getService().deleteContents(groupId);
300 }
301
302 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent getContent(
303 long contentId)
304 throws com.liferay.portal.kernel.exception.PortalException,
305 com.liferay.portal.kernel.exception.SystemException {
306 return getService().getContent(contentId);
307 }
308
309 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents()
310 throws com.liferay.portal.kernel.exception.SystemException {
311 return getService().getContents();
312 }
313
314 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents(
315 long groupId)
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return getService().getContents(groupId);
318 }
319
320 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents(
321 long groupId, int start, int end)
322 throws com.liferay.portal.kernel.exception.SystemException {
323 return getService().getContents(groupId, start, end);
324 }
325
326 public static int getContentsCount(long groupId)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 return getService().getContentsCount(groupId);
329 }
330
331 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent updateContent(
332 long contentId, java.lang.String name, java.lang.String description,
333 java.lang.String xml,
334 com.liferay.portal.service.ServiceContext serviceContext)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException {
337 return getService()
338 .updateContent(contentId, name, description, xml,
339 serviceContext);
340 }
341
342 public static DDMContentLocalService getService() {
343 if (_service == null) {
344 _service = (DDMContentLocalService)PortalBeanLocatorUtil.locate(DDMContentLocalService.class.getName());
345
346 ReferenceRegistry.registerReference(DDMContentLocalServiceUtil.class,
347 "_service");
348 MethodCache.remove(DDMContentLocalService.class);
349 }
350
351 return _service;
352 }
353
354 public void setService(DDMContentLocalService service) {
355 MethodCache.remove(DDMContentLocalService.class);
356
357 _service = service;
358
359 ReferenceRegistry.registerReference(DDMContentLocalServiceUtil.class,
360 "_service");
361 MethodCache.remove(DDMContentLocalService.class);
362 }
363
364 private static DDMContentLocalService _service;
365 }