001    /**
002     * Copyright (c) 2000-present 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    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * @author Brian Wing Shun Chan
024     * @generated
025     */
026    @ProviderType
027    public class UserGroupFinderUtil {
028            public static int countByKeywords(long companyId,
029                    java.lang.String keywords,
030                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) {
031                    return getFinder().countByKeywords(companyId, keywords, params);
032            }
033    
034            public static int countByC_N_D(long companyId, java.lang.String name,
035                    java.lang.String description,
036                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
037                    boolean andOperator) {
038                    return getFinder()
039                                       .countByC_N_D(companyId, name, description, params,
040                            andOperator);
041            }
042    
043            public static int countByC_N_D(long companyId, java.lang.String[] names,
044                    java.lang.String[] descriptions,
045                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
046                    boolean andOperator) {
047                    return getFinder()
048                                       .countByC_N_D(companyId, names, descriptions, params,
049                            andOperator);
050            }
051    
052            public static java.util.List<com.liferay.portal.model.UserGroup> findByKeywords(
053                    long companyId, java.lang.String keywords,
054                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
055                    int start, int end,
056                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> obc) {
057                    return getFinder()
058                                       .findByKeywords(companyId, keywords, params, start, end, obc);
059            }
060    
061            public static com.liferay.portal.model.UserGroup findByC_N(long companyId,
062                    java.lang.String name)
063                    throws com.liferay.portal.exception.NoSuchUserGroupException {
064                    return getFinder().findByC_N(companyId, name);
065            }
066    
067            public static java.util.List<com.liferay.portal.model.UserGroup> findByC_N_D(
068                    long companyId, java.lang.String name, java.lang.String description,
069                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
070                    boolean andOperator, int start, int end,
071                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> obc) {
072                    return getFinder()
073                                       .findByC_N_D(companyId, name, description, params,
074                            andOperator, start, end, obc);
075            }
076    
077            public static java.util.List<com.liferay.portal.model.UserGroup> findByC_N_D(
078                    long companyId, java.lang.String[] names,
079                    java.lang.String[] descriptions,
080                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
081                    boolean andOperator, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> obc) {
083                    return getFinder()
084                                       .findByC_N_D(companyId, names, descriptions, params,
085                            andOperator, start, end, obc);
086            }
087    
088            public static UserGroupFinder getFinder() {
089                    if (_finder == null) {
090                            _finder = (UserGroupFinder)PortalBeanLocatorUtil.locate(UserGroupFinder.class.getName());
091    
092                            ReferenceRegistry.registerReference(UserGroupFinderUtil.class,
093                                    "_finder");
094                    }
095    
096                    return _finder;
097            }
098    
099            public void setFinder(UserGroupFinder finder) {
100                    _finder = finder;
101    
102                    ReferenceRegistry.registerReference(UserGroupFinderUtil.class, "_finder");
103            }
104    
105            private static UserGroupFinder _finder;
106    }