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 MBMessageFinder {
024            public int countByC_T(java.util.Date createDate, long threadId)
025                    throws com.liferay.portal.kernel.exception.SystemException;
026    
027            public int countByG_U_C_S(long groupId, long userId, long[] categoryIds,
028                    int status) throws com.liferay.portal.kernel.exception.SystemException;
029    
030            public int countByG_U_C_A_S(long groupId, long userId, long[] categoryIds,
031                    boolean anonymous, int status)
032                    throws com.liferay.portal.kernel.exception.SystemException;
033    
034            public int filterCountByG_U_C_S(long groupId, long userId,
035                    long[] categoryIds, int status)
036                    throws com.liferay.portal.kernel.exception.SystemException;
037    
038            public int filterCountByG_U_MD_C_S(long groupId, long userId,
039                    java.util.Date modifiedDate, long[] categoryIds, int status)
040                    throws com.liferay.portal.kernel.exception.SystemException;
041    
042            public int filterCountByG_U_C_A_S(long groupId, long userId,
043                    long[] categoryIds, boolean anonymous, int status)
044                    throws com.liferay.portal.kernel.exception.SystemException;
045    
046            public java.util.List<java.lang.Long> filterFindByG_U_C_S(long groupId,
047                    long userId, long[] categoryIds, int status, int start, int end)
048                    throws com.liferay.portal.kernel.exception.SystemException;
049    
050            public java.util.List<java.lang.Long> filterFindByG_U_MD_C_S(long groupId,
051                    long userId, java.util.Date modifiedDate, long[] categoryIds,
052                    int status, int start, int end)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<java.lang.Long> filterFindByG_U_C_A_S(long groupId,
056                    long userId, long[] categoryIds, boolean anonymous, int status,
057                    int start, int end)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByNoAssets()
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            public java.util.List<java.lang.Long> findByG_U_C_S(long groupId,
064                    long userId, long[] categoryIds, int status, int start, int end)
065                    throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public java.util.List<java.lang.Long> findByG_U_C_A_S(long groupId,
068                    long userId, long[] categoryIds, boolean anonymous, int status,
069                    int start, int end)
070                    throws com.liferay.portal.kernel.exception.SystemException;
071    }