1
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
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 }