001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="GroupUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class GroupUtil {
030: public static com.liferay.portal.model.Group create(long groupId) {
031: return getPersistence().create(groupId);
032: }
033:
034: public static com.liferay.portal.model.Group remove(long groupId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.NoSuchGroupException {
037: return getPersistence().remove(groupId);
038: }
039:
040: public static com.liferay.portal.model.Group remove(
041: com.liferay.portal.model.Group group)
042: throws com.liferay.portal.SystemException {
043: return getPersistence().remove(group);
044: }
045:
046: public static com.liferay.portal.model.Group update(
047: com.liferay.portal.model.Group group)
048: throws com.liferay.portal.SystemException {
049: return getPersistence().update(group);
050: }
051:
052: public static com.liferay.portal.model.Group update(
053: com.liferay.portal.model.Group group, boolean merge)
054: throws com.liferay.portal.SystemException {
055: return getPersistence().update(group, merge);
056: }
057:
058: public static com.liferay.portal.model.Group updateImpl(
059: com.liferay.portal.model.Group group, boolean merge)
060: throws com.liferay.portal.SystemException {
061: return getPersistence().updateImpl(group, merge);
062: }
063:
064: public static com.liferay.portal.model.Group findByPrimaryKey(
065: long groupId) throws com.liferay.portal.SystemException,
066: com.liferay.portal.NoSuchGroupException {
067: return getPersistence().findByPrimaryKey(groupId);
068: }
069:
070: public static com.liferay.portal.model.Group fetchByPrimaryKey(
071: long groupId) throws com.liferay.portal.SystemException {
072: return getPersistence().fetchByPrimaryKey(groupId);
073: }
074:
075: public static com.liferay.portal.model.Group findByLiveGroupId(
076: long liveGroupId)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portal.NoSuchGroupException {
079: return getPersistence().findByLiveGroupId(liveGroupId);
080: }
081:
082: public static com.liferay.portal.model.Group fetchByLiveGroupId(
083: long liveGroupId) throws com.liferay.portal.SystemException {
084: return getPersistence().fetchByLiveGroupId(liveGroupId);
085: }
086:
087: public static com.liferay.portal.model.Group findByC_N(
088: long companyId, java.lang.String name)
089: throws com.liferay.portal.SystemException,
090: com.liferay.portal.NoSuchGroupException {
091: return getPersistence().findByC_N(companyId, name);
092: }
093:
094: public static com.liferay.portal.model.Group fetchByC_N(
095: long companyId, java.lang.String name)
096: throws com.liferay.portal.SystemException {
097: return getPersistence().fetchByC_N(companyId, name);
098: }
099:
100: public static com.liferay.portal.model.Group findByC_F(
101: long companyId, java.lang.String friendlyURL)
102: throws com.liferay.portal.SystemException,
103: com.liferay.portal.NoSuchGroupException {
104: return getPersistence().findByC_F(companyId, friendlyURL);
105: }
106:
107: public static com.liferay.portal.model.Group fetchByC_F(
108: long companyId, java.lang.String friendlyURL)
109: throws com.liferay.portal.SystemException {
110: return getPersistence().fetchByC_F(companyId, friendlyURL);
111: }
112:
113: public static com.liferay.portal.model.Group findByC_C_C(
114: long companyId, long classNameId, long classPK)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portal.NoSuchGroupException {
117: return getPersistence().findByC_C_C(companyId, classNameId,
118: classPK);
119: }
120:
121: public static com.liferay.portal.model.Group fetchByC_C_C(
122: long companyId, long classNameId, long classPK)
123: throws com.liferay.portal.SystemException {
124: return getPersistence().fetchByC_C_C(companyId, classNameId,
125: classPK);
126: }
127:
128: public static java.util.List findWithDynamicQuery(
129: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
130: throws com.liferay.portal.SystemException {
131: return getPersistence().findWithDynamicQuery(queryInitializer);
132: }
133:
134: public static java.util.List findWithDynamicQuery(
135: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
136: int begin, int end)
137: throws com.liferay.portal.SystemException {
138: return getPersistence().findWithDynamicQuery(queryInitializer,
139: begin, end);
140: }
141:
142: public static java.util.List findAll()
143: throws com.liferay.portal.SystemException {
144: return getPersistence().findAll();
145: }
146:
147: public static java.util.List findAll(int begin, int end)
148: throws com.liferay.portal.SystemException {
149: return getPersistence().findAll(begin, end);
150: }
151:
152: public static java.util.List findAll(int begin, int end,
153: com.liferay.portal.kernel.util.OrderByComparator obc)
154: throws com.liferay.portal.SystemException {
155: return getPersistence().findAll(begin, end, obc);
156: }
157:
158: public static void removeByLiveGroupId(long liveGroupId)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portal.NoSuchGroupException {
161: getPersistence().removeByLiveGroupId(liveGroupId);
162: }
163:
164: public static void removeByC_N(long companyId, java.lang.String name)
165: throws com.liferay.portal.SystemException,
166: com.liferay.portal.NoSuchGroupException {
167: getPersistence().removeByC_N(companyId, name);
168: }
169:
170: public static void removeByC_F(long companyId,
171: java.lang.String friendlyURL)
172: throws com.liferay.portal.SystemException,
173: com.liferay.portal.NoSuchGroupException {
174: getPersistence().removeByC_F(companyId, friendlyURL);
175: }
176:
177: public static void removeByC_C_C(long companyId, long classNameId,
178: long classPK) throws com.liferay.portal.SystemException,
179: com.liferay.portal.NoSuchGroupException {
180: getPersistence().removeByC_C_C(companyId, classNameId, classPK);
181: }
182:
183: public static void removeAll()
184: throws com.liferay.portal.SystemException {
185: getPersistence().removeAll();
186: }
187:
188: public static int countByLiveGroupId(long liveGroupId)
189: throws com.liferay.portal.SystemException {
190: return getPersistence().countByLiveGroupId(liveGroupId);
191: }
192:
193: public static int countByC_N(long companyId, java.lang.String name)
194: throws com.liferay.portal.SystemException {
195: return getPersistence().countByC_N(companyId, name);
196: }
197:
198: public static int countByC_F(long companyId,
199: java.lang.String friendlyURL)
200: throws com.liferay.portal.SystemException {
201: return getPersistence().countByC_F(companyId, friendlyURL);
202: }
203:
204: public static int countByC_C_C(long companyId, long classNameId,
205: long classPK) throws com.liferay.portal.SystemException {
206: return getPersistence().countByC_C_C(companyId, classNameId,
207: classPK);
208: }
209:
210: public static int countAll()
211: throws com.liferay.portal.SystemException {
212: return getPersistence().countAll();
213: }
214:
215: public static java.util.List getOrganizations(long pk)
216: throws com.liferay.portal.SystemException,
217: com.liferay.portal.NoSuchGroupException {
218: return getPersistence().getOrganizations(pk);
219: }
220:
221: public static java.util.List getOrganizations(long pk, int begin,
222: int end) throws com.liferay.portal.SystemException,
223: com.liferay.portal.NoSuchGroupException {
224: return getPersistence().getOrganizations(pk, begin, end);
225: }
226:
227: public static java.util.List getOrganizations(long pk, int begin,
228: int end,
229: com.liferay.portal.kernel.util.OrderByComparator obc)
230: throws com.liferay.portal.SystemException,
231: com.liferay.portal.NoSuchGroupException {
232: return getPersistence().getOrganizations(pk, begin, end, obc);
233: }
234:
235: public static int getOrganizationsSize(long pk)
236: throws com.liferay.portal.SystemException {
237: return getPersistence().getOrganizationsSize(pk);
238: }
239:
240: public static boolean containsOrganization(long pk,
241: long organizationPK)
242: throws com.liferay.portal.SystemException {
243: return getPersistence()
244: .containsOrganization(pk, organizationPK);
245: }
246:
247: public static boolean containsOrganizations(long pk)
248: throws com.liferay.portal.SystemException {
249: return getPersistence().containsOrganizations(pk);
250: }
251:
252: public static void addOrganization(long pk, long organizationPK)
253: throws com.liferay.portal.SystemException,
254: com.liferay.portal.NoSuchGroupException,
255: com.liferay.portal.NoSuchOrganizationException {
256: getPersistence().addOrganization(pk, organizationPK);
257: }
258:
259: public static void addOrganization(long pk,
260: com.liferay.portal.model.Organization organization)
261: throws com.liferay.portal.SystemException,
262: com.liferay.portal.NoSuchGroupException,
263: com.liferay.portal.NoSuchOrganizationException {
264: getPersistence().addOrganization(pk, organization);
265: }
266:
267: public static void addOrganizations(long pk, long[] organizationPKs)
268: throws com.liferay.portal.SystemException,
269: com.liferay.portal.NoSuchGroupException,
270: com.liferay.portal.NoSuchOrganizationException {
271: getPersistence().addOrganizations(pk, organizationPKs);
272: }
273:
274: public static void addOrganizations(long pk,
275: java.util.List organizations)
276: throws com.liferay.portal.SystemException,
277: com.liferay.portal.NoSuchGroupException,
278: com.liferay.portal.NoSuchOrganizationException {
279: getPersistence().addOrganizations(pk, organizations);
280: }
281:
282: public static void clearOrganizations(long pk)
283: throws com.liferay.portal.SystemException,
284: com.liferay.portal.NoSuchGroupException {
285: getPersistence().clearOrganizations(pk);
286: }
287:
288: public static void removeOrganization(long pk, long organizationPK)
289: throws com.liferay.portal.SystemException,
290: com.liferay.portal.NoSuchGroupException,
291: com.liferay.portal.NoSuchOrganizationException {
292: getPersistence().removeOrganization(pk, organizationPK);
293: }
294:
295: public static void removeOrganization(long pk,
296: com.liferay.portal.model.Organization organization)
297: throws com.liferay.portal.SystemException,
298: com.liferay.portal.NoSuchGroupException,
299: com.liferay.portal.NoSuchOrganizationException {
300: getPersistence().removeOrganization(pk, organization);
301: }
302:
303: public static void removeOrganizations(long pk,
304: long[] organizationPKs)
305: throws com.liferay.portal.SystemException,
306: com.liferay.portal.NoSuchGroupException,
307: com.liferay.portal.NoSuchOrganizationException {
308: getPersistence().removeOrganizations(pk, organizationPKs);
309: }
310:
311: public static void removeOrganizations(long pk,
312: java.util.List organizations)
313: throws com.liferay.portal.SystemException,
314: com.liferay.portal.NoSuchGroupException,
315: com.liferay.portal.NoSuchOrganizationException {
316: getPersistence().removeOrganizations(pk, organizations);
317: }
318:
319: public static void setOrganizations(long pk, long[] organizationPKs)
320: throws com.liferay.portal.SystemException,
321: com.liferay.portal.NoSuchGroupException,
322: com.liferay.portal.NoSuchOrganizationException {
323: getPersistence().setOrganizations(pk, organizationPKs);
324: }
325:
326: public static void setOrganizations(long pk,
327: java.util.List organizations)
328: throws com.liferay.portal.SystemException,
329: com.liferay.portal.NoSuchGroupException,
330: com.liferay.portal.NoSuchOrganizationException {
331: getPersistence().setOrganizations(pk, organizations);
332: }
333:
334: public static java.util.List getPermissions(long pk)
335: throws com.liferay.portal.SystemException,
336: com.liferay.portal.NoSuchGroupException {
337: return getPersistence().getPermissions(pk);
338: }
339:
340: public static java.util.List getPermissions(long pk, int begin,
341: int end) throws com.liferay.portal.SystemException,
342: com.liferay.portal.NoSuchGroupException {
343: return getPersistence().getPermissions(pk, begin, end);
344: }
345:
346: public static java.util.List getPermissions(long pk, int begin,
347: int end,
348: com.liferay.portal.kernel.util.OrderByComparator obc)
349: throws com.liferay.portal.SystemException,
350: com.liferay.portal.NoSuchGroupException {
351: return getPersistence().getPermissions(pk, begin, end, obc);
352: }
353:
354: public static int getPermissionsSize(long pk)
355: throws com.liferay.portal.SystemException {
356: return getPersistence().getPermissionsSize(pk);
357: }
358:
359: public static boolean containsPermission(long pk, long permissionPK)
360: throws com.liferay.portal.SystemException {
361: return getPersistence().containsPermission(pk, permissionPK);
362: }
363:
364: public static boolean containsPermissions(long pk)
365: throws com.liferay.portal.SystemException {
366: return getPersistence().containsPermissions(pk);
367: }
368:
369: public static void addPermission(long pk, long permissionPK)
370: throws com.liferay.portal.SystemException,
371: com.liferay.portal.NoSuchPermissionException,
372: com.liferay.portal.NoSuchGroupException {
373: getPersistence().addPermission(pk, permissionPK);
374: }
375:
376: public static void addPermission(long pk,
377: com.liferay.portal.model.Permission permission)
378: throws com.liferay.portal.SystemException,
379: com.liferay.portal.NoSuchPermissionException,
380: com.liferay.portal.NoSuchGroupException {
381: getPersistence().addPermission(pk, permission);
382: }
383:
384: public static void addPermissions(long pk, long[] permissionPKs)
385: throws com.liferay.portal.SystemException,
386: com.liferay.portal.NoSuchPermissionException,
387: com.liferay.portal.NoSuchGroupException {
388: getPersistence().addPermissions(pk, permissionPKs);
389: }
390:
391: public static void addPermissions(long pk,
392: java.util.List permissions)
393: throws com.liferay.portal.SystemException,
394: com.liferay.portal.NoSuchPermissionException,
395: com.liferay.portal.NoSuchGroupException {
396: getPersistence().addPermissions(pk, permissions);
397: }
398:
399: public static void clearPermissions(long pk)
400: throws com.liferay.portal.SystemException,
401: com.liferay.portal.NoSuchGroupException {
402: getPersistence().clearPermissions(pk);
403: }
404:
405: public static void removePermission(long pk, long permissionPK)
406: throws com.liferay.portal.SystemException,
407: com.liferay.portal.NoSuchPermissionException,
408: com.liferay.portal.NoSuchGroupException {
409: getPersistence().removePermission(pk, permissionPK);
410: }
411:
412: public static void removePermission(long pk,
413: com.liferay.portal.model.Permission permission)
414: throws com.liferay.portal.SystemException,
415: com.liferay.portal.NoSuchPermissionException,
416: com.liferay.portal.NoSuchGroupException {
417: getPersistence().removePermission(pk, permission);
418: }
419:
420: public static void removePermissions(long pk, long[] permissionPKs)
421: throws com.liferay.portal.SystemException,
422: com.liferay.portal.NoSuchPermissionException,
423: com.liferay.portal.NoSuchGroupException {
424: getPersistence().removePermissions(pk, permissionPKs);
425: }
426:
427: public static void removePermissions(long pk,
428: java.util.List permissions)
429: throws com.liferay.portal.SystemException,
430: com.liferay.portal.NoSuchPermissionException,
431: com.liferay.portal.NoSuchGroupException {
432: getPersistence().removePermissions(pk, permissions);
433: }
434:
435: public static void setPermissions(long pk, long[] permissionPKs)
436: throws com.liferay.portal.SystemException,
437: com.liferay.portal.NoSuchPermissionException,
438: com.liferay.portal.NoSuchGroupException {
439: getPersistence().setPermissions(pk, permissionPKs);
440: }
441:
442: public static void setPermissions(long pk,
443: java.util.List permissions)
444: throws com.liferay.portal.SystemException,
445: com.liferay.portal.NoSuchPermissionException,
446: com.liferay.portal.NoSuchGroupException {
447: getPersistence().setPermissions(pk, permissions);
448: }
449:
450: public static java.util.List getRoles(long pk)
451: throws com.liferay.portal.SystemException,
452: com.liferay.portal.NoSuchGroupException {
453: return getPersistence().getRoles(pk);
454: }
455:
456: public static java.util.List getRoles(long pk, int begin, int end)
457: throws com.liferay.portal.SystemException,
458: com.liferay.portal.NoSuchGroupException {
459: return getPersistence().getRoles(pk, begin, end);
460: }
461:
462: public static java.util.List getRoles(long pk, int begin, int end,
463: com.liferay.portal.kernel.util.OrderByComparator obc)
464: throws com.liferay.portal.SystemException,
465: com.liferay.portal.NoSuchGroupException {
466: return getPersistence().getRoles(pk, begin, end, obc);
467: }
468:
469: public static int getRolesSize(long pk)
470: throws com.liferay.portal.SystemException {
471: return getPersistence().getRolesSize(pk);
472: }
473:
474: public static boolean containsRole(long pk, long rolePK)
475: throws com.liferay.portal.SystemException {
476: return getPersistence().containsRole(pk, rolePK);
477: }
478:
479: public static boolean containsRoles(long pk)
480: throws com.liferay.portal.SystemException {
481: return getPersistence().containsRoles(pk);
482: }
483:
484: public static void addRole(long pk, long rolePK)
485: throws com.liferay.portal.SystemException,
486: com.liferay.portal.NoSuchRoleException,
487: com.liferay.portal.NoSuchGroupException {
488: getPersistence().addRole(pk, rolePK);
489: }
490:
491: public static void addRole(long pk,
492: com.liferay.portal.model.Role role)
493: throws com.liferay.portal.SystemException,
494: com.liferay.portal.NoSuchRoleException,
495: com.liferay.portal.NoSuchGroupException {
496: getPersistence().addRole(pk, role);
497: }
498:
499: public static void addRoles(long pk, long[] rolePKs)
500: throws com.liferay.portal.SystemException,
501: com.liferay.portal.NoSuchRoleException,
502: com.liferay.portal.NoSuchGroupException {
503: getPersistence().addRoles(pk, rolePKs);
504: }
505:
506: public static void addRoles(long pk, java.util.List roles)
507: throws com.liferay.portal.SystemException,
508: com.liferay.portal.NoSuchRoleException,
509: com.liferay.portal.NoSuchGroupException {
510: getPersistence().addRoles(pk, roles);
511: }
512:
513: public static void clearRoles(long pk)
514: throws com.liferay.portal.SystemException,
515: com.liferay.portal.NoSuchGroupException {
516: getPersistence().clearRoles(pk);
517: }
518:
519: public static void removeRole(long pk, long rolePK)
520: throws com.liferay.portal.SystemException,
521: com.liferay.portal.NoSuchRoleException,
522: com.liferay.portal.NoSuchGroupException {
523: getPersistence().removeRole(pk, rolePK);
524: }
525:
526: public static void removeRole(long pk,
527: com.liferay.portal.model.Role role)
528: throws com.liferay.portal.SystemException,
529: com.liferay.portal.NoSuchRoleException,
530: com.liferay.portal.NoSuchGroupException {
531: getPersistence().removeRole(pk, role);
532: }
533:
534: public static void removeRoles(long pk, long[] rolePKs)
535: throws com.liferay.portal.SystemException,
536: com.liferay.portal.NoSuchRoleException,
537: com.liferay.portal.NoSuchGroupException {
538: getPersistence().removeRoles(pk, rolePKs);
539: }
540:
541: public static void removeRoles(long pk, java.util.List roles)
542: throws com.liferay.portal.SystemException,
543: com.liferay.portal.NoSuchRoleException,
544: com.liferay.portal.NoSuchGroupException {
545: getPersistence().removeRoles(pk, roles);
546: }
547:
548: public static void setRoles(long pk, long[] rolePKs)
549: throws com.liferay.portal.SystemException,
550: com.liferay.portal.NoSuchRoleException,
551: com.liferay.portal.NoSuchGroupException {
552: getPersistence().setRoles(pk, rolePKs);
553: }
554:
555: public static void setRoles(long pk, java.util.List roles)
556: throws com.liferay.portal.SystemException,
557: com.liferay.portal.NoSuchRoleException,
558: com.liferay.portal.NoSuchGroupException {
559: getPersistence().setRoles(pk, roles);
560: }
561:
562: public static java.util.List getUserGroups(long pk)
563: throws com.liferay.portal.SystemException,
564: com.liferay.portal.NoSuchGroupException {
565: return getPersistence().getUserGroups(pk);
566: }
567:
568: public static java.util.List getUserGroups(long pk, int begin,
569: int end) throws com.liferay.portal.SystemException,
570: com.liferay.portal.NoSuchGroupException {
571: return getPersistence().getUserGroups(pk, begin, end);
572: }
573:
574: public static java.util.List getUserGroups(long pk, int begin,
575: int end,
576: com.liferay.portal.kernel.util.OrderByComparator obc)
577: throws com.liferay.portal.SystemException,
578: com.liferay.portal.NoSuchGroupException {
579: return getPersistence().getUserGroups(pk, begin, end, obc);
580: }
581:
582: public static int getUserGroupsSize(long pk)
583: throws com.liferay.portal.SystemException {
584: return getPersistence().getUserGroupsSize(pk);
585: }
586:
587: public static boolean containsUserGroup(long pk, long userGroupPK)
588: throws com.liferay.portal.SystemException {
589: return getPersistence().containsUserGroup(pk, userGroupPK);
590: }
591:
592: public static boolean containsUserGroups(long pk)
593: throws com.liferay.portal.SystemException {
594: return getPersistence().containsUserGroups(pk);
595: }
596:
597: public static void addUserGroup(long pk, long userGroupPK)
598: throws com.liferay.portal.SystemException,
599: com.liferay.portal.NoSuchGroupException,
600: com.liferay.portal.NoSuchUserGroupException {
601: getPersistence().addUserGroup(pk, userGroupPK);
602: }
603:
604: public static void addUserGroup(long pk,
605: com.liferay.portal.model.UserGroup userGroup)
606: throws com.liferay.portal.SystemException,
607: com.liferay.portal.NoSuchGroupException,
608: com.liferay.portal.NoSuchUserGroupException {
609: getPersistence().addUserGroup(pk, userGroup);
610: }
611:
612: public static void addUserGroups(long pk, long[] userGroupPKs)
613: throws com.liferay.portal.SystemException,
614: com.liferay.portal.NoSuchGroupException,
615: com.liferay.portal.NoSuchUserGroupException {
616: getPersistence().addUserGroups(pk, userGroupPKs);
617: }
618:
619: public static void addUserGroups(long pk, java.util.List userGroups)
620: throws com.liferay.portal.SystemException,
621: com.liferay.portal.NoSuchGroupException,
622: com.liferay.portal.NoSuchUserGroupException {
623: getPersistence().addUserGroups(pk, userGroups);
624: }
625:
626: public static void clearUserGroups(long pk)
627: throws com.liferay.portal.SystemException,
628: com.liferay.portal.NoSuchGroupException {
629: getPersistence().clearUserGroups(pk);
630: }
631:
632: public static void removeUserGroup(long pk, long userGroupPK)
633: throws com.liferay.portal.SystemException,
634: com.liferay.portal.NoSuchGroupException,
635: com.liferay.portal.NoSuchUserGroupException {
636: getPersistence().removeUserGroup(pk, userGroupPK);
637: }
638:
639: public static void removeUserGroup(long pk,
640: com.liferay.portal.model.UserGroup userGroup)
641: throws com.liferay.portal.SystemException,
642: com.liferay.portal.NoSuchGroupException,
643: com.liferay.portal.NoSuchUserGroupException {
644: getPersistence().removeUserGroup(pk, userGroup);
645: }
646:
647: public static void removeUserGroups(long pk, long[] userGroupPKs)
648: throws com.liferay.portal.SystemException,
649: com.liferay.portal.NoSuchGroupException,
650: com.liferay.portal.NoSuchUserGroupException {
651: getPersistence().removeUserGroups(pk, userGroupPKs);
652: }
653:
654: public static void removeUserGroups(long pk,
655: java.util.List userGroups)
656: throws com.liferay.portal.SystemException,
657: com.liferay.portal.NoSuchGroupException,
658: com.liferay.portal.NoSuchUserGroupException {
659: getPersistence().removeUserGroups(pk, userGroups);
660: }
661:
662: public static void setUserGroups(long pk, long[] userGroupPKs)
663: throws com.liferay.portal.SystemException,
664: com.liferay.portal.NoSuchGroupException,
665: com.liferay.portal.NoSuchUserGroupException {
666: getPersistence().setUserGroups(pk, userGroupPKs);
667: }
668:
669: public static void setUserGroups(long pk, java.util.List userGroups)
670: throws com.liferay.portal.SystemException,
671: com.liferay.portal.NoSuchGroupException,
672: com.liferay.portal.NoSuchUserGroupException {
673: getPersistence().setUserGroups(pk, userGroups);
674: }
675:
676: public static java.util.List getUsers(long pk)
677: throws com.liferay.portal.SystemException,
678: com.liferay.portal.NoSuchGroupException {
679: return getPersistence().getUsers(pk);
680: }
681:
682: public static java.util.List getUsers(long pk, int begin, int end)
683: throws com.liferay.portal.SystemException,
684: com.liferay.portal.NoSuchGroupException {
685: return getPersistence().getUsers(pk, begin, end);
686: }
687:
688: public static java.util.List getUsers(long pk, int begin, int end,
689: com.liferay.portal.kernel.util.OrderByComparator obc)
690: throws com.liferay.portal.SystemException,
691: com.liferay.portal.NoSuchGroupException {
692: return getPersistence().getUsers(pk, begin, end, obc);
693: }
694:
695: public static int getUsersSize(long pk)
696: throws com.liferay.portal.SystemException {
697: return getPersistence().getUsersSize(pk);
698: }
699:
700: public static boolean containsUser(long pk, long userPK)
701: throws com.liferay.portal.SystemException {
702: return getPersistence().containsUser(pk, userPK);
703: }
704:
705: public static boolean containsUsers(long pk)
706: throws com.liferay.portal.SystemException {
707: return getPersistence().containsUsers(pk);
708: }
709:
710: public static void addUser(long pk, long userPK)
711: throws com.liferay.portal.SystemException,
712: com.liferay.portal.NoSuchGroupException,
713: com.liferay.portal.NoSuchUserException {
714: getPersistence().addUser(pk, userPK);
715: }
716:
717: public static void addUser(long pk,
718: com.liferay.portal.model.User user)
719: throws com.liferay.portal.SystemException,
720: com.liferay.portal.NoSuchGroupException,
721: com.liferay.portal.NoSuchUserException {
722: getPersistence().addUser(pk, user);
723: }
724:
725: public static void addUsers(long pk, long[] userPKs)
726: throws com.liferay.portal.SystemException,
727: com.liferay.portal.NoSuchGroupException,
728: com.liferay.portal.NoSuchUserException {
729: getPersistence().addUsers(pk, userPKs);
730: }
731:
732: public static void addUsers(long pk, java.util.List users)
733: throws com.liferay.portal.SystemException,
734: com.liferay.portal.NoSuchGroupException,
735: com.liferay.portal.NoSuchUserException {
736: getPersistence().addUsers(pk, users);
737: }
738:
739: public static void clearUsers(long pk)
740: throws com.liferay.portal.SystemException,
741: com.liferay.portal.NoSuchGroupException {
742: getPersistence().clearUsers(pk);
743: }
744:
745: public static void removeUser(long pk, long userPK)
746: throws com.liferay.portal.SystemException,
747: com.liferay.portal.NoSuchGroupException,
748: com.liferay.portal.NoSuchUserException {
749: getPersistence().removeUser(pk, userPK);
750: }
751:
752: public static void removeUser(long pk,
753: com.liferay.portal.model.User user)
754: throws com.liferay.portal.SystemException,
755: com.liferay.portal.NoSuchGroupException,
756: com.liferay.portal.NoSuchUserException {
757: getPersistence().removeUser(pk, user);
758: }
759:
760: public static void removeUsers(long pk, long[] userPKs)
761: throws com.liferay.portal.SystemException,
762: com.liferay.portal.NoSuchGroupException,
763: com.liferay.portal.NoSuchUserException {
764: getPersistence().removeUsers(pk, userPKs);
765: }
766:
767: public static void removeUsers(long pk, java.util.List users)
768: throws com.liferay.portal.SystemException,
769: com.liferay.portal.NoSuchGroupException,
770: com.liferay.portal.NoSuchUserException {
771: getPersistence().removeUsers(pk, users);
772: }
773:
774: public static void setUsers(long pk, long[] userPKs)
775: throws com.liferay.portal.SystemException,
776: com.liferay.portal.NoSuchGroupException,
777: com.liferay.portal.NoSuchUserException {
778: getPersistence().setUsers(pk, userPKs);
779: }
780:
781: public static void setUsers(long pk, java.util.List users)
782: throws com.liferay.portal.SystemException,
783: com.liferay.portal.NoSuchGroupException,
784: com.liferay.portal.NoSuchUserException {
785: getPersistence().setUsers(pk, users);
786: }
787:
788: public static GroupPersistence getPersistence() {
789: return _getUtil()._persistence;
790: }
791:
792: public void setPersistence(GroupPersistence persistence) {
793: _persistence = persistence;
794: }
795:
796: private static GroupUtil _getUtil() {
797: if (_util == null) {
798: _util = (GroupUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
799: .locate(_UTIL);
800: }
801:
802: return _util;
803: }
804:
805: private static final String _UTIL = GroupUtil.class.getName();
806: private static GroupUtil _util;
807: private GroupPersistence _persistence;
808: }
|