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.messageboards.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    @ProviderType
023    public interface MBThreadFinder {
024            public int countByG_U(long groupId, long userId,
025                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
026                    throws com.liferay.portal.kernel.exception.SystemException;
027    
028            public int countByG_C(long groupId, long categoryId,
029                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
030                    throws com.liferay.portal.kernel.exception.SystemException;
031    
032            public int countByG_U_C(long groupId, long userId, long[] categoryIds,
033                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
034                    throws com.liferay.portal.kernel.exception.SystemException;
035    
036            public int countByG_U_LPD(long groupId, long userId,
037                    java.util.Date lastPostDate,
038                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public int countByG_U_A(long groupId, long userId, boolean anonymous,
042                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
043                    throws com.liferay.portal.kernel.exception.SystemException;
044    
045            public int countByS_G_U(long groupId, long userId,
046                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            public int countByG_U_C_A(long groupId, long userId, long[] categoryIds,
050                    boolean anonymous,
051                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public int countByS_G_U_C(long groupId, long userId, long[] categoryIds,
055                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public int filterCountByG_C(long groupId, long categoryId)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public int filterCountByG_C(long groupId, long categoryId,
062                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
063                    throws com.liferay.portal.kernel.exception.SystemException;
064    
065            public int filterCountByS_G_U_C(long groupId, long userId,
066                    long[] categoryIds,
067                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
068                    throws com.liferay.portal.kernel.exception.SystemException;
069    
070            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C(
071                    long groupId, long categoryId, int start, int end)
072                    throws com.liferay.portal.kernel.exception.SystemException;
073    
074            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C(
075                    long groupId, long categoryId,
076                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByS_G_U_C(
080                    long groupId, long userId, long[] categoryIds,
081                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByNoAssets()
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U(
088                    long groupId, long userId,
089                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
093                    long groupId, long categoryId,
094                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U_C(
098                    long groupId, long userId, long[] categoryIds,
099                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    
102            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U_LPD(
103                    long groupId, long userId, java.util.Date lastPostDate,
104                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U_A(
108                    long groupId, long userId, boolean anonymous,
109                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByS_G_U(
113                    long groupId, long userId,
114                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U_C_A(
118                    long groupId, long userId, long[] categoryIds, boolean anonymous,
119                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByS_G_U_C(
123                    long groupId, long userId, long[] categoryIds,
124                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
125                    throws com.liferay.portal.kernel.exception.SystemException;
126    }