1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.util.ReferenceRegistry;
19  
20  /**
21   * <a href="UserGroupFinderUtil.java.html"><b><i>View Source</i></b></a>
22   *
23   * @author Brian Wing Shun Chan
24   */
25  public class UserGroupFinderUtil {
26      public static int countByC_N_D(long companyId, java.lang.String name,
27          java.lang.String description,
28          java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
29          throws com.liferay.portal.SystemException {
30          return getFinder().countByC_N_D(companyId, name, description, params);
31      }
32  
33      public static com.liferay.portal.model.UserGroup findByC_N(long companyId,
34          java.lang.String name)
35          throws com.liferay.portal.NoSuchUserGroupException,
36              com.liferay.portal.SystemException {
37          return getFinder().findByC_N(companyId, name);
38      }
39  
40      public static java.util.List<com.liferay.portal.model.UserGroup> findByC_N_D(
41          long companyId, java.lang.String name, java.lang.String description,
42          java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
43          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
44          throws com.liferay.portal.SystemException {
45          return getFinder()
46                     .findByC_N_D(companyId, name, description, params, start,
47              end, obc);
48      }
49  
50      public static UserGroupFinder getFinder() {
51          if (_finder == null) {
52              _finder = (UserGroupFinder)PortalBeanLocatorUtil.locate(UserGroupFinder.class.getName());
53  
54              ReferenceRegistry.registerReference(UserGroupFinderUtil.class,
55                  "_finder");
56          }
57  
58          return _finder;
59      }
60  
61      public void setFinder(UserGroupFinder finder) {
62          _finder = finder;
63  
64          ReferenceRegistry.registerReference(UserGroupFinderUtil.class, "_finder");
65      }
66  
67      private static UserGroupFinder _finder;
68  }