001
014
015 package com.liferay.portlet.announcements.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
022 public class AnnouncementsEntryFinderUtil {
023 public static int countByScope(long userId, long classNameId,
024 long[] classPKs, int displayDateMonth, int displayDateDay,
025 int displayDateYear, int displayDateHour, int displayDateMinute,
026 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
027 int expirationDateHour, int expirationDateMinute, boolean alert,
028 int flagValue)
029 throws com.liferay.portal.kernel.exception.SystemException {
030 return getFinder()
031 .countByScope(userId, classNameId, classPKs,
032 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
033 displayDateMinute, expirationDateMonth, expirationDateDay,
034 expirationDateYear, expirationDateHour, expirationDateMinute,
035 alert, flagValue);
036 }
037
038 public static int countByScopes(long userId,
039 java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
040 int displayDateMonth, int displayDateDay, int displayDateYear,
041 int displayDateHour, int displayDateMinute, int expirationDateMonth,
042 int expirationDateDay, int expirationDateYear, int expirationDateHour,
043 int expirationDateMinute, boolean alert, int flagValue)
044 throws com.liferay.portal.kernel.exception.SystemException {
045 return getFinder()
046 .countByScopes(userId, scopes, displayDateMonth,
047 displayDateDay, displayDateYear, displayDateHour,
048 displayDateMinute, expirationDateMonth, expirationDateDay,
049 expirationDateYear, expirationDateHour, expirationDateMinute,
050 alert, flagValue);
051 }
052
053 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByDisplayDate(
054 java.util.Date displayDateLT, java.util.Date displayDateGT)
055 throws com.liferay.portal.kernel.exception.SystemException {
056 return getFinder().findByDisplayDate(displayDateLT, displayDateGT);
057 }
058
059 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByScope(
060 long userId, long classNameId, long[] classPKs, int displayDateMonth,
061 int displayDateDay, int displayDateYear, int displayDateHour,
062 int displayDateMinute, int expirationDateMonth, int expirationDateDay,
063 int expirationDateYear, int expirationDateHour,
064 int expirationDateMinute, boolean alert, int flagValue, int start,
065 int end) throws com.liferay.portal.kernel.exception.SystemException {
066 return getFinder()
067 .findByScope(userId, classNameId, classPKs,
068 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
069 displayDateMinute, expirationDateMonth, expirationDateDay,
070 expirationDateYear, expirationDateHour, expirationDateMinute,
071 alert, flagValue, start, end);
072 }
073
074 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByScopes(
075 long userId, java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
076 int displayDateMonth, int displayDateDay, int displayDateYear,
077 int displayDateHour, int displayDateMinute, int expirationDateMonth,
078 int expirationDateDay, int expirationDateYear, int expirationDateHour,
079 int expirationDateMinute, boolean alert, int flagValue, int start,
080 int end) throws com.liferay.portal.kernel.exception.SystemException {
081 return getFinder()
082 .findByScopes(userId, scopes, displayDateMonth,
083 displayDateDay, displayDateYear, displayDateHour,
084 displayDateMinute, expirationDateMonth, expirationDateDay,
085 expirationDateYear, expirationDateHour, expirationDateMinute,
086 alert, flagValue, start, end);
087 }
088
089 public static AnnouncementsEntryFinder getFinder() {
090 if (_finder == null) {
091 _finder = (AnnouncementsEntryFinder)PortalBeanLocatorUtil.locate(AnnouncementsEntryFinder.class.getName());
092 }
093
094 return _finder;
095 }
096
097 public void setFinder(AnnouncementsEntryFinder finder) {
098 _finder = finder;
099 }
100
101 private static AnnouncementsEntryFinder _finder;
102 }