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