001
014
015 package com.liferay.portlet.announcements.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface AnnouncementsEntryLocalService {
043
050 public com.liferay.portlet.announcements.model.AnnouncementsEntry addAnnouncementsEntry(
051 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.announcements.model.AnnouncementsEntry createAnnouncementsEntry(
061 long entryId);
062
063
070 public void deleteAnnouncementsEntry(long entryId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deleteAnnouncementsEntry(
081 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.announcements.model.AnnouncementsEntry getAnnouncementsEntry(
156 long entryId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getAnnouncementsEntries(
174 int start, int end)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public int getAnnouncementsEntriesCount()
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187
194 public com.liferay.portlet.announcements.model.AnnouncementsEntry updateAnnouncementsEntry(
195 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198
206 public com.liferay.portlet.announcements.model.AnnouncementsEntry updateAnnouncementsEntry(
207 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
208 boolean merge)
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211 public com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
212 long userId, long classNameId, long classPK, java.lang.String title,
213 java.lang.String content, java.lang.String url, java.lang.String type,
214 int displayDateMonth, int displayDateDay, int displayDateYear,
215 int displayDateHour, int displayDateMinute, int expirationDateMonth,
216 int expirationDateDay, int expirationDateYear, int expirationDateHour,
217 int expirationDateMinute, int priority, boolean alert)
218 throws com.liferay.portal.kernel.exception.PortalException,
219 com.liferay.portal.kernel.exception.SystemException;
220
221 public void checkEntries()
222 throws com.liferay.portal.kernel.exception.PortalException,
223 com.liferay.portal.kernel.exception.SystemException;
224
225 public void deleteEntry(
226 com.liferay.portlet.announcements.model.AnnouncementsEntry entry)
227 throws com.liferay.portal.kernel.exception.PortalException,
228 com.liferay.portal.kernel.exception.SystemException;
229
230 public void deleteEntry(long entryId)
231 throws com.liferay.portal.kernel.exception.PortalException,
232 com.liferay.portal.kernel.exception.SystemException;
233
234 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
236 long userId, java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
237 boolean alert, int flagValue, int start, int end)
238 throws com.liferay.portal.kernel.exception.SystemException;
239
240 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
242 long userId, java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
243 int displayDateMonth, int displayDateDay, int displayDateYear,
244 int displayDateHour, int displayDateMinute, int expirationDateMonth,
245 int expirationDateDay, int expirationDateYear, int expirationDateHour,
246 int expirationDateMinute, boolean alert, int flagValue, int start,
247 int end) throws com.liferay.portal.kernel.exception.SystemException;
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
251 long classNameId, long classPK, boolean alert, int start, int end)
252 throws com.liferay.portal.kernel.exception.SystemException;
253
254 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getEntries(
256 long userId, long classNameId, long[] classPKs, int displayDateMonth,
257 int displayDateDay, int displayDateYear, int displayDateHour,
258 int displayDateMinute, int expirationDateMonth, int expirationDateDay,
259 int expirationDateYear, int expirationDateHour,
260 int expirationDateMinute, boolean alert, int flagValue, int start,
261 int end) throws com.liferay.portal.kernel.exception.SystemException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public int getEntriesCount(long userId,
265 java.util.LinkedHashMap<java.lang.Long, long[]> scopes, boolean alert,
266 int flagValue)
267 throws com.liferay.portal.kernel.exception.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public int getEntriesCount(long userId,
271 java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
272 int displayDateMonth, int displayDateDay, int displayDateYear,
273 int displayDateHour, int displayDateMinute, int expirationDateMonth,
274 int expirationDateDay, int expirationDateYear, int expirationDateHour,
275 int expirationDateMinute, boolean alert, int flagValue)
276 throws com.liferay.portal.kernel.exception.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public int getEntriesCount(long classNameId, long classPK, boolean alert)
280 throws com.liferay.portal.kernel.exception.SystemException;
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public int getEntriesCount(long userId, long classNameId, long[] classPKs,
284 boolean alert, int flagValue)
285 throws com.liferay.portal.kernel.exception.SystemException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public int getEntriesCount(long userId, long classNameId, long[] classPKs,
289 int displayDateMonth, int displayDateDay, int displayDateYear,
290 int displayDateHour, int displayDateMinute, int expirationDateMonth,
291 int expirationDateDay, int expirationDateYear, int expirationDateHour,
292 int expirationDateMinute, boolean alert, int flagValue)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public com.liferay.portlet.announcements.model.AnnouncementsEntry getEntry(
297 long entryId)
298 throws com.liferay.portal.kernel.exception.PortalException,
299 com.liferay.portal.kernel.exception.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> getUserEntries(
303 long userId, int start, int end)
304 throws com.liferay.portal.kernel.exception.SystemException;
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public int getUserEntriesCount(long userId)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310 public com.liferay.portlet.announcements.model.AnnouncementsEntry updateEntry(
311 long userId, long entryId, java.lang.String title,
312 java.lang.String content, java.lang.String url, java.lang.String type,
313 int displayDateMonth, int displayDateDay, int displayDateYear,
314 int displayDateHour, int displayDateMinute, int expirationDateMonth,
315 int expirationDateDay, int expirationDateYear, int expirationDateHour,
316 int expirationDateMinute, int priority)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException;
319 }