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.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                    throws com.liferay.portal.kernel.exception.SystemException;
027    
028            public int countByCreateDate(long groupId, long nodeId,
029                    java.sql.Timestamp createDate, boolean before)
030                    throws com.liferay.portal.kernel.exception.SystemException;
031    
032            public int countByG_N_H_S(long groupId, long nodeId, boolean head,
033                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
034                    throws com.liferay.portal.kernel.exception.SystemException;
035    
036            public int filterCountByCreateDate(long groupId, long nodeId,
037                    java.util.Date createDate, boolean before)
038                    throws com.liferay.portal.kernel.exception.SystemException;
039    
040            public int filterCountByCreateDate(long groupId, long nodeId,
041                    java.sql.Timestamp createDate, boolean before)
042                    throws com.liferay.portal.kernel.exception.SystemException;
043    
044            public int filterCountByG_N_H_S(long groupId, long nodeId, boolean head,
045                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByCreateDate(
049                    long groupId, long nodeId, java.util.Date createDate, boolean before,
050                    int start, int end)
051                    throws com.liferay.portal.kernel.exception.SystemException;
052    
053            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByCreateDate(
054                    long groupId, long nodeId, java.sql.Timestamp createDate,
055                    boolean before, int start, int end)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_H_S(
059                    long groupId, long nodeId, boolean head,
060                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            public com.liferay.portlet.wiki.model.WikiPage findByResourcePrimKey(
064                    long resourcePrimKey)
065                    throws com.liferay.portal.kernel.exception.SystemException,
066                            com.liferay.portlet.wiki.NoSuchPageException;
067    
068            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByCreateDate(
069                    long groupId, long nodeId, java.util.Date createDate, boolean before,
070                    int start, int end)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByCreateDate(
074                    long groupId, long nodeId, java.sql.Timestamp createDate,
075                    boolean before, int start, int end)
076                    throws com.liferay.portal.kernel.exception.SystemException;
077    
078            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNoAssets()
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_H_S(
082                    long groupId, long nodeId, boolean head,
083                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    }