001
014
015 package com.liferay.portlet.announcements.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class AnnouncementsEntryServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
059 long plid, long classNameId, long classPK, java.lang.String title,
060 java.lang.String content, java.lang.String url, java.lang.String type,
061 int displayDateMonth, int displayDateDay, int displayDateYear,
062 int displayDateHour, int displayDateMinute, boolean autoDisplayDate,
063 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
064 int expirationDateHour, int expirationDateMinute, int priority,
065 boolean alert)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException {
068 return getService()
069 .addEntry(plid, classNameId, classPK, title, content, url,
070 type, displayDateMonth, displayDateDay, displayDateYear,
071 displayDateHour, displayDateMinute, autoDisplayDate,
072 expirationDateMonth, expirationDateDay, expirationDateYear,
073 expirationDateHour, expirationDateMinute, priority, alert);
074 }
075
076
081 public static com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
082 long plid, long classNameId, long classPK, java.lang.String title,
083 java.lang.String content, java.lang.String url, java.lang.String type,
084 int displayDateMonth, int displayDateDay, int displayDateYear,
085 int displayDateHour, int displayDateMinute, int expirationDateMonth,
086 int expirationDateDay, int expirationDateYear, int expirationDateHour,
087 int expirationDateMinute, int priority, boolean alert)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService()
091 .addEntry(plid, classNameId, classPK, title, content, url,
092 type, displayDateMonth, displayDateDay, displayDateYear,
093 displayDateHour, displayDateMinute, expirationDateMonth,
094 expirationDateDay, expirationDateYear, expirationDateHour,
095 expirationDateMinute, priority, alert);
096 }
097
098 public static void deleteEntry(long entryId)
099 throws com.liferay.portal.kernel.exception.PortalException,
100 com.liferay.portal.kernel.exception.SystemException {
101 getService().deleteEntry(entryId);
102 }
103
104 public static com.liferay.portlet.announcements.model.AnnouncementsEntry getEntry(
105 long entryId)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException {
108 return getService().getEntry(entryId);
109 }
110
111 public static com.liferay.portlet.announcements.model.AnnouncementsEntry updateEntry(
112 long entryId, java.lang.String title, java.lang.String content,
113 java.lang.String url, java.lang.String type, int displayDateMonth,
114 int displayDateDay, int displayDateYear, int displayDateHour,
115 int displayDateMinute, int expirationDateMonth, int expirationDateDay,
116 int expirationDateYear, int expirationDateHour,
117 int expirationDateMinute, int priority)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException {
120 return getService()
121 .updateEntry(entryId, title, content, url, type,
122 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
123 displayDateMinute, expirationDateMonth, expirationDateDay,
124 expirationDateYear, expirationDateHour, expirationDateMinute,
125 priority);
126 }
127
128 public static AnnouncementsEntryService getService() {
129 if (_service == null) {
130 _service = (AnnouncementsEntryService)PortalBeanLocatorUtil.locate(AnnouncementsEntryService.class.getName());
131
132 ReferenceRegistry.registerReference(AnnouncementsEntryServiceUtil.class,
133 "_service");
134 }
135
136 return _service;
137 }
138
139
142 public void setService(AnnouncementsEntryService service) {
143 }
144
145 private static AnnouncementsEntryService _service;
146 }