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