1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.announcements.service.persistence;
24  
25  /**
26   * <a href="AnnouncementsEntryFinder.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   */
30  public interface AnnouncementsEntryFinder {
31      public int countByScope(long userId, long classNameId, long[] classPKs,
32          int displayDateMonth, int displayDateDay, int displayDateYear,
33          int displayDateHour, int displayDateMinute, int expirationDateMonth,
34          int expirationDateDay, int expirationDateYear, int expirationDateHour,
35          int expirationDateMinute, boolean alert, int flagValue)
36          throws com.liferay.portal.SystemException;
37  
38      public int countByScopes(long userId,
39          java.util.LinkedHashMap<Long, long[]> scopes, int displayDateMonth,
40          int displayDateDay, int displayDateYear, int displayDateHour,
41          int displayDateMinute, int expirationDateMonth, int expirationDateDay,
42          int expirationDateYear, int expirationDateHour,
43          int expirationDateMinute, boolean alert, int flagValue)
44          throws com.liferay.portal.SystemException;
45  
46      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByDisplayDate(
47          java.util.Date displayDateLT, java.util.Date displayDateGT)
48          throws com.liferay.portal.SystemException;
49  
50      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByScope(
51          long userId, long classNameId, long[] classPKs, int displayDateMonth,
52          int displayDateDay, int displayDateYear, int displayDateHour,
53          int displayDateMinute, int expirationDateMonth, int expirationDateDay,
54          int expirationDateYear, int expirationDateHour,
55          int expirationDateMinute, boolean alert, int flagValue, int start,
56          int end) throws com.liferay.portal.SystemException;
57  
58      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByScopes(
59          long userId, java.util.LinkedHashMap<Long, long[]> scopes,
60          int displayDateMonth, int displayDateDay, int displayDateYear,
61          int displayDateHour, int displayDateMinute, int expirationDateMonth,
62          int expirationDateDay, int expirationDateYear, int expirationDateHour,
63          int expirationDateMinute, boolean alert, int flagValue, int start,
64          int end) throws com.liferay.portal.SystemException;
65  }