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