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="GroupPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface GroupPersistence {
030: public com.liferay.portal.model.Group create(long groupId);
031:
032: public com.liferay.portal.model.Group remove(long groupId)
033: throws com.liferay.portal.SystemException,
034: com.liferay.portal.NoSuchGroupException;
035:
036: public com.liferay.portal.model.Group remove(
037: com.liferay.portal.model.Group group)
038: throws com.liferay.portal.SystemException;
039:
040: public com.liferay.portal.model.Group update(
041: com.liferay.portal.model.Group group)
042: throws com.liferay.portal.SystemException;
043:
044: public com.liferay.portal.model.Group update(
045: com.liferay.portal.model.Group group, boolean merge)
046: throws com.liferay.portal.SystemException;
047:
048: public com.liferay.portal.model.Group updateImpl(
049: com.liferay.portal.model.Group group, boolean merge)
050: throws com.liferay.portal.SystemException;
051:
052: public com.liferay.portal.model.Group findByPrimaryKey(long groupId)
053: throws com.liferay.portal.SystemException,
054: com.liferay.portal.NoSuchGroupException;
055:
056: public com.liferay.portal.model.Group fetchByPrimaryKey(long groupId)
057: throws com.liferay.portal.SystemException;
058:
059: public com.liferay.portal.model.Group findByLiveGroupId(
060: long liveGroupId)
061: throws com.liferay.portal.SystemException,
062: com.liferay.portal.NoSuchGroupException;
063:
064: public com.liferay.portal.model.Group fetchByLiveGroupId(
065: long liveGroupId) throws com.liferay.portal.SystemException;
066:
067: public com.liferay.portal.model.Group findByC_N(long companyId,
068: java.lang.String name)
069: throws com.liferay.portal.SystemException,
070: com.liferay.portal.NoSuchGroupException;
071:
072: public com.liferay.portal.model.Group fetchByC_N(long companyId,
073: java.lang.String name)
074: throws com.liferay.portal.SystemException;
075:
076: public com.liferay.portal.model.Group findByC_F(long companyId,
077: java.lang.String friendlyURL)
078: throws com.liferay.portal.SystemException,
079: com.liferay.portal.NoSuchGroupException;
080:
081: public com.liferay.portal.model.Group fetchByC_F(long companyId,
082: java.lang.String friendlyURL)
083: throws com.liferay.portal.SystemException;
084:
085: public com.liferay.portal.model.Group findByC_C_C(long companyId,
086: long classNameId, long classPK)
087: throws com.liferay.portal.SystemException,
088: com.liferay.portal.NoSuchGroupException;
089:
090: public com.liferay.portal.model.Group fetchByC_C_C(long companyId,
091: long classNameId, long classPK)
092: throws com.liferay.portal.SystemException;
093:
094: public java.util.List findWithDynamicQuery(
095: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
096: throws com.liferay.portal.SystemException;
097:
098: public java.util.List findWithDynamicQuery(
099: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
100: int begin, int end)
101: throws com.liferay.portal.SystemException;
102:
103: public java.util.List findAll()
104: throws com.liferay.portal.SystemException;
105:
106: public java.util.List findAll(int begin, int end)
107: throws com.liferay.portal.SystemException;
108:
109: public java.util.List findAll(int begin, int end,
110: com.liferay.portal.kernel.util.OrderByComparator obc)
111: throws com.liferay.portal.SystemException;
112:
113: public void removeByLiveGroupId(long liveGroupId)
114: throws com.liferay.portal.SystemException,
115: com.liferay.portal.NoSuchGroupException;
116:
117: public void removeByC_N(long companyId, java.lang.String name)
118: throws com.liferay.portal.SystemException,
119: com.liferay.portal.NoSuchGroupException;
120:
121: public void removeByC_F(long companyId, java.lang.String friendlyURL)
122: throws com.liferay.portal.SystemException,
123: com.liferay.portal.NoSuchGroupException;
124:
125: public void removeByC_C_C(long companyId, long classNameId,
126: long classPK) throws com.liferay.portal.SystemException,
127: com.liferay.portal.NoSuchGroupException;
128:
129: public void removeAll() throws com.liferay.portal.SystemException;
130:
131: public int countByLiveGroupId(long liveGroupId)
132: throws com.liferay.portal.SystemException;
133:
134: public int countByC_N(long companyId, java.lang.String name)
135: throws com.liferay.portal.SystemException;
136:
137: public int countByC_F(long companyId, java.lang.String friendlyURL)
138: throws com.liferay.portal.SystemException;
139:
140: public int countByC_C_C(long companyId, long classNameId,
141: long classPK) throws com.liferay.portal.SystemException;
142:
143: public int countAll() throws com.liferay.portal.SystemException;
144:
145: public java.util.List getOrganizations(long pk)
146: throws com.liferay.portal.SystemException,
147: com.liferay.portal.NoSuchGroupException;
148:
149: public java.util.List getOrganizations(long pk, int begin, int end)
150: throws com.liferay.portal.SystemException,
151: com.liferay.portal.NoSuchGroupException;
152:
153: public java.util.List getOrganizations(long pk, int begin, int end,
154: com.liferay.portal.kernel.util.OrderByComparator obc)
155: throws com.liferay.portal.SystemException,
156: com.liferay.portal.NoSuchGroupException;
157:
158: public int getOrganizationsSize(long pk)
159: throws com.liferay.portal.SystemException;
160:
161: public boolean containsOrganization(long pk, long organizationPK)
162: throws com.liferay.portal.SystemException;
163:
164: public boolean containsOrganizations(long pk)
165: throws com.liferay.portal.SystemException;
166:
167: public void addOrganization(long pk, long organizationPK)
168: throws com.liferay.portal.SystemException,
169: com.liferay.portal.NoSuchGroupException,
170: com.liferay.portal.NoSuchOrganizationException;
171:
172: public void addOrganization(long pk,
173: com.liferay.portal.model.Organization organization)
174: throws com.liferay.portal.SystemException,
175: com.liferay.portal.NoSuchGroupException,
176: com.liferay.portal.NoSuchOrganizationException;
177:
178: public void addOrganizations(long pk, long[] organizationPKs)
179: throws com.liferay.portal.SystemException,
180: com.liferay.portal.NoSuchGroupException,
181: com.liferay.portal.NoSuchOrganizationException;
182:
183: public void addOrganizations(long pk, java.util.List organizations)
184: throws com.liferay.portal.SystemException,
185: com.liferay.portal.NoSuchGroupException,
186: com.liferay.portal.NoSuchOrganizationException;
187:
188: public void clearOrganizations(long pk)
189: throws com.liferay.portal.SystemException,
190: com.liferay.portal.NoSuchGroupException;
191:
192: public void removeOrganization(long pk, long organizationPK)
193: throws com.liferay.portal.SystemException,
194: com.liferay.portal.NoSuchGroupException,
195: com.liferay.portal.NoSuchOrganizationException;
196:
197: public void removeOrganization(long pk,
198: com.liferay.portal.model.Organization organization)
199: throws com.liferay.portal.SystemException,
200: com.liferay.portal.NoSuchGroupException,
201: com.liferay.portal.NoSuchOrganizationException;
202:
203: public void removeOrganizations(long pk, long[] organizationPKs)
204: throws com.liferay.portal.SystemException,
205: com.liferay.portal.NoSuchGroupException,
206: com.liferay.portal.NoSuchOrganizationException;
207:
208: public void removeOrganizations(long pk,
209: java.util.List organizations)
210: throws com.liferay.portal.SystemException,
211: com.liferay.portal.NoSuchGroupException,
212: com.liferay.portal.NoSuchOrganizationException;
213:
214: public void setOrganizations(long pk, long[] organizationPKs)
215: throws com.liferay.portal.SystemException,
216: com.liferay.portal.NoSuchGroupException,
217: com.liferay.portal.NoSuchOrganizationException;
218:
219: public void setOrganizations(long pk, java.util.List organizations)
220: throws com.liferay.portal.SystemException,
221: com.liferay.portal.NoSuchGroupException,
222: com.liferay.portal.NoSuchOrganizationException;
223:
224: public java.util.List getPermissions(long pk)
225: throws com.liferay.portal.SystemException,
226: com.liferay.portal.NoSuchGroupException;
227:
228: public java.util.List getPermissions(long pk, int begin, int end)
229: throws com.liferay.portal.SystemException,
230: com.liferay.portal.NoSuchGroupException;
231:
232: public java.util.List getPermissions(long pk, int begin, int end,
233: com.liferay.portal.kernel.util.OrderByComparator obc)
234: throws com.liferay.portal.SystemException,
235: com.liferay.portal.NoSuchGroupException;
236:
237: public int getPermissionsSize(long pk)
238: throws com.liferay.portal.SystemException;
239:
240: public boolean containsPermission(long pk, long permissionPK)
241: throws com.liferay.portal.SystemException;
242:
243: public boolean containsPermissions(long pk)
244: throws com.liferay.portal.SystemException;
245:
246: public void addPermission(long pk, long permissionPK)
247: throws com.liferay.portal.SystemException,
248: com.liferay.portal.NoSuchPermissionException,
249: com.liferay.portal.NoSuchGroupException;
250:
251: public void addPermission(long pk,
252: com.liferay.portal.model.Permission permission)
253: throws com.liferay.portal.SystemException,
254: com.liferay.portal.NoSuchPermissionException,
255: com.liferay.portal.NoSuchGroupException;
256:
257: public void addPermissions(long pk, long[] permissionPKs)
258: throws com.liferay.portal.SystemException,
259: com.liferay.portal.NoSuchPermissionException,
260: com.liferay.portal.NoSuchGroupException;
261:
262: public void addPermissions(long pk, java.util.List permissions)
263: throws com.liferay.portal.SystemException,
264: com.liferay.portal.NoSuchPermissionException,
265: com.liferay.portal.NoSuchGroupException;
266:
267: public void clearPermissions(long pk)
268: throws com.liferay.portal.SystemException,
269: com.liferay.portal.NoSuchGroupException;
270:
271: public void removePermission(long pk, long permissionPK)
272: throws com.liferay.portal.SystemException,
273: com.liferay.portal.NoSuchPermissionException,
274: com.liferay.portal.NoSuchGroupException;
275:
276: public void removePermission(long pk,
277: com.liferay.portal.model.Permission permission)
278: throws com.liferay.portal.SystemException,
279: com.liferay.portal.NoSuchPermissionException,
280: com.liferay.portal.NoSuchGroupException;
281:
282: public void removePermissions(long pk, long[] permissionPKs)
283: throws com.liferay.portal.SystemException,
284: com.liferay.portal.NoSuchPermissionException,
285: com.liferay.portal.NoSuchGroupException;
286:
287: public void removePermissions(long pk, java.util.List permissions)
288: throws com.liferay.portal.SystemException,
289: com.liferay.portal.NoSuchPermissionException,
290: com.liferay.portal.NoSuchGroupException;
291:
292: public void setPermissions(long pk, long[] permissionPKs)
293: throws com.liferay.portal.SystemException,
294: com.liferay.portal.NoSuchPermissionException,
295: com.liferay.portal.NoSuchGroupException;
296:
297: public void setPermissions(long pk, java.util.List permissions)
298: throws com.liferay.portal.SystemException,
299: com.liferay.portal.NoSuchPermissionException,
300: com.liferay.portal.NoSuchGroupException;
301:
302: public java.util.List getRoles(long pk)
303: throws com.liferay.portal.SystemException,
304: com.liferay.portal.NoSuchGroupException;
305:
306: public java.util.List getRoles(long pk, int begin, int end)
307: throws com.liferay.portal.SystemException,
308: com.liferay.portal.NoSuchGroupException;
309:
310: public java.util.List getRoles(long pk, int begin, int end,
311: com.liferay.portal.kernel.util.OrderByComparator obc)
312: throws com.liferay.portal.SystemException,
313: com.liferay.portal.NoSuchGroupException;
314:
315: public int getRolesSize(long pk)
316: throws com.liferay.portal.SystemException;
317:
318: public boolean containsRole(long pk, long rolePK)
319: throws com.liferay.portal.SystemException;
320:
321: public boolean containsRoles(long pk)
322: throws com.liferay.portal.SystemException;
323:
324: public void addRole(long pk, long rolePK)
325: throws com.liferay.portal.SystemException,
326: com.liferay.portal.NoSuchRoleException,
327: com.liferay.portal.NoSuchGroupException;
328:
329: public void addRole(long pk, com.liferay.portal.model.Role role)
330: throws com.liferay.portal.SystemException,
331: com.liferay.portal.NoSuchRoleException,
332: com.liferay.portal.NoSuchGroupException;
333:
334: public void addRoles(long pk, long[] rolePKs)
335: throws com.liferay.portal.SystemException,
336: com.liferay.portal.NoSuchRoleException,
337: com.liferay.portal.NoSuchGroupException;
338:
339: public void addRoles(long pk, java.util.List roles)
340: throws com.liferay.portal.SystemException,
341: com.liferay.portal.NoSuchRoleException,
342: com.liferay.portal.NoSuchGroupException;
343:
344: public void clearRoles(long pk)
345: throws com.liferay.portal.SystemException,
346: com.liferay.portal.NoSuchGroupException;
347:
348: public void removeRole(long pk, long rolePK)
349: throws com.liferay.portal.SystemException,
350: com.liferay.portal.NoSuchRoleException,
351: com.liferay.portal.NoSuchGroupException;
352:
353: public void removeRole(long pk, com.liferay.portal.model.Role role)
354: throws com.liferay.portal.SystemException,
355: com.liferay.portal.NoSuchRoleException,
356: com.liferay.portal.NoSuchGroupException;
357:
358: public void removeRoles(long pk, long[] rolePKs)
359: throws com.liferay.portal.SystemException,
360: com.liferay.portal.NoSuchRoleException,
361: com.liferay.portal.NoSuchGroupException;
362:
363: public void removeRoles(long pk, java.util.List roles)
364: throws com.liferay.portal.SystemException,
365: com.liferay.portal.NoSuchRoleException,
366: com.liferay.portal.NoSuchGroupException;
367:
368: public void setRoles(long pk, long[] rolePKs)
369: throws com.liferay.portal.SystemException,
370: com.liferay.portal.NoSuchRoleException,
371: com.liferay.portal.NoSuchGroupException;
372:
373: public void setRoles(long pk, java.util.List roles)
374: throws com.liferay.portal.SystemException,
375: com.liferay.portal.NoSuchRoleException,
376: com.liferay.portal.NoSuchGroupException;
377:
378: public java.util.List getUserGroups(long pk)
379: throws com.liferay.portal.SystemException,
380: com.liferay.portal.NoSuchGroupException;
381:
382: public java.util.List getUserGroups(long pk, int begin, int end)
383: throws com.liferay.portal.SystemException,
384: com.liferay.portal.NoSuchGroupException;
385:
386: public java.util.List getUserGroups(long pk, int begin, int end,
387: com.liferay.portal.kernel.util.OrderByComparator obc)
388: throws com.liferay.portal.SystemException,
389: com.liferay.portal.NoSuchGroupException;
390:
391: public int getUserGroupsSize(long pk)
392: throws com.liferay.portal.SystemException;
393:
394: public boolean containsUserGroup(long pk, long userGroupPK)
395: throws com.liferay.portal.SystemException;
396:
397: public boolean containsUserGroups(long pk)
398: throws com.liferay.portal.SystemException;
399:
400: public void addUserGroup(long pk, long userGroupPK)
401: throws com.liferay.portal.SystemException,
402: com.liferay.portal.NoSuchGroupException,
403: com.liferay.portal.NoSuchUserGroupException;
404:
405: public void addUserGroup(long pk,
406: com.liferay.portal.model.UserGroup userGroup)
407: throws com.liferay.portal.SystemException,
408: com.liferay.portal.NoSuchGroupException,
409: com.liferay.portal.NoSuchUserGroupException;
410:
411: public void addUserGroups(long pk, long[] userGroupPKs)
412: throws com.liferay.portal.SystemException,
413: com.liferay.portal.NoSuchGroupException,
414: com.liferay.portal.NoSuchUserGroupException;
415:
416: public void addUserGroups(long pk, java.util.List userGroups)
417: throws com.liferay.portal.SystemException,
418: com.liferay.portal.NoSuchGroupException,
419: com.liferay.portal.NoSuchUserGroupException;
420:
421: public void clearUserGroups(long pk)
422: throws com.liferay.portal.SystemException,
423: com.liferay.portal.NoSuchGroupException;
424:
425: public void removeUserGroup(long pk, long userGroupPK)
426: throws com.liferay.portal.SystemException,
427: com.liferay.portal.NoSuchGroupException,
428: com.liferay.portal.NoSuchUserGroupException;
429:
430: public void removeUserGroup(long pk,
431: com.liferay.portal.model.UserGroup userGroup)
432: throws com.liferay.portal.SystemException,
433: com.liferay.portal.NoSuchGroupException,
434: com.liferay.portal.NoSuchUserGroupException;
435:
436: public void removeUserGroups(long pk, long[] userGroupPKs)
437: throws com.liferay.portal.SystemException,
438: com.liferay.portal.NoSuchGroupException,
439: com.liferay.portal.NoSuchUserGroupException;
440:
441: public void removeUserGroups(long pk, java.util.List userGroups)
442: throws com.liferay.portal.SystemException,
443: com.liferay.portal.NoSuchGroupException,
444: com.liferay.portal.NoSuchUserGroupException;
445:
446: public void setUserGroups(long pk, long[] userGroupPKs)
447: throws com.liferay.portal.SystemException,
448: com.liferay.portal.NoSuchGroupException,
449: com.liferay.portal.NoSuchUserGroupException;
450:
451: public void setUserGroups(long pk, java.util.List userGroups)
452: throws com.liferay.portal.SystemException,
453: com.liferay.portal.NoSuchGroupException,
454: com.liferay.portal.NoSuchUserGroupException;
455:
456: public java.util.List getUsers(long pk)
457: throws com.liferay.portal.SystemException,
458: com.liferay.portal.NoSuchGroupException;
459:
460: public java.util.List getUsers(long pk, int begin, int end)
461: throws com.liferay.portal.SystemException,
462: com.liferay.portal.NoSuchGroupException;
463:
464: public java.util.List getUsers(long pk, int begin, int end,
465: com.liferay.portal.kernel.util.OrderByComparator obc)
466: throws com.liferay.portal.SystemException,
467: com.liferay.portal.NoSuchGroupException;
468:
469: public int getUsersSize(long pk)
470: throws com.liferay.portal.SystemException;
471:
472: public boolean containsUser(long pk, long userPK)
473: throws com.liferay.portal.SystemException;
474:
475: public boolean containsUsers(long pk)
476: throws com.liferay.portal.SystemException;
477:
478: public void addUser(long pk, long userPK)
479: throws com.liferay.portal.SystemException,
480: com.liferay.portal.NoSuchGroupException,
481: com.liferay.portal.NoSuchUserException;
482:
483: public void addUser(long pk, com.liferay.portal.model.User user)
484: throws com.liferay.portal.SystemException,
485: com.liferay.portal.NoSuchGroupException,
486: com.liferay.portal.NoSuchUserException;
487:
488: public void addUsers(long pk, long[] userPKs)
489: throws com.liferay.portal.SystemException,
490: com.liferay.portal.NoSuchGroupException,
491: com.liferay.portal.NoSuchUserException;
492:
493: public void addUsers(long pk, java.util.List users)
494: throws com.liferay.portal.SystemException,
495: com.liferay.portal.NoSuchGroupException,
496: com.liferay.portal.NoSuchUserException;
497:
498: public void clearUsers(long pk)
499: throws com.liferay.portal.SystemException,
500: com.liferay.portal.NoSuchGroupException;
501:
502: public void removeUser(long pk, long userPK)
503: throws com.liferay.portal.SystemException,
504: com.liferay.portal.NoSuchGroupException,
505: com.liferay.portal.NoSuchUserException;
506:
507: public void removeUser(long pk, com.liferay.portal.model.User user)
508: throws com.liferay.portal.SystemException,
509: com.liferay.portal.NoSuchGroupException,
510: com.liferay.portal.NoSuchUserException;
511:
512: public void removeUsers(long pk, long[] userPKs)
513: throws com.liferay.portal.SystemException,
514: com.liferay.portal.NoSuchGroupException,
515: com.liferay.portal.NoSuchUserException;
516:
517: public void removeUsers(long pk, java.util.List users)
518: throws com.liferay.portal.SystemException,
519: com.liferay.portal.NoSuchGroupException,
520: com.liferay.portal.NoSuchUserException;
521:
522: public void setUsers(long pk, long[] userPKs)
523: throws com.liferay.portal.SystemException,
524: com.liferay.portal.NoSuchGroupException,
525: com.liferay.portal.NoSuchUserException;
526:
527: public void setUsers(long pk, java.util.List users)
528: throws com.liferay.portal.SystemException,
529: com.liferay.portal.NoSuchGroupException,
530: com.liferay.portal.NoSuchUserException;
531: }
|