001
014
015 package com.liferay.portlet.announcements.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class AnnouncementsEntryServiceUtil {
037 public static com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
038 long plid, long classNameId, long classPK, java.lang.String title,
039 java.lang.String content, java.lang.String url, java.lang.String type,
040 int displayDateMonth, int displayDateDay, int displayDateYear,
041 int displayDateHour, int displayDateMinute, int expirationDateMonth,
042 int expirationDateDay, int expirationDateYear, int expirationDateHour,
043 int expirationDateMinute, int priority, boolean alert)
044 throws com.liferay.portal.kernel.exception.PortalException,
045 com.liferay.portal.kernel.exception.SystemException {
046 return getService()
047 .addEntry(plid, classNameId, classPK, title, content, url,
048 type, displayDateMonth, displayDateDay, displayDateYear,
049 displayDateHour, displayDateMinute, expirationDateMonth,
050 expirationDateDay, expirationDateYear, expirationDateHour,
051 expirationDateMinute, priority, alert);
052 }
053
054 public static void deleteEntry(long entryId)
055 throws com.liferay.portal.kernel.exception.PortalException,
056 com.liferay.portal.kernel.exception.SystemException {
057 getService().deleteEntry(entryId);
058 }
059
060 public static com.liferay.portlet.announcements.model.AnnouncementsEntry updateEntry(
061 long entryId, java.lang.String title, java.lang.String content,
062 java.lang.String url, java.lang.String type, int displayDateMonth,
063 int displayDateDay, int displayDateYear, int displayDateHour,
064 int displayDateMinute, int expirationDateMonth, int expirationDateDay,
065 int expirationDateYear, int expirationDateHour,
066 int expirationDateMinute, int priority)
067 throws com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException {
069 return getService()
070 .updateEntry(entryId, title, content, url, type,
071 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
072 displayDateMinute, expirationDateMonth, expirationDateDay,
073 expirationDateYear, expirationDateHour, expirationDateMinute,
074 priority);
075 }
076
077 public static AnnouncementsEntryService getService() {
078 if (_service == null) {
079 _service = (AnnouncementsEntryService)PortalBeanLocatorUtil.locate(AnnouncementsEntryService.class.getName());
080 }
081
082 return _service;
083 }
084
085 public void setService(AnnouncementsEntryService service) {
086 _service = service;
087 }
088
089 private static AnnouncementsEntryService _service;
090 }