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 type,
37 java.util.LinkedHashMap<String, Object> params)
38 throws com.liferay.portal.kernel.exception.SystemException {
39 return getFinder()
40 .countByC_N_D_T(companyId, name, description, type, 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 type, java.util.LinkedHashMap<String, Object> params,
89 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
90 throws com.liferay.portal.kernel.exception.SystemException {
91 return getFinder()
92 .findByC_N_D_T(companyId, name, description, type, params,
93 start, end, obc);
94 }
95
96 public static java.util.Map<String, java.util.List<String>> findByC_N_S_P(
97 long companyId, java.lang.String name, int scope,
98 java.lang.String primKey)
99 throws com.liferay.portal.kernel.exception.SystemException {
100 return getFinder().findByC_N_S_P(companyId, name, scope, primKey);
101 }
102
103 public static RoleFinder getFinder() {
104 if (_finder == null) {
105 _finder = (RoleFinder)PortalBeanLocatorUtil.locate(RoleFinder.class.getName());
106 }
107
108 return _finder;
109 }
110
111 public void setFinder(RoleFinder finder) {
112 _finder = finder;
113 }
114
115 private static RoleFinder _finder;
116 }