001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
023 public class RoleFinderUtil {
024 public static int countByR_U(long roleId, long userId)
025 throws com.liferay.portal.kernel.exception.SystemException {
026 return getFinder().countByR_U(roleId, userId);
027 }
028
029 public static int countByU_G_R(long userId, long groupId, long roleId)
030 throws com.liferay.portal.kernel.exception.SystemException {
031 return getFinder().countByU_G_R(userId, groupId, roleId);
032 }
033
034 public static int countByC_N_D_T(long companyId, java.lang.String name,
035 java.lang.String description, java.lang.Integer[] types,
036 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
037 boolean andOperator)
038 throws com.liferay.portal.kernel.exception.SystemException {
039 return getFinder()
040 .countByC_N_D_T(companyId, name, description, types, params,
041 andOperator);
042 }
043
044 public static int countByC_N_D_T(long companyId, java.lang.String[] names,
045 java.lang.String[] descriptions, java.lang.Integer[] types,
046 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
047 boolean andOperator)
048 throws com.liferay.portal.kernel.exception.SystemException {
049 return getFinder()
050 .countByC_N_D_T(companyId, names, descriptions, types,
051 params, andOperator);
052 }
053
054 public static int countByKeywords(long companyId,
055 java.lang.String keywords, java.lang.Integer[] types)
056 throws com.liferay.portal.kernel.exception.SystemException {
057 return getFinder().countByKeywords(companyId, keywords, types);
058 }
059
060 public static int countByKeywords(long companyId,
061 java.lang.String keywords, java.lang.Integer[] types,
062 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
063 throws com.liferay.portal.kernel.exception.SystemException {
064 return getFinder().countByKeywords(companyId, keywords, types, params);
065 }
066
067 public static java.util.List<com.liferay.portal.model.Role> findBySystem(
068 long companyId)
069 throws com.liferay.portal.kernel.exception.SystemException {
070 return getFinder().findBySystem(companyId);
071 }
072
073 public static java.util.List<com.liferay.portal.model.Role> findByUserGroupGroupRole(
074 long userId, long groupId)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getFinder().findByUserGroupGroupRole(userId, groupId);
077 }
078
079 public static java.util.List<com.liferay.portal.model.Role> findByUserGroupRole(
080 long userId, long groupId)
081 throws com.liferay.portal.kernel.exception.SystemException {
082 return getFinder().findByUserGroupRole(userId, groupId);
083 }
084
085 public static com.liferay.portal.model.Role findByC_N(long companyId,
086 java.lang.String name)
087 throws com.liferay.portal.NoSuchRoleException,
088 com.liferay.portal.kernel.exception.SystemException {
089 return getFinder().findByC_N(companyId, name);
090 }
091
092 public static java.util.List<com.liferay.portal.model.Role> findByU_G(
093 long userId, java.util.List<com.liferay.portal.model.Group> groups)
094 throws com.liferay.portal.kernel.exception.SystemException {
095 return getFinder().findByU_G(userId, groups);
096 }
097
098 public static java.util.List<com.liferay.portal.model.Role> findByU_G(
099 long userId, long groupId)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getFinder().findByU_G(userId, groupId);
102 }
103
104 public static java.util.List<com.liferay.portal.model.Role> findByU_G(
105 long userId, long[] groupIds)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getFinder().findByU_G(userId, groupIds);
108 }
109
110 public static java.util.List<com.liferay.portal.model.Role> findByR_N_A(
111 long resourceBlockId, java.lang.String className,
112 java.lang.String actionId)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getFinder().findByR_N_A(resourceBlockId, className, actionId);
115 }
116
117 public static java.util.List<com.liferay.portal.model.Role> findByC_N_D_T(
118 long companyId, java.lang.String name, java.lang.String description,
119 java.lang.Integer[] types,
120 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
121 boolean andOperator, int start, int end,
122 com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.kernel.exception.SystemException {
124 return getFinder()
125 .findByC_N_D_T(companyId, name, description, types, params,
126 andOperator, start, end, obc);
127 }
128
129 public static java.util.List<com.liferay.portal.model.Role> findByC_N_D_T(
130 long companyId, java.lang.String[] names,
131 java.lang.String[] descriptions, java.lang.Integer[] types,
132 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
133 boolean andOperator, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getFinder()
137 .findByC_N_D_T(companyId, names, descriptions, types,
138 params, andOperator, start, end, obc);
139 }
140
141 public static java.util.Map<java.lang.String, java.util.List<java.lang.String>> findByC_N_S_P(
142 long companyId, java.lang.String name, int scope,
143 java.lang.String primKey)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getFinder().findByC_N_S_P(companyId, name, scope, primKey);
146 }
147
148 public static java.util.List<com.liferay.portal.model.Role> findByC_N_S_P_A(
149 long companyId, java.lang.String name, int scope,
150 java.lang.String primKey, java.lang.String actionId)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getFinder()
153 .findByC_N_S_P_A(companyId, name, scope, primKey, actionId);
154 }
155
156 public static java.util.List<com.liferay.portal.model.Role> findByKeywords(
157 long companyId, java.lang.String keywords, java.lang.Integer[] types,
158 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return getFinder()
161 .findByKeywords(companyId, keywords, types, start, end, obc);
162 }
163
164 public static java.util.List<com.liferay.portal.model.Role> findByKeywords(
165 long companyId, java.lang.String keywords, java.lang.Integer[] types,
166 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
167 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
168 throws com.liferay.portal.kernel.exception.SystemException {
169 return getFinder()
170 .findByKeywords(companyId, keywords, types, params, start,
171 end, obc);
172 }
173
174 public static RoleFinder getFinder() {
175 if (_finder == null) {
176 _finder = (RoleFinder)PortalBeanLocatorUtil.locate(RoleFinder.class.getName());
177
178 ReferenceRegistry.registerReference(RoleFinderUtil.class, "_finder");
179 }
180
181 return _finder;
182 }
183
184 public void setFinder(RoleFinder finder) {
185 _finder = finder;
186
187 ReferenceRegistry.registerReference(RoleFinderUtil.class, "_finder");
188 }
189
190 private static RoleFinder _finder;
191 }