001    /**
002     * Copyright (c) 2000-2013 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.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    }