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