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 countByC_N_D_T(long companyId, java.lang.String name,
37 java.lang.String description, java.lang.Integer type,
38 java.util.LinkedHashMap<String, Object> params)
39 throws com.liferay.portal.SystemException {
40 return getFinder()
41 .countByC_N_D_T(companyId, name, description, type, params);
42 }
43
44 public static java.util.List<com.liferay.portal.model.Role> findBySystem(
45 long companyId) throws com.liferay.portal.SystemException {
46 return getFinder().findBySystem(companyId);
47 }
48
49 public static java.util.List<com.liferay.portal.model.Role> findByUserGroupRole(
50 long userId, long groupId) throws com.liferay.portal.SystemException {
51 return getFinder().findByUserGroupRole(userId, groupId);
52 }
53
54 public static com.liferay.portal.model.Role findByC_N(long companyId,
55 java.lang.String name)
56 throws com.liferay.portal.NoSuchRoleException,
57 com.liferay.portal.SystemException {
58 return getFinder().findByC_N(companyId, name);
59 }
60
61 public static java.util.List<com.liferay.portal.model.Role> findByU_G(
62 long userId, long groupId) throws com.liferay.portal.SystemException {
63 return getFinder().findByU_G(userId, groupId);
64 }
65
66 public static java.util.List<com.liferay.portal.model.Role> findByU_G(
67 long userId, long[] groupIds) throws com.liferay.portal.SystemException {
68 return getFinder().findByU_G(userId, groupIds);
69 }
70
71 public static java.util.List<com.liferay.portal.model.Role> findByU_G(
72 long userId, java.util.List<com.liferay.portal.model.Group> groups)
73 throws com.liferay.portal.SystemException {
74 return getFinder().findByU_G(userId, groups);
75 }
76
77 public static java.util.List<com.liferay.portal.model.Role> findByC_N_D_T(
78 long companyId, java.lang.String name, java.lang.String description,
79 java.lang.Integer type, java.util.LinkedHashMap<String, Object> params,
80 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.SystemException {
82 return getFinder()
83 .findByC_N_D_T(companyId, name, description, type, params,
84 start, end, obc);
85 }
86
87 public static java.util.Map<String, java.util.List<String>> findByC_N_S_P(
88 long companyId, java.lang.String name, int scope,
89 java.lang.String primKey) throws com.liferay.portal.SystemException {
90 return getFinder().findByC_N_S_P(companyId, name, scope, primKey);
91 }
92
93 public static RoleFinder getFinder() {
94 return _finder;
95 }
96
97 public void setFinder(RoleFinder finder) {
98 _finder = finder;
99 }
100
101 private static RoleFinder _finder;
102 }