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