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.dynamicdatamapping.service.persistence;
016    
017    /**
018     * @author Brian Wing Shun Chan
019     */
020    public interface DDMTemplateFinder {
021            public int countByKeywords(long companyId, long groupId, long structureId,
022                    java.lang.String keywords, java.lang.String type, java.lang.String mode)
023                    throws com.liferay.portal.kernel.exception.SystemException;
024    
025            public int countByC_G_S_N_D_T_M_L(long companyId, long groupId,
026                    long structureId, java.lang.String name, java.lang.String description,
027                    java.lang.String type, java.lang.String mode,
028                    java.lang.String language, boolean andOperator)
029                    throws com.liferay.portal.kernel.exception.SystemException;
030    
031            public int countByC_G_S_N_D_T_M_L(long companyId, long groupId,
032                    long structureId, java.lang.String[] names,
033                    java.lang.String[] descriptions, java.lang.String[] types,
034                    java.lang.String[] modes, java.lang.String[] languages,
035                    boolean andOperator)
036                    throws com.liferay.portal.kernel.exception.SystemException;
037    
038            public int filterCountByKeywords(long companyId, long groupId,
039                    long structureId, java.lang.String keywords, java.lang.String type,
040                    java.lang.String mode)
041                    throws com.liferay.portal.kernel.exception.SystemException;
042    
043            public int filterCountByC_G_S_N_D_T_M_L(long companyId, long groupId,
044                    long structureId, java.lang.String name, java.lang.String description,
045                    java.lang.String type, java.lang.String mode,
046                    java.lang.String language, boolean andOperator)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            public int filterCountByC_G_S_N_D_T_M_L(long companyId, long groupId,
050                    long structureId, java.lang.String[] names,
051                    java.lang.String[] descriptions, java.lang.String[] types,
052                    java.lang.String[] modes, java.lang.String[] languages,
053                    boolean andOperator)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByKeywords(
057                    long companyId, long groupId, long structureId,
058                    java.lang.String keywords, java.lang.String type,
059                    java.lang.String mode, int start, int end,
060                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByC_G_S_N_D_T_M_L(
064                    long companyId, long groupId, long structureId, java.lang.String name,
065                    java.lang.String description, java.lang.String type,
066                    java.lang.String mode, java.lang.String language, boolean andOperator,
067                    int start, int end,
068                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByC_G_S_N_D_T_M_L(
072                    long companyId, long groupId, long structureId,
073                    java.lang.String[] names, java.lang.String[] descriptions,
074                    java.lang.String[] types, java.lang.String[] modes,
075                    java.lang.String[] languages, boolean andOperator, int start, int end,
076                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByKeywords(
080                    long companyId, long groupId, long structureId,
081                    java.lang.String keywords, java.lang.String type,
082                    java.lang.String mode, int start, int end,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_G_S_N_D_T_M_L(
087                    long companyId, long groupId, long structureId, java.lang.String name,
088                    java.lang.String description, java.lang.String type,
089                    java.lang.String mode, java.lang.String language, boolean andOperator,
090                    int start, int end,
091                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_G_S_N_D_T_M_L(
095                    long companyId, long groupId, long structureId,
096                    java.lang.String[] names, java.lang.String[] descriptions,
097                    java.lang.String[] types, java.lang.String[] modes,
098                    java.lang.String[] languages, boolean andOperator, int start, int end,
099                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    }