1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public class ResourcePermissionUtil {
40 public static void cacheResult(
41 com.liferay.portal.model.ResourcePermission resourcePermission) {
42 getPersistence().cacheResult(resourcePermission);
43 }
44
45 public static void cacheResult(
46 java.util.List<com.liferay.portal.model.ResourcePermission> resourcePermissions) {
47 getPersistence().cacheResult(resourcePermissions);
48 }
49
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54 public static com.liferay.portal.model.ResourcePermission create(
55 long resourcePermissionId) {
56 return getPersistence().create(resourcePermissionId);
57 }
58
59 public static com.liferay.portal.model.ResourcePermission remove(
60 long resourcePermissionId)
61 throws com.liferay.portal.NoSuchResourcePermissionException,
62 com.liferay.portal.SystemException {
63 return getPersistence().remove(resourcePermissionId);
64 }
65
66 public static com.liferay.portal.model.ResourcePermission remove(
67 com.liferay.portal.model.ResourcePermission resourcePermission)
68 throws com.liferay.portal.SystemException {
69 return getPersistence().remove(resourcePermission);
70 }
71
72
75 public static com.liferay.portal.model.ResourcePermission update(
76 com.liferay.portal.model.ResourcePermission resourcePermission)
77 throws com.liferay.portal.SystemException {
78 return getPersistence().update(resourcePermission);
79 }
80
81
93 public static com.liferay.portal.model.ResourcePermission update(
94 com.liferay.portal.model.ResourcePermission resourcePermission,
95 boolean merge) throws com.liferay.portal.SystemException {
96 return getPersistence().update(resourcePermission, merge);
97 }
98
99 public static com.liferay.portal.model.ResourcePermission updateImpl(
100 com.liferay.portal.model.ResourcePermission resourcePermission,
101 boolean merge) throws com.liferay.portal.SystemException {
102 return getPersistence().updateImpl(resourcePermission, merge);
103 }
104
105 public static com.liferay.portal.model.ResourcePermission findByPrimaryKey(
106 long resourcePermissionId)
107 throws com.liferay.portal.NoSuchResourcePermissionException,
108 com.liferay.portal.SystemException {
109 return getPersistence().findByPrimaryKey(resourcePermissionId);
110 }
111
112 public static com.liferay.portal.model.ResourcePermission fetchByPrimaryKey(
113 long resourcePermissionId) throws com.liferay.portal.SystemException {
114 return getPersistence().fetchByPrimaryKey(resourcePermissionId);
115 }
116
117 public static java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId(
118 long roleId) throws com.liferay.portal.SystemException {
119 return getPersistence().findByRoleId(roleId);
120 }
121
122 public static java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId(
123 long roleId, int start, int end)
124 throws com.liferay.portal.SystemException {
125 return getPersistence().findByRoleId(roleId, start, end);
126 }
127
128 public static java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId(
129 long roleId, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException {
132 return getPersistence().findByRoleId(roleId, start, end, obc);
133 }
134
135 public static com.liferay.portal.model.ResourcePermission findByRoleId_First(
136 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.NoSuchResourcePermissionException,
138 com.liferay.portal.SystemException {
139 return getPersistence().findByRoleId_First(roleId, obc);
140 }
141
142 public static com.liferay.portal.model.ResourcePermission findByRoleId_Last(
143 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.NoSuchResourcePermissionException,
145 com.liferay.portal.SystemException {
146 return getPersistence().findByRoleId_Last(roleId, obc);
147 }
148
149 public static com.liferay.portal.model.ResourcePermission[] findByRoleId_PrevAndNext(
150 long resourcePermissionId, long roleId,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.NoSuchResourcePermissionException,
153 com.liferay.portal.SystemException {
154 return getPersistence()
155 .findByRoleId_PrevAndNext(resourcePermissionId, roleId, obc);
156 }
157
158 public static java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
159 long companyId, java.lang.String name, int scope)
160 throws com.liferay.portal.SystemException {
161 return getPersistence().findByC_N_S(companyId, name, scope);
162 }
163
164 public static java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
165 long companyId, java.lang.String name, int scope, int start, int end)
166 throws com.liferay.portal.SystemException {
167 return getPersistence().findByC_N_S(companyId, name, scope, start, end);
168 }
169
170 public static java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S(
171 long companyId, java.lang.String name, int scope, int start, int end,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException {
174 return getPersistence()
175 .findByC_N_S(companyId, name, scope, start, end, obc);
176 }
177
178 public static com.liferay.portal.model.ResourcePermission findByC_N_S_First(
179 long companyId, java.lang.String name, int scope,
180 com.liferay.portal.kernel.util.OrderByComparator obc)
181 throws com.liferay.portal.NoSuchResourcePermissionException,
182 com.liferay.portal.SystemException {
183 return getPersistence().findByC_N_S_First(companyId, name, scope, obc);
184 }
185
186 public static com.liferay.portal.model.ResourcePermission findByC_N_S_Last(
187 long companyId, java.lang.String name, int scope,
188 com.liferay.portal.kernel.util.OrderByComparator obc)
189 throws com.liferay.portal.NoSuchResourcePermissionException,
190 com.liferay.portal.SystemException {
191 return getPersistence().findByC_N_S_Last(companyId, name, scope, obc);
192 }
193
194 public static com.liferay.portal.model.ResourcePermission[] findByC_N_S_PrevAndNext(
195 long resourcePermissionId, long companyId, java.lang.String name,
196 int scope, com.liferay.portal.kernel.util.OrderByComparator obc)
197 throws com.liferay.portal.NoSuchResourcePermissionException,
198 com.liferay.portal.SystemException {
199 return getPersistence()
200 .findByC_N_S_PrevAndNext(resourcePermissionId, companyId,
201 name, scope, obc);
202 }
203
204 public static java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
205 long companyId, java.lang.String name, int scope,
206 java.lang.String primKey) throws com.liferay.portal.SystemException {
207 return getPersistence().findByC_N_S_P(companyId, name, scope, primKey);
208 }
209
210 public static java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
211 long companyId, java.lang.String name, int scope,
212 java.lang.String primKey, int start, int end)
213 throws com.liferay.portal.SystemException {
214 return getPersistence()
215 .findByC_N_S_P(companyId, name, scope, primKey, start, end);
216 }
217
218 public static java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P(
219 long companyId, java.lang.String name, int scope,
220 java.lang.String primKey, int start, int end,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.SystemException {
223 return getPersistence()
224 .findByC_N_S_P(companyId, name, scope, primKey, start, end,
225 obc);
226 }
227
228 public static com.liferay.portal.model.ResourcePermission findByC_N_S_P_First(
229 long companyId, java.lang.String name, int scope,
230 java.lang.String primKey,
231 com.liferay.portal.kernel.util.OrderByComparator obc)
232 throws com.liferay.portal.NoSuchResourcePermissionException,
233 com.liferay.portal.SystemException {
234 return getPersistence()
235 .findByC_N_S_P_First(companyId, name, scope, primKey, obc);
236 }
237
238 public static com.liferay.portal.model.ResourcePermission findByC_N_S_P_Last(
239 long companyId, java.lang.String name, int scope,
240 java.lang.String primKey,
241 com.liferay.portal.kernel.util.OrderByComparator obc)
242 throws com.liferay.portal.NoSuchResourcePermissionException,
243 com.liferay.portal.SystemException {
244 return getPersistence()
245 .findByC_N_S_P_Last(companyId, name, scope, primKey, obc);
246 }
247
248 public static com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_PrevAndNext(
249 long resourcePermissionId, long companyId, java.lang.String name,
250 int scope, java.lang.String primKey,
251 com.liferay.portal.kernel.util.OrderByComparator obc)
252 throws com.liferay.portal.NoSuchResourcePermissionException,
253 com.liferay.portal.SystemException {
254 return getPersistence()
255 .findByC_N_S_P_PrevAndNext(resourcePermissionId, companyId,
256 name, scope, primKey, obc);
257 }
258
259 public static com.liferay.portal.model.ResourcePermission findByC_N_S_P_R(
260 long companyId, java.lang.String name, int scope,
261 java.lang.String primKey, long roleId)
262 throws com.liferay.portal.NoSuchResourcePermissionException,
263 com.liferay.portal.SystemException {
264 return getPersistence()
265 .findByC_N_S_P_R(companyId, name, scope, primKey, roleId);
266 }
267
268 public static com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R(
269 long companyId, java.lang.String name, int scope,
270 java.lang.String primKey, long roleId)
271 throws com.liferay.portal.SystemException {
272 return getPersistence()
273 .fetchByC_N_S_P_R(companyId, name, scope, primKey, roleId);
274 }
275
276 public static com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R(
277 long companyId, java.lang.String name, int scope,
278 java.lang.String primKey, long roleId, boolean retrieveFromCache)
279 throws com.liferay.portal.SystemException {
280 return getPersistence()
281 .fetchByC_N_S_P_R(companyId, name, scope, primKey, roleId,
282 retrieveFromCache);
283 }
284
285 public static java.util.List<Object> findWithDynamicQuery(
286 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
287 throws com.liferay.portal.SystemException {
288 return getPersistence().findWithDynamicQuery(dynamicQuery);
289 }
290
291 public static java.util.List<Object> findWithDynamicQuery(
292 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
293 int end) throws com.liferay.portal.SystemException {
294 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
295 }
296
297 public static java.util.List<com.liferay.portal.model.ResourcePermission> findAll()
298 throws com.liferay.portal.SystemException {
299 return getPersistence().findAll();
300 }
301
302 public static java.util.List<com.liferay.portal.model.ResourcePermission> findAll(
303 int start, int end) throws com.liferay.portal.SystemException {
304 return getPersistence().findAll(start, end);
305 }
306
307 public static java.util.List<com.liferay.portal.model.ResourcePermission> findAll(
308 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
309 throws com.liferay.portal.SystemException {
310 return getPersistence().findAll(start, end, obc);
311 }
312
313 public static void removeByRoleId(long roleId)
314 throws com.liferay.portal.SystemException {
315 getPersistence().removeByRoleId(roleId);
316 }
317
318 public static void removeByC_N_S(long companyId, java.lang.String name,
319 int scope) throws com.liferay.portal.SystemException {
320 getPersistence().removeByC_N_S(companyId, name, scope);
321 }
322
323 public static void removeByC_N_S_P(long companyId, java.lang.String name,
324 int scope, java.lang.String primKey)
325 throws com.liferay.portal.SystemException {
326 getPersistence().removeByC_N_S_P(companyId, name, scope, primKey);
327 }
328
329 public static void removeByC_N_S_P_R(long companyId, java.lang.String name,
330 int scope, java.lang.String primKey, long roleId)
331 throws com.liferay.portal.NoSuchResourcePermissionException,
332 com.liferay.portal.SystemException {
333 getPersistence()
334 .removeByC_N_S_P_R(companyId, name, scope, primKey, roleId);
335 }
336
337 public static void removeAll() throws com.liferay.portal.SystemException {
338 getPersistence().removeAll();
339 }
340
341 public static int countByRoleId(long roleId)
342 throws com.liferay.portal.SystemException {
343 return getPersistence().countByRoleId(roleId);
344 }
345
346 public static int countByC_N_S(long companyId, java.lang.String name,
347 int scope) throws com.liferay.portal.SystemException {
348 return getPersistence().countByC_N_S(companyId, name, scope);
349 }
350
351 public static int countByC_N_S_P(long companyId, java.lang.String name,
352 int scope, java.lang.String primKey)
353 throws com.liferay.portal.SystemException {
354 return getPersistence().countByC_N_S_P(companyId, name, scope, primKey);
355 }
356
357 public static int countByC_N_S_P_R(long companyId, java.lang.String name,
358 int scope, java.lang.String primKey, long roleId)
359 throws com.liferay.portal.SystemException {
360 return getPersistence()
361 .countByC_N_S_P_R(companyId, name, scope, primKey, roleId);
362 }
363
364 public static int countAll() throws com.liferay.portal.SystemException {
365 return getPersistence().countAll();
366 }
367
368 public static ResourcePermissionPersistence getPersistence() {
369 return _persistence;
370 }
371
372 public void setPersistence(ResourcePermissionPersistence persistence) {
373 _persistence = persistence;
374 }
375
376 private static ResourcePermissionPersistence _persistence;
377 }