001    /**
002     * Copyright (c) 2000-present 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.wiki.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    @ProviderType
023    public interface WikiPageFinder {
024            public int countByCreateDate(long groupId, long nodeId,
025                    java.util.Date createDate, boolean before);
026    
027            public int countByCreateDate(long groupId, long nodeId,
028                    java.sql.Timestamp createDate, boolean before);
029    
030            public int filterCountByCreateDate(long groupId, long nodeId,
031                    java.util.Date createDate, boolean before);
032    
033            public int filterCountByCreateDate(long groupId, long nodeId,
034                    java.sql.Timestamp createDate, boolean before);
035    
036            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByCreateDate(
037                    long groupId, long nodeId, java.util.Date createDate, boolean before,
038                    int start, int end);
039    
040            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByCreateDate(
041                    long groupId, long nodeId, java.sql.Timestamp createDate,
042                    boolean before, int start, int end);
043    
044            public com.liferay.portlet.wiki.model.WikiPage findByResourcePrimKey(
045                    long resourcePrimKey)
046                    throws com.liferay.portlet.wiki.NoSuchPageException;
047    
048            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByCreateDate(
049                    long groupId, long nodeId, java.util.Date createDate, boolean before,
050                    int start, int end);
051    
052            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByCreateDate(
053                    long groupId, long nodeId, java.sql.Timestamp createDate,
054                    boolean before, int start, int end);
055    
056            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNoAssets();
057    }