1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class GroupFinderUtil {
32 public static int countByG_U(long groupId, long userId)
33 throws com.liferay.portal.SystemException {
34 return getFinder().countByG_U(groupId, userId);
35 }
36
37 public static int countByC_N_D(long companyId, java.lang.String name,
38 java.lang.String description, java.util.LinkedHashMap params)
39 throws com.liferay.portal.SystemException {
40 return getFinder().countByC_N_D(companyId, name, description, params);
41 }
42
43 public static com.liferay.portal.model.Group findByC_N(long companyId,
44 java.lang.String name)
45 throws com.liferay.portal.SystemException,
46 com.liferay.portal.NoSuchGroupException {
47 return getFinder().findByC_N(companyId, name);
48 }
49
50 public static java.util.List findByC_N_D(long companyId,
51 java.lang.String name, java.lang.String description,
52 java.util.LinkedHashMap params, int begin, int end,
53 com.liferay.portal.kernel.util.OrderByComparator obc)
54 throws com.liferay.portal.SystemException {
55 return getFinder().findByC_N_D(companyId, name, description, params,
56 begin, end, obc);
57 }
58
59 public static GroupFinder getFinder() {
60 return _getUtil()._finder;
61 }
62
63 public void setFinder(GroupFinder finder) {
64 _finder = finder;
65 }
66
67 private static GroupFinderUtil _getUtil() {
68 if (_util == null) {
69 _util = (GroupFinderUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
70 }
71
72 return _util;
73 }
74
75 private static final String _UTIL = GroupFinderUtil.class.getName();
76 private static GroupFinderUtil _util;
77 private GroupFinder _finder;
78 }