001
014
015 package com.liferay.portlet.journal.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 JournalTemplateLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
049 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addJournalTemplate(journalTemplate);
052 }
053
054
060 public static com.liferay.portlet.journal.model.JournalTemplate createJournalTemplate(
061 long id) {
062 return getService().createJournalTemplate(id);
063 }
064
065
072 public static void deleteJournalTemplate(long id)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteJournalTemplate(id);
076 }
077
078
084 public static void deleteJournalTemplate(
085 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteJournalTemplate(journalTemplate);
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.journal.model.JournalTemplate fetchJournalTemplate(
162 long id) throws com.liferay.portal.kernel.exception.SystemException {
163 return getService().fetchJournalTemplate(id);
164 }
165
166
174 public static com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
175 long id)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException {
178 return getService().getJournalTemplate(id);
179 }
180
181 public static com.liferay.portal.model.PersistedModel getPersistedModel(
182 java.io.Serializable primaryKeyObj)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getPersistedModel(primaryKeyObj);
186 }
187
188
197 public static com.liferay.portlet.journal.model.JournalTemplate getJournalTemplateByUuidAndGroupId(
198 java.lang.String uuid, long groupId)
199 throws com.liferay.portal.kernel.exception.PortalException,
200 com.liferay.portal.kernel.exception.SystemException {
201 return getService().getJournalTemplateByUuidAndGroupId(uuid, groupId);
202 }
203
204
216 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
217 int start, int end)
218 throws com.liferay.portal.kernel.exception.SystemException {
219 return getService().getJournalTemplates(start, end);
220 }
221
222
228 public static int getJournalTemplatesCount()
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getService().getJournalTemplatesCount();
231 }
232
233
240 public static com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
241 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getService().updateJournalTemplate(journalTemplate);
244 }
245
246
254 public static com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
255 com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
256 boolean merge)
257 throws com.liferay.portal.kernel.exception.SystemException {
258 return getService().updateJournalTemplate(journalTemplate, merge);
259 }
260
261
266 public static java.lang.String getBeanIdentifier() {
267 return getService().getBeanIdentifier();
268 }
269
270
275 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
276 getService().setBeanIdentifier(beanIdentifier);
277 }
278
279 public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
280 long userId, long groupId, java.lang.String templateId,
281 boolean autoTemplateId, java.lang.String structureId,
282 java.util.Map<java.util.Locale, java.lang.String> nameMap,
283 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
284 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
285 boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
286 java.io.File smallImageFile,
287 com.liferay.portal.service.ServiceContext serviceContext)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException {
290 return getService()
291 .addTemplate(userId, groupId, templateId, autoTemplateId,
292 structureId, nameMap, descriptionMap, xsl, formatXsl, langType,
293 cacheable, smallImage, smallImageURL, smallImageFile, serviceContext);
294 }
295
296 public static void addTemplateResources(
297 com.liferay.portlet.journal.model.JournalTemplate template,
298 boolean addGroupPermissions, boolean addGuestPermissions)
299 throws com.liferay.portal.kernel.exception.PortalException,
300 com.liferay.portal.kernel.exception.SystemException {
301 getService()
302 .addTemplateResources(template, addGroupPermissions,
303 addGuestPermissions);
304 }
305
306 public static void addTemplateResources(
307 com.liferay.portlet.journal.model.JournalTemplate template,
308 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 getService()
312 .addTemplateResources(template, groupPermissions, guestPermissions);
313 }
314
315 public static void addTemplateResources(long groupId,
316 java.lang.String templateId, boolean addGroupPermissions,
317 boolean addGuestPermissions)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException {
320 getService()
321 .addTemplateResources(groupId, templateId, addGroupPermissions,
322 addGuestPermissions);
323 }
324
325 public static void addTemplateResources(long groupId,
326 java.lang.String templateId, java.lang.String[] groupPermissions,
327 java.lang.String[] guestPermissions)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException {
330 getService()
331 .addTemplateResources(groupId, templateId, groupPermissions,
332 guestPermissions);
333 }
334
335 public static void checkNewLine(long groupId, java.lang.String templateId)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException {
338 getService().checkNewLine(groupId, templateId);
339 }
340
341 public static com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
342 long userId, long groupId, java.lang.String oldTemplateId,
343 java.lang.String newTemplateId, boolean autoTemplateId)
344 throws com.liferay.portal.kernel.exception.PortalException,
345 com.liferay.portal.kernel.exception.SystemException {
346 return getService()
347 .copyTemplate(userId, groupId, oldTemplateId, newTemplateId,
348 autoTemplateId);
349 }
350
351 public static void deleteTemplate(
352 com.liferay.portlet.journal.model.JournalTemplate template)
353 throws com.liferay.portal.kernel.exception.PortalException,
354 com.liferay.portal.kernel.exception.SystemException {
355 getService().deleteTemplate(template);
356 }
357
358 public static void deleteTemplate(long groupId, java.lang.String templateId)
359 throws com.liferay.portal.kernel.exception.PortalException,
360 com.liferay.portal.kernel.exception.SystemException {
361 getService().deleteTemplate(groupId, templateId);
362 }
363
364 public static void deleteTemplates(long groupId)
365 throws com.liferay.portal.kernel.exception.PortalException,
366 com.liferay.portal.kernel.exception.SystemException {
367 getService().deleteTemplates(groupId);
368 }
369
370 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
371 long groupId, java.lang.String structureId)
372 throws com.liferay.portal.kernel.exception.SystemException {
373 return getService().getStructureTemplates(groupId, structureId);
374 }
375
376 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
377 long groupId, java.lang.String structureId, int start, int end)
378 throws com.liferay.portal.kernel.exception.SystemException {
379 return getService()
380 .getStructureTemplates(groupId, structureId, start, end);
381 }
382
383 public static int getStructureTemplatesCount(long groupId,
384 java.lang.String structureId)
385 throws com.liferay.portal.kernel.exception.SystemException {
386 return getService().getStructureTemplatesCount(groupId, structureId);
387 }
388
389 public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
390 long id)
391 throws com.liferay.portal.kernel.exception.PortalException,
392 com.liferay.portal.kernel.exception.SystemException {
393 return getService().getTemplate(id);
394 }
395
396 public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
397 long groupId, java.lang.String templateId)
398 throws com.liferay.portal.kernel.exception.PortalException,
399 com.liferay.portal.kernel.exception.SystemException {
400 return getService().getTemplate(groupId, templateId);
401 }
402
403 public static com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
404 long smallImageId)
405 throws com.liferay.portal.kernel.exception.PortalException,
406 com.liferay.portal.kernel.exception.SystemException {
407 return getService().getTemplateBySmallImageId(smallImageId);
408 }
409
410 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
411 throws com.liferay.portal.kernel.exception.SystemException {
412 return getService().getTemplates();
413 }
414
415 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
416 long groupId)
417 throws com.liferay.portal.kernel.exception.SystemException {
418 return getService().getTemplates(groupId);
419 }
420
421 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
422 long groupId, int start, int end)
423 throws com.liferay.portal.kernel.exception.SystemException {
424 return getService().getTemplates(groupId, start, end);
425 }
426
427 public static int getTemplatesCount(long groupId)
428 throws com.liferay.portal.kernel.exception.SystemException {
429 return getService().getTemplatesCount(groupId);
430 }
431
432 public static boolean hasTemplate(long groupId, java.lang.String templateId)
433 throws com.liferay.portal.kernel.exception.SystemException {
434 return getService().hasTemplate(groupId, templateId);
435 }
436
437 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
438 long companyId, long[] groupIds, java.lang.String keywords,
439 java.lang.String structureId, java.lang.String structureIdComparator,
440 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
441 throws com.liferay.portal.kernel.exception.SystemException {
442 return getService()
443 .search(companyId, groupIds, keywords, structureId,
444 structureIdComparator, start, end, obc);
445 }
446
447 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
448 long companyId, long[] groupIds, java.lang.String templateId,
449 java.lang.String structureId, java.lang.String structureIdComparator,
450 java.lang.String name, java.lang.String description,
451 boolean andOperator, int start, int end,
452 com.liferay.portal.kernel.util.OrderByComparator obc)
453 throws com.liferay.portal.kernel.exception.SystemException {
454 return getService()
455 .search(companyId, groupIds, templateId, structureId,
456 structureIdComparator, name, description, andOperator, start, end,
457 obc);
458 }
459
460 public static int searchCount(long companyId, long[] groupIds,
461 java.lang.String keywords, java.lang.String structureId,
462 java.lang.String structureIdComparator)
463 throws com.liferay.portal.kernel.exception.SystemException {
464 return getService()
465 .searchCount(companyId, groupIds, keywords, structureId,
466 structureIdComparator);
467 }
468
469 public static int searchCount(long companyId, long[] groupIds,
470 java.lang.String templateId, java.lang.String structureId,
471 java.lang.String structureIdComparator, java.lang.String name,
472 java.lang.String description, boolean andOperator)
473 throws com.liferay.portal.kernel.exception.SystemException {
474 return getService()
475 .searchCount(companyId, groupIds, templateId, structureId,
476 structureIdComparator, name, description, andOperator);
477 }
478
479 public static com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
480 long groupId, java.lang.String templateId,
481 java.lang.String structureId,
482 java.util.Map<java.util.Locale, java.lang.String> nameMap,
483 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
484 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
485 boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
486 java.io.File smallImageFile,
487 com.liferay.portal.service.ServiceContext serviceContext)
488 throws com.liferay.portal.kernel.exception.PortalException,
489 com.liferay.portal.kernel.exception.SystemException {
490 return getService()
491 .updateTemplate(groupId, templateId, structureId, nameMap,
492 descriptionMap, xsl, formatXsl, langType, cacheable, smallImage,
493 smallImageURL, smallImageFile, serviceContext);
494 }
495
496 public static JournalTemplateLocalService getService() {
497 if (_service == null) {
498 _service = (JournalTemplateLocalService)PortalBeanLocatorUtil.locate(JournalTemplateLocalService.class.getName());
499
500 ReferenceRegistry.registerReference(JournalTemplateLocalServiceUtil.class,
501 "_service");
502 MethodCache.remove(JournalTemplateLocalService.class);
503 }
504
505 return _service;
506 }
507
508 public void setService(JournalTemplateLocalService service) {
509 MethodCache.remove(JournalTemplateLocalService.class);
510
511 _service = service;
512
513 ReferenceRegistry.registerReference(JournalTemplateLocalServiceUtil.class,
514 "_service");
515 MethodCache.remove(JournalTemplateLocalService.class);
516 }
517
518 private static JournalTemplateLocalService _service;
519 }