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  
19  /**
20   * <a href="GroupFinderUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class GroupFinderUtil {
25      public static int countByG_U(long groupId, long userId)
26          throws com.liferay.portal.SystemException {
27          return getFinder().countByG_U(groupId, userId);
28      }
29  
30      public static int countByC_N_D(long companyId, java.lang.String name,
31          java.lang.String description,
32          java.util.LinkedHashMap<String, Object> params)
33          throws com.liferay.portal.SystemException {
34          return getFinder().countByC_N_D(companyId, name, description, params);
35      }
36  
37      public static java.util.List<com.liferay.portal.model.Group> findByNoLayouts(
38          long classNameId, boolean privateLayout, int start, int end)
39          throws com.liferay.portal.SystemException {
40          return getFinder()
41                     .findByNoLayouts(classNameId, privateLayout, start, end);
42      }
43  
44      public static java.util.List<com.liferay.portal.model.Group> findByNullFriendlyURL()
45          throws com.liferay.portal.SystemException {
46          return getFinder().findByNullFriendlyURL();
47      }
48  
49      public static java.util.List<com.liferay.portal.model.Group> findBySystem(
50          long companyId) throws com.liferay.portal.SystemException {
51          return getFinder().findBySystem(companyId);
52      }
53  
54      public static com.liferay.portal.model.Group findByC_N(long companyId,
55          java.lang.String name)
56          throws com.liferay.portal.NoSuchGroupException,
57              com.liferay.portal.SystemException {
58          return getFinder().findByC_N(companyId, name);
59      }
60  
61      public static java.util.List<com.liferay.portal.model.Group> findByC_N_D(
62          long companyId, java.lang.String name, java.lang.String description,
63          java.util.LinkedHashMap<String, Object> params, int start, int end,
64          com.liferay.portal.kernel.util.OrderByComparator obc)
65          throws com.liferay.portal.SystemException {
66          return getFinder()
67                     .findByC_N_D(companyId, name, description, params, start,
68              end, obc);
69      }
70  
71      public static GroupFinder getFinder() {
72          if (_finder == null) {
73              _finder = (GroupFinder)PortalBeanLocatorUtil.locate(GroupFinder.class.getName());
74          }
75  
76          return _finder;
77      }
78  
79      public void setFinder(GroupFinder finder) {
80          _finder = finder;
81      }
82  
83      private static GroupFinder _finder;
84  }