1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
24 public class RoleFinderUtil {
25 public static int countByR_U(long roleId, long userId)
26 throws com.liferay.portal.kernel.exception.SystemException {
27 return getFinder().countByR_U(roleId, userId);
28 }
29
30 public static int countByU_G_R(long userId, long groupId, long roleId)
31 throws com.liferay.portal.kernel.exception.SystemException {
32 return getFinder().countByU_G_R(userId, groupId, roleId);
33 }
34
35 public static int countByC_N_D_T(long companyId, java.lang.String name,
36 java.lang.String description, java.lang.Integer[] types,
37 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
38 throws com.liferay.portal.kernel.exception.SystemException {
39 return getFinder()
40 .countByC_N_D_T(companyId, name, description, types, params);
41 }
42
43 public static java.util.List<com.liferay.portal.model.Role> findBySystem(
44 long companyId)
45 throws com.liferay.portal.kernel.exception.SystemException {
46 return getFinder().findBySystem(companyId);
47 }
48
49 public static java.util.List<com.liferay.portal.model.Role> findByUserGroupGroupRole(
50 long userId, long groupId)
51 throws com.liferay.portal.kernel.exception.SystemException {
52 return getFinder().findByUserGroupGroupRole(userId, groupId);
53 }
54
55 public static java.util.List<com.liferay.portal.model.Role> findByUserGroupRole(
56 long userId, long groupId)
57 throws com.liferay.portal.kernel.exception.SystemException {
58 return getFinder().findByUserGroupRole(userId, groupId);
59 }
60
61 public static com.liferay.portal.model.Role findByC_N(long companyId,
62 java.lang.String name)
63 throws com.liferay.portal.NoSuchRoleException,
64 com.liferay.portal.kernel.exception.SystemException {
65 return getFinder().findByC_N(companyId, name);
66 }
67
68 public static java.util.List<com.liferay.portal.model.Role> findByU_G(
69 long userId, long groupId)
70 throws com.liferay.portal.kernel.exception.SystemException {
71 return getFinder().findByU_G(userId, groupId);
72 }
73
74 public static java.util.List<com.liferay.portal.model.Role> findByU_G(
75 long userId, long[] groupIds)
76 throws com.liferay.portal.kernel.exception.SystemException {
77 return getFinder().findByU_G(userId, groupIds);
78 }
79
80 public static java.util.List<com.liferay.portal.model.Role> findByU_G(
81 long userId, java.util.List<com.liferay.portal.model.Group> groups)
82 throws com.liferay.portal.kernel.exception.SystemException {
83 return getFinder().findByU_G(userId, groups);
84 }
85
86 public static java.util.List<com.liferay.portal.model.Role> findByC_N_D_T(
87 long companyId, java.lang.String name, java.lang.String description,
88 java.lang.Integer[] types,
89 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
90 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
91 throws com.liferay.portal.kernel.exception.SystemException {
92 return getFinder()
93 .findByC_N_D_T(companyId, name, description, types, params,
94 start, end, obc);
95 }
96
97 public static java.util.Map<java.lang.String, java.util.List<java.lang.String>> findByC_N_S_P(
98 long companyId, java.lang.String name, int scope,
99 java.lang.String primKey)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getFinder().findByC_N_S_P(companyId, name, scope, primKey);
102 }
103
104 public static RoleFinder getFinder() {
105 if (_finder == null) {
106 _finder = (RoleFinder)PortalBeanLocatorUtil.locate(RoleFinder.class.getName());
107 }
108
109 return _finder;
110 }
111
112 public void setFinder(RoleFinder finder) {
113 _finder = finder;
114 }
115
116 private static RoleFinder _finder;
117 }