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