001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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    }