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    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    @ProviderType
023    public interface AnnouncementsEntryFinder {
024            public int countByScope(long userId, long classNameId, long[] classPKs,
025                    int displayDateMonth, int displayDateDay, int displayDateYear,
026                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
027                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
028                    int expirationDateMinute, boolean alert, int flagValue)
029                    throws com.liferay.portal.kernel.exception.SystemException;
030    
031            public int countByScopes(long userId,
032                    java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
033                    int displayDateMonth, int displayDateDay, int displayDateYear,
034                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
035                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
036                    int expirationDateMinute, boolean alert, int flagValue)
037                    throws com.liferay.portal.kernel.exception.SystemException;
038    
039            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByDisplayDate(
040                    java.util.Date displayDateLT, java.util.Date displayDateGT)
041                    throws com.liferay.portal.kernel.exception.SystemException;
042    
043            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByScope(
044                    long userId, long classNameId, long[] classPKs, int displayDateMonth,
045                    int displayDateDay, int displayDateYear, int displayDateHour,
046                    int displayDateMinute, int expirationDateMonth, int expirationDateDay,
047                    int expirationDateYear, int expirationDateHour,
048                    int expirationDateMinute, boolean alert, int flagValue, int start,
049                    int end) throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByScopes(
052                    long userId, java.util.LinkedHashMap<java.lang.Long, long[]> scopes,
053                    int displayDateMonth, int displayDateDay, int displayDateYear,
054                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
055                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
056                    int expirationDateMinute, boolean alert, int flagValue, int start,
057                    int end) throws com.liferay.portal.kernel.exception.SystemException;
058    }