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