001    /**
002     * Copyright (c) 2000-2010 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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class UserGroupFinderUtil {
023            public static int countByC_N_D(long companyId, java.lang.String name,
024                    java.lang.String description,
025                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
026                    throws com.liferay.portal.kernel.exception.SystemException {
027                    return getFinder().countByC_N_D(companyId, name, description, params);
028            }
029    
030            public static com.liferay.portal.model.UserGroup findByC_N(long companyId,
031                    java.lang.String name)
032                    throws com.liferay.portal.NoSuchUserGroupException,
033                            com.liferay.portal.kernel.exception.SystemException {
034                    return getFinder().findByC_N(companyId, name);
035            }
036    
037            public static java.util.List<com.liferay.portal.model.UserGroup> findByC_N_D(
038                    long companyId, java.lang.String name, java.lang.String description,
039                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
040                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return getFinder()
043                                       .findByC_N_D(companyId, name, description, params, start,
044                            end, obc);
045            }
046    
047            public static UserGroupFinder getFinder() {
048                    if (_finder == null) {
049                            _finder = (UserGroupFinder)PortalBeanLocatorUtil.locate(UserGroupFinder.class.getName());
050                    }
051    
052                    return _finder;
053            }
054    
055            public void setFinder(UserGroupFinder finder) {
056                    _finder = finder;
057            }
058    
059            private static UserGroupFinder _finder;
060    }