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 DDMTemplateLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addDDMTemplate(
048 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addDDMTemplate(ddmTemplate);
051 }
052
053
059 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate createDDMTemplate(
060 long templateId) {
061 return getService().createDDMTemplate(templateId);
062 }
063
064
072 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate deleteDDMTemplate(
073 long templateId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteDDMTemplate(templateId);
077 }
078
079
086 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate deleteDDMTemplate(
087 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteDDMTemplate(ddmTemplate);
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.DDMTemplate fetchDDMTemplate(
168 long templateId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchDDMTemplate(templateId);
171 }
172
173
181 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getDDMTemplate(
182 long templateId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getDDMTemplate(templateId);
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.DDMTemplate getDDMTemplateByUuidAndGroupId(
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().getDDMTemplateByUuidAndGroupId(uuid, groupId);
209 }
210
211
223 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getDDMTemplates(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getDDMTemplates(start, end);
227 }
228
229
235 public static int getDDMTemplatesCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getDDMTemplatesCount();
238 }
239
240
247 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateDDMTemplate(
248 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateDDMTemplate(ddmTemplate);
251 }
252
253
261 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateDDMTemplate(
262 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate,
263 boolean merge)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 return getService().updateDDMTemplate(ddmTemplate, 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.DDMTemplate addTemplate(
287 long userId, long groupId, long structureId,
288 java.util.Map<java.util.Locale, java.lang.String> nameMap,
289 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
290 java.lang.String type, java.lang.String mode,
291 java.lang.String language, java.lang.String script,
292 com.liferay.portal.service.ServiceContext serviceContext)
293 throws com.liferay.portal.kernel.exception.PortalException,
294 com.liferay.portal.kernel.exception.SystemException {
295 return getService()
296 .addTemplate(userId, groupId, structureId, nameMap,
297 descriptionMap, type, mode, language, script, serviceContext);
298 }
299
300 public static void addTemplateResources(
301 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template,
302 boolean addGroupPermissions, boolean addGuestPermissions)
303 throws com.liferay.portal.kernel.exception.PortalException,
304 com.liferay.portal.kernel.exception.SystemException {
305 getService()
306 .addTemplateResources(template, addGroupPermissions,
307 addGuestPermissions);
308 }
309
310 public static void addTemplateResources(
311 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template,
312 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
313 throws com.liferay.portal.kernel.exception.PortalException,
314 com.liferay.portal.kernel.exception.SystemException {
315 getService()
316 .addTemplateResources(template, groupPermissions, guestPermissions);
317 }
318
319 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> copyTemplates(
320 long userId, long structureId, long newStructureId,
321 java.lang.String type,
322 com.liferay.portal.service.ServiceContext serviceContext)
323 throws com.liferay.portal.kernel.exception.PortalException,
324 com.liferay.portal.kernel.exception.SystemException {
325 return getService()
326 .copyTemplates(userId, structureId, newStructureId, type,
327 serviceContext);
328 }
329
330 public static void deleteTemplate(
331 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException {
334 getService().deleteTemplate(template);
335 }
336
337 public static void deleteTemplate(long templateId)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException {
340 getService().deleteTemplate(templateId);
341 }
342
343 public static void deleteTemplates(long groupId)
344 throws com.liferay.portal.kernel.exception.PortalException,
345 com.liferay.portal.kernel.exception.SystemException {
346 getService().deleteTemplates(groupId);
347 }
348
349 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
350 long templateId)
351 throws com.liferay.portal.kernel.exception.PortalException,
352 com.liferay.portal.kernel.exception.SystemException {
353 return getService().getTemplate(templateId);
354 }
355
356 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
357 long structureId)
358 throws com.liferay.portal.kernel.exception.SystemException {
359 return getService().getTemplates(structureId);
360 }
361
362 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
363 long structureId, java.lang.String type)
364 throws com.liferay.portal.kernel.exception.SystemException {
365 return getService().getTemplates(structureId, type);
366 }
367
368 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
369 long structureId, java.lang.String type, java.lang.String mode)
370 throws com.liferay.portal.kernel.exception.SystemException {
371 return getService().getTemplates(structureId, type, mode);
372 }
373
374 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
375 long companyId, long groupId, long structureId,
376 java.lang.String keywords, java.lang.String type,
377 java.lang.String mode, int start, int end,
378 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379 throws com.liferay.portal.kernel.exception.SystemException {
380 return getService()
381 .search(companyId, groupId, structureId, keywords, type,
382 mode, start, end, orderByComparator);
383 }
384
385 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
386 long companyId, long groupId, long structureId, java.lang.String name,
387 java.lang.String description, java.lang.String type,
388 java.lang.String mode, java.lang.String language, boolean andOperator,
389 int start, int end,
390 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 return getService()
393 .search(companyId, groupId, structureId, name, description,
394 type, mode, language, andOperator, start, end, orderByComparator);
395 }
396
397 public static int searchCount(long companyId, long groupId,
398 long structureId, java.lang.String keywords, java.lang.String type,
399 java.lang.String mode)
400 throws com.liferay.portal.kernel.exception.SystemException {
401 return getService()
402 .searchCount(companyId, groupId, structureId, keywords,
403 type, mode);
404 }
405
406 public static int searchCount(long companyId, long groupId,
407 long structureId, java.lang.String name, java.lang.String description,
408 java.lang.String type, java.lang.String mode,
409 java.lang.String language, boolean andOperator)
410 throws com.liferay.portal.kernel.exception.SystemException {
411 return getService()
412 .searchCount(companyId, groupId, structureId, name,
413 description, type, mode, language, andOperator);
414 }
415
416 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateTemplate(
417 long templateId,
418 java.util.Map<java.util.Locale, java.lang.String> nameMap,
419 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
420 java.lang.String type, java.lang.String mode,
421 java.lang.String language, java.lang.String script,
422 com.liferay.portal.service.ServiceContext serviceContext)
423 throws com.liferay.portal.kernel.exception.PortalException,
424 com.liferay.portal.kernel.exception.SystemException {
425 return getService()
426 .updateTemplate(templateId, nameMap, descriptionMap, type,
427 mode, language, script, serviceContext);
428 }
429
430 public static DDMTemplateLocalService getService() {
431 if (_service == null) {
432 _service = (DDMTemplateLocalService)PortalBeanLocatorUtil.locate(DDMTemplateLocalService.class.getName());
433
434 ReferenceRegistry.registerReference(DDMTemplateLocalServiceUtil.class,
435 "_service");
436 }
437
438 return _service;
439 }
440
441
444 public void setService(DDMTemplateLocalService service) {
445 }
446
447 private static DDMTemplateLocalService _service;
448 }