1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class RoleUtil {
32 public static void cacheResult(com.liferay.portal.model.Role role) {
33 getPersistence().cacheResult(role);
34 }
35
36 public static void cacheResult(
37 java.util.List<com.liferay.portal.model.Role> roles) {
38 getPersistence().cacheResult(roles);
39 }
40
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45 public static com.liferay.portal.model.Role create(long roleId) {
46 return getPersistence().create(roleId);
47 }
48
49 public static com.liferay.portal.model.Role remove(long roleId)
50 throws com.liferay.portal.NoSuchRoleException,
51 com.liferay.portal.SystemException {
52 return getPersistence().remove(roleId);
53 }
54
55 public static com.liferay.portal.model.Role remove(
56 com.liferay.portal.model.Role role)
57 throws com.liferay.portal.SystemException {
58 return getPersistence().remove(role);
59 }
60
61
64 public static com.liferay.portal.model.Role update(
65 com.liferay.portal.model.Role role)
66 throws com.liferay.portal.SystemException {
67 return getPersistence().update(role);
68 }
69
70
83 public static com.liferay.portal.model.Role update(
84 com.liferay.portal.model.Role role, boolean merge)
85 throws com.liferay.portal.SystemException {
86 return getPersistence().update(role, merge);
87 }
88
89 public static com.liferay.portal.model.Role updateImpl(
90 com.liferay.portal.model.Role role, boolean merge)
91 throws com.liferay.portal.SystemException {
92 return getPersistence().updateImpl(role, merge);
93 }
94
95 public static com.liferay.portal.model.Role findByPrimaryKey(long roleId)
96 throws com.liferay.portal.NoSuchRoleException,
97 com.liferay.portal.SystemException {
98 return getPersistence().findByPrimaryKey(roleId);
99 }
100
101 public static com.liferay.portal.model.Role fetchByPrimaryKey(long roleId)
102 throws com.liferay.portal.SystemException {
103 return getPersistence().fetchByPrimaryKey(roleId);
104 }
105
106 public static java.util.List<com.liferay.portal.model.Role> findByCompanyId(
107 long companyId) throws com.liferay.portal.SystemException {
108 return getPersistence().findByCompanyId(companyId);
109 }
110
111 public static java.util.List<com.liferay.portal.model.Role> findByCompanyId(
112 long companyId, int start, int end)
113 throws com.liferay.portal.SystemException {
114 return getPersistence().findByCompanyId(companyId, start, end);
115 }
116
117 public static java.util.List<com.liferay.portal.model.Role> findByCompanyId(
118 long companyId, int start, int end,
119 com.liferay.portal.kernel.util.OrderByComparator obc)
120 throws com.liferay.portal.SystemException {
121 return getPersistence().findByCompanyId(companyId, start, end, obc);
122 }
123
124 public static com.liferay.portal.model.Role findByCompanyId_First(
125 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
126 throws com.liferay.portal.NoSuchRoleException,
127 com.liferay.portal.SystemException {
128 return getPersistence().findByCompanyId_First(companyId, obc);
129 }
130
131 public static com.liferay.portal.model.Role findByCompanyId_Last(
132 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.NoSuchRoleException,
134 com.liferay.portal.SystemException {
135 return getPersistence().findByCompanyId_Last(companyId, obc);
136 }
137
138 public static com.liferay.portal.model.Role[] findByCompanyId_PrevAndNext(
139 long roleId, long companyId,
140 com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.NoSuchRoleException,
142 com.liferay.portal.SystemException {
143 return getPersistence()
144 .findByCompanyId_PrevAndNext(roleId, companyId, obc);
145 }
146
147 public static java.util.List<com.liferay.portal.model.Role> findBySubtype(
148 java.lang.String subtype) throws com.liferay.portal.SystemException {
149 return getPersistence().findBySubtype(subtype);
150 }
151
152 public static java.util.List<com.liferay.portal.model.Role> findBySubtype(
153 java.lang.String subtype, int start, int end)
154 throws com.liferay.portal.SystemException {
155 return getPersistence().findBySubtype(subtype, start, end);
156 }
157
158 public static java.util.List<com.liferay.portal.model.Role> findBySubtype(
159 java.lang.String subtype, int start, int end,
160 com.liferay.portal.kernel.util.OrderByComparator obc)
161 throws com.liferay.portal.SystemException {
162 return getPersistence().findBySubtype(subtype, start, end, obc);
163 }
164
165 public static com.liferay.portal.model.Role findBySubtype_First(
166 java.lang.String subtype,
167 com.liferay.portal.kernel.util.OrderByComparator obc)
168 throws com.liferay.portal.NoSuchRoleException,
169 com.liferay.portal.SystemException {
170 return getPersistence().findBySubtype_First(subtype, obc);
171 }
172
173 public static com.liferay.portal.model.Role findBySubtype_Last(
174 java.lang.String subtype,
175 com.liferay.portal.kernel.util.OrderByComparator obc)
176 throws com.liferay.portal.NoSuchRoleException,
177 com.liferay.portal.SystemException {
178 return getPersistence().findBySubtype_Last(subtype, obc);
179 }
180
181 public static com.liferay.portal.model.Role[] findBySubtype_PrevAndNext(
182 long roleId, java.lang.String subtype,
183 com.liferay.portal.kernel.util.OrderByComparator obc)
184 throws com.liferay.portal.NoSuchRoleException,
185 com.liferay.portal.SystemException {
186 return getPersistence().findBySubtype_PrevAndNext(roleId, subtype, obc);
187 }
188
189 public static com.liferay.portal.model.Role findByC_N(long companyId,
190 java.lang.String name)
191 throws com.liferay.portal.NoSuchRoleException,
192 com.liferay.portal.SystemException {
193 return getPersistence().findByC_N(companyId, name);
194 }
195
196 public static com.liferay.portal.model.Role fetchByC_N(long companyId,
197 java.lang.String name) throws com.liferay.portal.SystemException {
198 return getPersistence().fetchByC_N(companyId, name);
199 }
200
201 public static com.liferay.portal.model.Role fetchByC_N(long companyId,
202 java.lang.String name, boolean retrieveFromCache)
203 throws com.liferay.portal.SystemException {
204 return getPersistence().fetchByC_N(companyId, name, retrieveFromCache);
205 }
206
207 public static java.util.List<com.liferay.portal.model.Role> findByT_S(
208 int type, java.lang.String subtype)
209 throws com.liferay.portal.SystemException {
210 return getPersistence().findByT_S(type, subtype);
211 }
212
213 public static java.util.List<com.liferay.portal.model.Role> findByT_S(
214 int type, java.lang.String subtype, int start, int end)
215 throws com.liferay.portal.SystemException {
216 return getPersistence().findByT_S(type, subtype, start, end);
217 }
218
219 public static java.util.List<com.liferay.portal.model.Role> findByT_S(
220 int type, java.lang.String subtype, int start, int end,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.SystemException {
223 return getPersistence().findByT_S(type, subtype, start, end, obc);
224 }
225
226 public static com.liferay.portal.model.Role findByT_S_First(int type,
227 java.lang.String subtype,
228 com.liferay.portal.kernel.util.OrderByComparator obc)
229 throws com.liferay.portal.NoSuchRoleException,
230 com.liferay.portal.SystemException {
231 return getPersistence().findByT_S_First(type, subtype, obc);
232 }
233
234 public static com.liferay.portal.model.Role findByT_S_Last(int type,
235 java.lang.String subtype,
236 com.liferay.portal.kernel.util.OrderByComparator obc)
237 throws com.liferay.portal.NoSuchRoleException,
238 com.liferay.portal.SystemException {
239 return getPersistence().findByT_S_Last(type, subtype, obc);
240 }
241
242 public static com.liferay.portal.model.Role[] findByT_S_PrevAndNext(
243 long roleId, int type, java.lang.String subtype,
244 com.liferay.portal.kernel.util.OrderByComparator obc)
245 throws com.liferay.portal.NoSuchRoleException,
246 com.liferay.portal.SystemException {
247 return getPersistence().findByT_S_PrevAndNext(roleId, type, subtype, obc);
248 }
249
250 public static com.liferay.portal.model.Role findByC_C_C(long companyId,
251 long classNameId, long classPK)
252 throws com.liferay.portal.NoSuchRoleException,
253 com.liferay.portal.SystemException {
254 return getPersistence().findByC_C_C(companyId, classNameId, classPK);
255 }
256
257 public static com.liferay.portal.model.Role fetchByC_C_C(long companyId,
258 long classNameId, long classPK)
259 throws com.liferay.portal.SystemException {
260 return getPersistence().fetchByC_C_C(companyId, classNameId, classPK);
261 }
262
263 public static com.liferay.portal.model.Role fetchByC_C_C(long companyId,
264 long classNameId, long classPK, boolean retrieveFromCache)
265 throws com.liferay.portal.SystemException {
266 return getPersistence()
267 .fetchByC_C_C(companyId, classNameId, classPK,
268 retrieveFromCache);
269 }
270
271 public static java.util.List<Object> findWithDynamicQuery(
272 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
273 throws com.liferay.portal.SystemException {
274 return getPersistence().findWithDynamicQuery(dynamicQuery);
275 }
276
277 public static java.util.List<Object> findWithDynamicQuery(
278 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
279 int end) throws com.liferay.portal.SystemException {
280 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
281 }
282
283 public static java.util.List<com.liferay.portal.model.Role> findAll()
284 throws com.liferay.portal.SystemException {
285 return getPersistence().findAll();
286 }
287
288 public static java.util.List<com.liferay.portal.model.Role> findAll(
289 int start, int end) throws com.liferay.portal.SystemException {
290 return getPersistence().findAll(start, end);
291 }
292
293 public static java.util.List<com.liferay.portal.model.Role> findAll(
294 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
295 throws com.liferay.portal.SystemException {
296 return getPersistence().findAll(start, end, obc);
297 }
298
299 public static void removeByCompanyId(long companyId)
300 throws com.liferay.portal.SystemException {
301 getPersistence().removeByCompanyId(companyId);
302 }
303
304 public static void removeBySubtype(java.lang.String subtype)
305 throws com.liferay.portal.SystemException {
306 getPersistence().removeBySubtype(subtype);
307 }
308
309 public static void removeByC_N(long companyId, java.lang.String name)
310 throws com.liferay.portal.NoSuchRoleException,
311 com.liferay.portal.SystemException {
312 getPersistence().removeByC_N(companyId, name);
313 }
314
315 public static void removeByT_S(int type, java.lang.String subtype)
316 throws com.liferay.portal.SystemException {
317 getPersistence().removeByT_S(type, subtype);
318 }
319
320 public static void removeByC_C_C(long companyId, long classNameId,
321 long classPK)
322 throws com.liferay.portal.NoSuchRoleException,
323 com.liferay.portal.SystemException {
324 getPersistence().removeByC_C_C(companyId, classNameId, classPK);
325 }
326
327 public static void removeAll() throws com.liferay.portal.SystemException {
328 getPersistence().removeAll();
329 }
330
331 public static int countByCompanyId(long companyId)
332 throws com.liferay.portal.SystemException {
333 return getPersistence().countByCompanyId(companyId);
334 }
335
336 public static int countBySubtype(java.lang.String subtype)
337 throws com.liferay.portal.SystemException {
338 return getPersistence().countBySubtype(subtype);
339 }
340
341 public static int countByC_N(long companyId, java.lang.String name)
342 throws com.liferay.portal.SystemException {
343 return getPersistence().countByC_N(companyId, name);
344 }
345
346 public static int countByT_S(int type, java.lang.String subtype)
347 throws com.liferay.portal.SystemException {
348 return getPersistence().countByT_S(type, subtype);
349 }
350
351 public static int countByC_C_C(long companyId, long classNameId,
352 long classPK) throws com.liferay.portal.SystemException {
353 return getPersistence().countByC_C_C(companyId, classNameId, classPK);
354 }
355
356 public static int countAll() throws com.liferay.portal.SystemException {
357 return getPersistence().countAll();
358 }
359
360 public static java.util.List<com.liferay.portal.model.Group> getGroups(
361 long pk) throws com.liferay.portal.SystemException {
362 return getPersistence().getGroups(pk);
363 }
364
365 public static java.util.List<com.liferay.portal.model.Group> getGroups(
366 long pk, int start, int end) throws com.liferay.portal.SystemException {
367 return getPersistence().getGroups(pk, start, end);
368 }
369
370 public static java.util.List<com.liferay.portal.model.Group> getGroups(
371 long pk, int start, int end,
372 com.liferay.portal.kernel.util.OrderByComparator obc)
373 throws com.liferay.portal.SystemException {
374 return getPersistence().getGroups(pk, start, end, obc);
375 }
376
377 public static int getGroupsSize(long pk)
378 throws com.liferay.portal.SystemException {
379 return getPersistence().getGroupsSize(pk);
380 }
381
382 public static boolean containsGroup(long pk, long groupPK)
383 throws com.liferay.portal.SystemException {
384 return getPersistence().containsGroup(pk, groupPK);
385 }
386
387 public static boolean containsGroups(long pk)
388 throws com.liferay.portal.SystemException {
389 return getPersistence().containsGroups(pk);
390 }
391
392 public static void addGroup(long pk, long groupPK)
393 throws com.liferay.portal.SystemException {
394 getPersistence().addGroup(pk, groupPK);
395 }
396
397 public static void addGroup(long pk, com.liferay.portal.model.Group group)
398 throws com.liferay.portal.SystemException {
399 getPersistence().addGroup(pk, group);
400 }
401
402 public static void addGroups(long pk, long[] groupPKs)
403 throws com.liferay.portal.SystemException {
404 getPersistence().addGroups(pk, groupPKs);
405 }
406
407 public static void addGroups(long pk,
408 java.util.List<com.liferay.portal.model.Group> groups)
409 throws com.liferay.portal.SystemException {
410 getPersistence().addGroups(pk, groups);
411 }
412
413 public static void clearGroups(long pk)
414 throws com.liferay.portal.SystemException {
415 getPersistence().clearGroups(pk);
416 }
417
418 public static void removeGroup(long pk, long groupPK)
419 throws com.liferay.portal.SystemException {
420 getPersistence().removeGroup(pk, groupPK);
421 }
422
423 public static void removeGroup(long pk, com.liferay.portal.model.Group group)
424 throws com.liferay.portal.SystemException {
425 getPersistence().removeGroup(pk, group);
426 }
427
428 public static void removeGroups(long pk, long[] groupPKs)
429 throws com.liferay.portal.SystemException {
430 getPersistence().removeGroups(pk, groupPKs);
431 }
432
433 public static void removeGroups(long pk,
434 java.util.List<com.liferay.portal.model.Group> groups)
435 throws com.liferay.portal.SystemException {
436 getPersistence().removeGroups(pk, groups);
437 }
438
439 public static void setGroups(long pk, long[] groupPKs)
440 throws com.liferay.portal.SystemException {
441 getPersistence().setGroups(pk, groupPKs);
442 }
443
444 public static void setGroups(long pk,
445 java.util.List<com.liferay.portal.model.Group> groups)
446 throws com.liferay.portal.SystemException {
447 getPersistence().setGroups(pk, groups);
448 }
449
450 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
451 long pk) throws com.liferay.portal.SystemException {
452 return getPersistence().getPermissions(pk);
453 }
454
455 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
456 long pk, int start, int end) throws com.liferay.portal.SystemException {
457 return getPersistence().getPermissions(pk, start, end);
458 }
459
460 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
461 long pk, int start, int end,
462 com.liferay.portal.kernel.util.OrderByComparator obc)
463 throws com.liferay.portal.SystemException {
464 return getPersistence().getPermissions(pk, start, end, obc);
465 }
466
467 public static int getPermissionsSize(long pk)
468 throws com.liferay.portal.SystemException {
469 return getPersistence().getPermissionsSize(pk);
470 }
471
472 public static boolean containsPermission(long pk, long permissionPK)
473 throws com.liferay.portal.SystemException {
474 return getPersistence().containsPermission(pk, permissionPK);
475 }
476
477 public static boolean containsPermissions(long pk)
478 throws com.liferay.portal.SystemException {
479 return getPersistence().containsPermissions(pk);
480 }
481
482 public static void addPermission(long pk, long permissionPK)
483 throws com.liferay.portal.SystemException {
484 getPersistence().addPermission(pk, permissionPK);
485 }
486
487 public static void addPermission(long pk,
488 com.liferay.portal.model.Permission permission)
489 throws com.liferay.portal.SystemException {
490 getPersistence().addPermission(pk, permission);
491 }
492
493 public static void addPermissions(long pk, long[] permissionPKs)
494 throws com.liferay.portal.SystemException {
495 getPersistence().addPermissions(pk, permissionPKs);
496 }
497
498 public static void addPermissions(long pk,
499 java.util.List<com.liferay.portal.model.Permission> permissions)
500 throws com.liferay.portal.SystemException {
501 getPersistence().addPermissions(pk, permissions);
502 }
503
504 public static void clearPermissions(long pk)
505 throws com.liferay.portal.SystemException {
506 getPersistence().clearPermissions(pk);
507 }
508
509 public static void removePermission(long pk, long permissionPK)
510 throws com.liferay.portal.SystemException {
511 getPersistence().removePermission(pk, permissionPK);
512 }
513
514 public static void removePermission(long pk,
515 com.liferay.portal.model.Permission permission)
516 throws com.liferay.portal.SystemException {
517 getPersistence().removePermission(pk, permission);
518 }
519
520 public static void removePermissions(long pk, long[] permissionPKs)
521 throws com.liferay.portal.SystemException {
522 getPersistence().removePermissions(pk, permissionPKs);
523 }
524
525 public static void removePermissions(long pk,
526 java.util.List<com.liferay.portal.model.Permission> permissions)
527 throws com.liferay.portal.SystemException {
528 getPersistence().removePermissions(pk, permissions);
529 }
530
531 public static void setPermissions(long pk, long[] permissionPKs)
532 throws com.liferay.portal.SystemException {
533 getPersistence().setPermissions(pk, permissionPKs);
534 }
535
536 public static void setPermissions(long pk,
537 java.util.List<com.liferay.portal.model.Permission> permissions)
538 throws com.liferay.portal.SystemException {
539 getPersistence().setPermissions(pk, permissions);
540 }
541
542 public static java.util.List<com.liferay.portal.model.User> getUsers(
543 long pk) throws com.liferay.portal.SystemException {
544 return getPersistence().getUsers(pk);
545 }
546
547 public static java.util.List<com.liferay.portal.model.User> getUsers(
548 long pk, int start, int end) throws com.liferay.portal.SystemException {
549 return getPersistence().getUsers(pk, start, end);
550 }
551
552 public static java.util.List<com.liferay.portal.model.User> getUsers(
553 long pk, int start, int end,
554 com.liferay.portal.kernel.util.OrderByComparator obc)
555 throws com.liferay.portal.SystemException {
556 return getPersistence().getUsers(pk, start, end, obc);
557 }
558
559 public static int getUsersSize(long pk)
560 throws com.liferay.portal.SystemException {
561 return getPersistence().getUsersSize(pk);
562 }
563
564 public static boolean containsUser(long pk, long userPK)
565 throws com.liferay.portal.SystemException {
566 return getPersistence().containsUser(pk, userPK);
567 }
568
569 public static boolean containsUsers(long pk)
570 throws com.liferay.portal.SystemException {
571 return getPersistence().containsUsers(pk);
572 }
573
574 public static void addUser(long pk, long userPK)
575 throws com.liferay.portal.SystemException {
576 getPersistence().addUser(pk, userPK);
577 }
578
579 public static void addUser(long pk, com.liferay.portal.model.User user)
580 throws com.liferay.portal.SystemException {
581 getPersistence().addUser(pk, user);
582 }
583
584 public static void addUsers(long pk, long[] userPKs)
585 throws com.liferay.portal.SystemException {
586 getPersistence().addUsers(pk, userPKs);
587 }
588
589 public static void addUsers(long pk,
590 java.util.List<com.liferay.portal.model.User> users)
591 throws com.liferay.portal.SystemException {
592 getPersistence().addUsers(pk, users);
593 }
594
595 public static void clearUsers(long pk)
596 throws com.liferay.portal.SystemException {
597 getPersistence().clearUsers(pk);
598 }
599
600 public static void removeUser(long pk, long userPK)
601 throws com.liferay.portal.SystemException {
602 getPersistence().removeUser(pk, userPK);
603 }
604
605 public static void removeUser(long pk, com.liferay.portal.model.User user)
606 throws com.liferay.portal.SystemException {
607 getPersistence().removeUser(pk, user);
608 }
609
610 public static void removeUsers(long pk, long[] userPKs)
611 throws com.liferay.portal.SystemException {
612 getPersistence().removeUsers(pk, userPKs);
613 }
614
615 public static void removeUsers(long pk,
616 java.util.List<com.liferay.portal.model.User> users)
617 throws com.liferay.portal.SystemException {
618 getPersistence().removeUsers(pk, users);
619 }
620
621 public static void setUsers(long pk, long[] userPKs)
622 throws com.liferay.portal.SystemException {
623 getPersistence().setUsers(pk, userPKs);
624 }
625
626 public static void setUsers(long pk,
627 java.util.List<com.liferay.portal.model.User> users)
628 throws com.liferay.portal.SystemException {
629 getPersistence().setUsers(pk, users);
630 }
631
632 public static RolePersistence getPersistence() {
633 return _persistence;
634 }
635
636 public void setPersistence(RolePersistence persistence) {
637 _persistence = persistence;
638 }
639
640 private static RolePersistence _persistence;
641 }