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.journal.service.persistence;
016    
017    /**
018     * @author Brian Wing Shun Chan
019     */
020    public interface JournalStructureFinder {
021            public int countByKeywords(long companyId, long[] groupIds,
022                    java.lang.String keywords)
023                    throws com.liferay.portal.kernel.exception.SystemException;
024    
025            public int countByC_G_S_N_D(long companyId, long[] groupIds,
026                    java.lang.String structureId, java.lang.String name,
027                    java.lang.String description, boolean andOperator)
028                    throws com.liferay.portal.kernel.exception.SystemException;
029    
030            public int countByC_G_S_N_D(long companyId, long[] groupIds,
031                    java.lang.String[] structureIds, java.lang.String[] names,
032                    java.lang.String[] descriptions, boolean andOperator)
033                    throws com.liferay.portal.kernel.exception.SystemException;
034    
035            public int filterCountByKeywords(long companyId, long[] groupIds,
036                    java.lang.String keywords)
037                    throws com.liferay.portal.kernel.exception.SystemException;
038    
039            public int filterCountByC_G_S_N_D(long companyId, long[] groupIds,
040                    java.lang.String structureId, java.lang.String name,
041                    java.lang.String description, boolean andOperator)
042                    throws com.liferay.portal.kernel.exception.SystemException;
043    
044            public int filterCountByC_G_S_N_D(long companyId, long[] groupIds,
045                    java.lang.String[] structureIds, java.lang.String[] names,
046                    java.lang.String[] descriptions, boolean andOperator)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByKeywords(
050                    long companyId, long[] groupIds, java.lang.String keywords, int start,
051                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByC_G_S_N_D(
055                    long companyId, long[] groupIds, java.lang.String structureId,
056                    java.lang.String name, java.lang.String description,
057                    boolean andOperator, int start, int end,
058                    com.liferay.portal.kernel.util.OrderByComparator obc)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByC_G_S_N_D(
062                    long companyId, long[] groupIds, java.lang.String[] structureIds,
063                    java.lang.String[] names, java.lang.String[] descriptions,
064                    boolean andOperator, int start, int end,
065                    com.liferay.portal.kernel.util.OrderByComparator obc)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByKeywords(
069                    long companyId, long[] groupIds, java.lang.String keywords, int start,
070                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByC_G_S_N_D(
074                    long companyId, long[] groupIds, java.lang.String structureId,
075                    java.lang.String name, java.lang.String description,
076                    boolean andOperator, int start, int end,
077                    com.liferay.portal.kernel.util.OrderByComparator obc)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByC_G_S_N_D(
081                    long companyId, long[] groupIds, java.lang.String[] structureIds,
082                    java.lang.String[] names, java.lang.String[] descriptions,
083                    boolean andOperator, int start, int end,
084                    com.liferay.portal.kernel.util.OrderByComparator obc)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    }