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.ReferenceRegistry;
019
020
033 public class DDMContentLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent addDDMContent(
048 com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addDDMContent(ddmContent);
051 }
052
053
059 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent createDDMContent(
060 long contentId) {
061 return getService().createDDMContent(contentId);
062 }
063
064
072 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent deleteDDMContent(
073 long contentId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteDDMContent(contentId);
077 }
078
079
086 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent deleteDDMContent(
087 com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteDDMContent(ddmContent);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchDDMContent(
168 long contentId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchDDMContent(contentId);
171 }
172
173
181 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent getDDMContent(
182 long contentId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getDDMContent(contentId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
204 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent getDDMContentByUuidAndGroupId(
205 java.lang.String uuid, long groupId)
206 throws com.liferay.portal.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.SystemException {
208 return getService().getDDMContentByUuidAndGroupId(uuid, groupId);
209 }
210
211
223 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getDDMContents(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getDDMContents(start, end);
227 }
228
229
235 public static int getDDMContentsCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getDDMContentsCount();
238 }
239
240
247 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent updateDDMContent(
248 com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateDDMContent(ddmContent);
251 }
252
253
261 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent updateDDMContent(
262 com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent,
263 boolean merge)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 return getService().updateDDMContent(ddmContent, merge);
266 }
267
268
273 public static java.lang.String getBeanIdentifier() {
274 return getService().getBeanIdentifier();
275 }
276
277
282 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
283 getService().setBeanIdentifier(beanIdentifier);
284 }
285
286 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent addContent(
287 long userId, long groupId, java.lang.String name,
288 java.lang.String description, java.lang.String xml,
289 com.liferay.portal.service.ServiceContext serviceContext)
290 throws com.liferay.portal.kernel.exception.PortalException,
291 com.liferay.portal.kernel.exception.SystemException {
292 return getService()
293 .addContent(userId, groupId, name, description, xml,
294 serviceContext);
295 }
296
297 public static void deleteContent(
298 com.liferay.portlet.dynamicdatamapping.model.DDMContent content)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 getService().deleteContent(content);
301 }
302
303 public static void deleteContents(long groupId)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 getService().deleteContents(groupId);
306 }
307
308 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent getContent(
309 long contentId)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException {
312 return getService().getContent(contentId);
313 }
314
315 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents()
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return getService().getContents();
318 }
319
320 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents(
321 long groupId)
322 throws com.liferay.portal.kernel.exception.SystemException {
323 return getService().getContents(groupId);
324 }
325
326 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> getContents(
327 long groupId, int start, int end)
328 throws com.liferay.portal.kernel.exception.SystemException {
329 return getService().getContents(groupId, start, end);
330 }
331
332 public static int getContentsCount(long groupId)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getService().getContentsCount(groupId);
335 }
336
337 public static com.liferay.portlet.dynamicdatamapping.model.DDMContent updateContent(
338 long contentId, java.lang.String name, java.lang.String description,
339 java.lang.String xml,
340 com.liferay.portal.service.ServiceContext serviceContext)
341 throws com.liferay.portal.kernel.exception.PortalException,
342 com.liferay.portal.kernel.exception.SystemException {
343 return getService()
344 .updateContent(contentId, name, description, xml,
345 serviceContext);
346 }
347
348 public static DDMContentLocalService getService() {
349 if (_service == null) {
350 _service = (DDMContentLocalService)PortalBeanLocatorUtil.locate(DDMContentLocalService.class.getName());
351
352 ReferenceRegistry.registerReference(DDMContentLocalServiceUtil.class,
353 "_service");
354 }
355
356 return _service;
357 }
358
359
362 public void setService(DDMContentLocalService service) {
363 }
364
365 private static DDMContentLocalService _service;
366 }