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 JournalTemplateFinder {
021            public int countByKeywords(long companyId, long[] groupIds,
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[] groupIds,
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 filterCountByKeywords(long companyId, long[] groupIds,
033                    java.lang.String keywords, java.lang.String structureId,
034                    java.lang.String structureIdComparator)
035                    throws com.liferay.portal.kernel.exception.SystemException;
036    
037            public int filterCountByC_G_T_S_N_D(long companyId, long[] groupIds,
038                    java.lang.String templateId, java.lang.String structureId,
039                    java.lang.String structureIdComparator, java.lang.String name,
040                    java.lang.String description, boolean andOperator)
041                    throws com.liferay.portal.kernel.exception.SystemException;
042    
043            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByKeywords(
044                    long companyId, long[] groupIds, java.lang.String keywords,
045                    java.lang.String structureId, java.lang.String structureIdComparator,
046                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByC_G_T_S_N_D(
050                    long companyId, long[] groupIds, java.lang.String templateId,
051                    java.lang.String structureId, java.lang.String structureIdComparator,
052                    java.lang.String name, java.lang.String description,
053                    boolean andOperator, int start, int end,
054                    com.liferay.portal.kernel.util.OrderByComparator obc)
055                    throws com.liferay.portal.kernel.exception.SystemException;
056    
057            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByKeywords(
058                    long companyId, long[] groupIds, java.lang.String keywords,
059                    java.lang.String structureId, java.lang.String structureIdComparator,
060                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByC_G_T_S_N_D(
064                    long companyId, long[] groupIds, java.lang.String templateId,
065                    java.lang.String structureId, java.lang.String structureIdComparator,
066                    java.lang.String name, java.lang.String description,
067                    boolean andOperator, int start, int end,
068                    com.liferay.portal.kernel.util.OrderByComparator obc)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    }