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.portal.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    @ProviderType
023    public interface UserGroupFinder {
024            public int countByKeywords(long companyId, java.lang.String keywords,
025                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
026                    throws com.liferay.portal.kernel.exception.SystemException;
027    
028            public int countByC_N_D(long companyId, java.lang.String name,
029                    java.lang.String description,
030                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
031                    boolean andOperator)
032                    throws com.liferay.portal.kernel.exception.SystemException;
033    
034            public int countByC_N_D(long companyId, java.lang.String[] names,
035                    java.lang.String[] descriptions,
036                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
037                    boolean andOperator)
038                    throws com.liferay.portal.kernel.exception.SystemException;
039    
040            public java.util.List<com.liferay.portal.model.UserGroup> findByKeywords(
041                    long companyId, java.lang.String keywords,
042                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
043                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
044                    throws com.liferay.portal.kernel.exception.SystemException;
045    
046            public com.liferay.portal.model.UserGroup findByC_N(long companyId,
047                    java.lang.String name)
048                    throws com.liferay.portal.NoSuchUserGroupException,
049                            com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portal.model.UserGroup> findByC_N_D(
052                    long companyId, java.lang.String name, java.lang.String description,
053                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
054                    boolean andOperator, int start, int end,
055                    com.liferay.portal.kernel.util.OrderByComparator obc)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public java.util.List<com.liferay.portal.model.UserGroup> findByC_N_D(
059                    long companyId, java.lang.String[] names,
060                    java.lang.String[] descriptions,
061                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
062                    boolean andOperator, int start, int end,
063                    com.liferay.portal.kernel.util.OrderByComparator obc)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    }