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