001    /**
002     * Copyright (c) 2000-present 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    
026            public int countByG_U_C_S(long groupId, long userId, long[] categoryIds,
027                    int status);
028    
029            public int countByG_U_C_A_S(long groupId, long userId, long[] categoryIds,
030                    boolean anonymous, int status);
031    
032            public int filterCountByG_U_C_S(long groupId, long userId,
033                    long[] categoryIds, int status);
034    
035            public int filterCountByG_U_MD_C_S(long groupId, long userId,
036                    java.util.Date modifiedDate, long[] categoryIds, int status);
037    
038            public int filterCountByG_U_C_A_S(long groupId, long userId,
039                    long[] categoryIds, boolean anonymous, int status);
040    
041            public java.util.List<java.lang.Long> filterFindByG_U_C_S(long groupId,
042                    long userId, long[] categoryIds, int status, int start, int end);
043    
044            public java.util.List<java.lang.Long> filterFindByG_U_MD_C_S(long groupId,
045                    long userId, java.util.Date modifiedDate, long[] categoryIds,
046                    int status, int start, int end);
047    
048            public java.util.List<java.lang.Long> filterFindByG_U_C_A_S(long groupId,
049                    long userId, long[] categoryIds, boolean anonymous, int status,
050                    int start, int end);
051    
052            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByNoAssets();
053    
054            public java.util.List<java.lang.Long> findByG_U_C_S(long groupId,
055                    long userId, long[] categoryIds, int status, int start, int end);
056    
057            public java.util.List<java.lang.Long> findByG_U_C_A_S(long groupId,
058                    long userId, long[] categoryIds, boolean anonymous, int status,
059                    int start, int end);
060    }