001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.announcements.service.persistence;
016    
017    /**
018     * @author Brian Wing Shun Chan
019     */
020    public interface AnnouncementsEntryFinder {
021            public int countByScope(long userId, long classNameId, long[] classPKs,
022                    int displayDateMonth, int displayDateDay, int displayDateYear,
023                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
024                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
025                    int expirationDateMinute, boolean alert, int flagValue)
026                    throws com.liferay.portal.kernel.exception.SystemException;
027    
028            public int countByScopes(long userId,
029                    java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
030                    int displayDateMonth, int displayDateDay, int displayDateYear,
031                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
032                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
033                    int expirationDateMinute, boolean alert, int flagValue)
034                    throws com.liferay.portal.kernel.exception.SystemException;
035    
036            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByDisplayDate(
037                    java.util.Date displayDateLT, java.util.Date displayDateGT)
038                    throws com.liferay.portal.kernel.exception.SystemException;
039    
040            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByScope(
041                    long userId, long classNameId, long[] classPKs, int displayDateMonth,
042                    int displayDateDay, int displayDateYear, int displayDateHour,
043                    int displayDateMinute, int expirationDateMonth, int expirationDateDay,
044                    int expirationDateYear, int expirationDateHour,
045                    int expirationDateMinute, boolean alert, int flagValue, int start,
046                    int end) throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByScopes(
049                    long userId, java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
050                    int displayDateMonth, int displayDateDay, int displayDateYear,
051                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
052                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
053                    int expirationDateMinute, boolean alert, int flagValue, int start,
054                    int end) throws com.liferay.portal.kernel.exception.SystemException;
055    }