001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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    }