001    /**
002     * Copyright (c) 2000-2010 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 JournalTemplateFinder {
021            public int countByKeywords(long companyId, long groupId,
022                    java.lang.String keywords, java.lang.String structureId,
023                    java.lang.String structureIdComparator)
024                    throws com.liferay.portal.kernel.exception.SystemException;
025    
026            public int countByC_G_T_S_N_D(long companyId, long groupId,
027                    java.lang.String templateId, java.lang.String structureId,
028                    java.lang.String structureIdComparator, java.lang.String name,
029                    java.lang.String description, boolean andOperator)
030                    throws com.liferay.portal.kernel.exception.SystemException;
031    
032            public int countByC_G_T_S_N_D(long companyId, long groupId,
033                    java.lang.String[] templateIds, java.lang.String structureId,
034                    java.lang.String structureIdComparator, java.lang.String[] names,
035                    java.lang.String[] descriptions, boolean andOperator)
036                    throws com.liferay.portal.kernel.exception.SystemException;
037    
038            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByKeywords(
039                    long companyId, long groupId, java.lang.String keywords,
040                    java.lang.String structureId, java.lang.String structureIdComparator,
041                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
042                    throws com.liferay.portal.kernel.exception.SystemException;
043    
044            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByC_G_T_S_N_D(
045                    long companyId, long groupId, java.lang.String templateId,
046                    java.lang.String structureId, java.lang.String structureIdComparator,
047                    java.lang.String name, java.lang.String description,
048                    boolean andOperator, int start, int end,
049                    com.liferay.portal.kernel.util.OrderByComparator obc)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByC_G_T_S_N_D(
053                    long companyId, long groupId, java.lang.String[] templateIds,
054                    java.lang.String structureId, java.lang.String structureIdComparator,
055                    java.lang.String[] names, java.lang.String[] descriptions,
056                    boolean andOperator, int start, int end,
057                    com.liferay.portal.kernel.util.OrderByComparator obc)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    }