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