1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.Group;
18  
19  /**
20   * <a href="GroupPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       GroupPersistenceImpl
29   * @see       GroupUtil
30   * @generated
31   */
32  public interface GroupPersistence extends BasePersistence<Group> {
33      public void cacheResult(com.liferay.portal.model.Group group);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.Group> groups);
37  
38      public com.liferay.portal.model.Group create(long groupId);
39  
40      public com.liferay.portal.model.Group remove(long groupId)
41          throws com.liferay.portal.NoSuchGroupException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.Group updateImpl(
45          com.liferay.portal.model.Group group, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.Group findByPrimaryKey(long groupId)
49          throws com.liferay.portal.NoSuchGroupException,
50              com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.Group fetchByPrimaryKey(long groupId)
53          throws com.liferay.portal.kernel.exception.SystemException;
54  
55      public java.util.List<com.liferay.portal.model.Group> findByCompanyId(
56          long companyId)
57          throws com.liferay.portal.kernel.exception.SystemException;
58  
59      public java.util.List<com.liferay.portal.model.Group> findByCompanyId(
60          long companyId, int start, int end)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.Group> findByCompanyId(
64          long companyId, int start, int end,
65          com.liferay.portal.kernel.util.OrderByComparator obc)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public com.liferay.portal.model.Group findByCompanyId_First(
69          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.NoSuchGroupException,
71              com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portal.model.Group findByCompanyId_Last(long companyId,
74          com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.NoSuchGroupException,
76              com.liferay.portal.kernel.exception.SystemException;
77  
78      public com.liferay.portal.model.Group[] findByCompanyId_PrevAndNext(
79          long groupId, long companyId,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.NoSuchGroupException,
82              com.liferay.portal.kernel.exception.SystemException;
83  
84      public com.liferay.portal.model.Group findByLiveGroupId(long liveGroupId)
85          throws com.liferay.portal.NoSuchGroupException,
86              com.liferay.portal.kernel.exception.SystemException;
87  
88      public com.liferay.portal.model.Group fetchByLiveGroupId(long liveGroupId)
89          throws com.liferay.portal.kernel.exception.SystemException;
90  
91      public com.liferay.portal.model.Group fetchByLiveGroupId(long liveGroupId,
92          boolean retrieveFromCache)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public com.liferay.portal.model.Group findByC_N(long companyId,
96          java.lang.String name)
97          throws com.liferay.portal.NoSuchGroupException,
98              com.liferay.portal.kernel.exception.SystemException;
99  
100     public com.liferay.portal.model.Group fetchByC_N(long companyId,
101         java.lang.String name)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public com.liferay.portal.model.Group fetchByC_N(long companyId,
105         java.lang.String name, boolean retrieveFromCache)
106         throws com.liferay.portal.kernel.exception.SystemException;
107 
108     public com.liferay.portal.model.Group findByC_F(long companyId,
109         java.lang.String friendlyURL)
110         throws com.liferay.portal.NoSuchGroupException,
111             com.liferay.portal.kernel.exception.SystemException;
112 
113     public com.liferay.portal.model.Group fetchByC_F(long companyId,
114         java.lang.String friendlyURL)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public com.liferay.portal.model.Group fetchByC_F(long companyId,
118         java.lang.String friendlyURL, boolean retrieveFromCache)
119         throws com.liferay.portal.kernel.exception.SystemException;
120 
121     public java.util.List<com.liferay.portal.model.Group> findByT_A(int type,
122         boolean active)
123         throws com.liferay.portal.kernel.exception.SystemException;
124 
125     public java.util.List<com.liferay.portal.model.Group> findByT_A(int type,
126         boolean active, int start, int end)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public java.util.List<com.liferay.portal.model.Group> findByT_A(int type,
130         boolean active, int start, int end,
131         com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.kernel.exception.SystemException;
133 
134     public com.liferay.portal.model.Group findByT_A_First(int type,
135         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.NoSuchGroupException,
137             com.liferay.portal.kernel.exception.SystemException;
138 
139     public com.liferay.portal.model.Group findByT_A_Last(int type,
140         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.NoSuchGroupException,
142             com.liferay.portal.kernel.exception.SystemException;
143 
144     public com.liferay.portal.model.Group[] findByT_A_PrevAndNext(
145         long groupId, int type, boolean active,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.NoSuchGroupException,
148             com.liferay.portal.kernel.exception.SystemException;
149 
150     public com.liferay.portal.model.Group findByC_C_C(long companyId,
151         long classNameId, long classPK)
152         throws com.liferay.portal.NoSuchGroupException,
153             com.liferay.portal.kernel.exception.SystemException;
154 
155     public com.liferay.portal.model.Group fetchByC_C_C(long companyId,
156         long classNameId, long classPK)
157         throws com.liferay.portal.kernel.exception.SystemException;
158 
159     public com.liferay.portal.model.Group fetchByC_C_C(long companyId,
160         long classNameId, long classPK, boolean retrieveFromCache)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public com.liferay.portal.model.Group findByC_L_N(long companyId,
164         long liveGroupId, java.lang.String name)
165         throws com.liferay.portal.NoSuchGroupException,
166             com.liferay.portal.kernel.exception.SystemException;
167 
168     public com.liferay.portal.model.Group fetchByC_L_N(long companyId,
169         long liveGroupId, java.lang.String name)
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     public com.liferay.portal.model.Group fetchByC_L_N(long companyId,
173         long liveGroupId, java.lang.String name, boolean retrieveFromCache)
174         throws com.liferay.portal.kernel.exception.SystemException;
175 
176     public com.liferay.portal.model.Group findByC_C_L_N(long companyId,
177         long classNameId, long liveGroupId, java.lang.String name)
178         throws com.liferay.portal.NoSuchGroupException,
179             com.liferay.portal.kernel.exception.SystemException;
180 
181     public com.liferay.portal.model.Group fetchByC_C_L_N(long companyId,
182         long classNameId, long liveGroupId, java.lang.String name)
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     public com.liferay.portal.model.Group fetchByC_C_L_N(long companyId,
186         long classNameId, long liveGroupId, java.lang.String name,
187         boolean retrieveFromCache)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public java.util.List<com.liferay.portal.model.Group> findAll()
191         throws com.liferay.portal.kernel.exception.SystemException;
192 
193     public java.util.List<com.liferay.portal.model.Group> findAll(int start,
194         int end) throws com.liferay.portal.kernel.exception.SystemException;
195 
196     public java.util.List<com.liferay.portal.model.Group> findAll(int start,
197         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     public void removeByCompanyId(long companyId)
201         throws com.liferay.portal.kernel.exception.SystemException;
202 
203     public void removeByLiveGroupId(long liveGroupId)
204         throws com.liferay.portal.NoSuchGroupException,
205             com.liferay.portal.kernel.exception.SystemException;
206 
207     public void removeByC_N(long companyId, java.lang.String name)
208         throws com.liferay.portal.NoSuchGroupException,
209             com.liferay.portal.kernel.exception.SystemException;
210 
211     public void removeByC_F(long companyId, java.lang.String friendlyURL)
212         throws com.liferay.portal.NoSuchGroupException,
213             com.liferay.portal.kernel.exception.SystemException;
214 
215     public void removeByT_A(int type, boolean active)
216         throws com.liferay.portal.kernel.exception.SystemException;
217 
218     public void removeByC_C_C(long companyId, long classNameId, long classPK)
219         throws com.liferay.portal.NoSuchGroupException,
220             com.liferay.portal.kernel.exception.SystemException;
221 
222     public void removeByC_L_N(long companyId, long liveGroupId,
223         java.lang.String name)
224         throws com.liferay.portal.NoSuchGroupException,
225             com.liferay.portal.kernel.exception.SystemException;
226 
227     public void removeByC_C_L_N(long companyId, long classNameId,
228         long liveGroupId, java.lang.String name)
229         throws com.liferay.portal.NoSuchGroupException,
230             com.liferay.portal.kernel.exception.SystemException;
231 
232     public void removeAll()
233         throws com.liferay.portal.kernel.exception.SystemException;
234 
235     public int countByCompanyId(long companyId)
236         throws com.liferay.portal.kernel.exception.SystemException;
237 
238     public int countByLiveGroupId(long liveGroupId)
239         throws com.liferay.portal.kernel.exception.SystemException;
240 
241     public int countByC_N(long companyId, java.lang.String name)
242         throws com.liferay.portal.kernel.exception.SystemException;
243 
244     public int countByC_F(long companyId, java.lang.String friendlyURL)
245         throws com.liferay.portal.kernel.exception.SystemException;
246 
247     public int countByT_A(int type, boolean active)
248         throws com.liferay.portal.kernel.exception.SystemException;
249 
250     public int countByC_C_C(long companyId, long classNameId, long classPK)
251         throws com.liferay.portal.kernel.exception.SystemException;
252 
253     public int countByC_L_N(long companyId, long liveGroupId,
254         java.lang.String name)
255         throws com.liferay.portal.kernel.exception.SystemException;
256 
257     public int countByC_C_L_N(long companyId, long classNameId,
258         long liveGroupId, java.lang.String name)
259         throws com.liferay.portal.kernel.exception.SystemException;
260 
261     public int countAll()
262         throws com.liferay.portal.kernel.exception.SystemException;
263 
264     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
265         long pk) throws com.liferay.portal.kernel.exception.SystemException;
266 
267     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
268         long pk, int start, int end)
269         throws com.liferay.portal.kernel.exception.SystemException;
270 
271     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
272         long pk, int start, int end,
273         com.liferay.portal.kernel.util.OrderByComparator obc)
274         throws com.liferay.portal.kernel.exception.SystemException;
275 
276     public int getOrganizationsSize(long pk)
277         throws com.liferay.portal.kernel.exception.SystemException;
278 
279     public boolean containsOrganization(long pk, long organizationPK)
280         throws com.liferay.portal.kernel.exception.SystemException;
281 
282     public boolean containsOrganizations(long pk)
283         throws com.liferay.portal.kernel.exception.SystemException;
284 
285     public void addOrganization(long pk, long organizationPK)
286         throws com.liferay.portal.kernel.exception.SystemException;
287 
288     public void addOrganization(long pk,
289         com.liferay.portal.model.Organization organization)
290         throws com.liferay.portal.kernel.exception.SystemException;
291 
292     public void addOrganizations(long pk, long[] organizationPKs)
293         throws com.liferay.portal.kernel.exception.SystemException;
294 
295     public void addOrganizations(long pk,
296         java.util.List<com.liferay.portal.model.Organization> organizations)
297         throws com.liferay.portal.kernel.exception.SystemException;
298 
299     public void clearOrganizations(long pk)
300         throws com.liferay.portal.kernel.exception.SystemException;
301 
302     public void removeOrganization(long pk, long organizationPK)
303         throws com.liferay.portal.kernel.exception.SystemException;
304 
305     public void removeOrganization(long pk,
306         com.liferay.portal.model.Organization organization)
307         throws com.liferay.portal.kernel.exception.SystemException;
308 
309     public void removeOrganizations(long pk, long[] organizationPKs)
310         throws com.liferay.portal.kernel.exception.SystemException;
311 
312     public void removeOrganizations(long pk,
313         java.util.List<com.liferay.portal.model.Organization> organizations)
314         throws com.liferay.portal.kernel.exception.SystemException;
315 
316     public void setOrganizations(long pk, long[] organizationPKs)
317         throws com.liferay.portal.kernel.exception.SystemException;
318 
319     public void setOrganizations(long pk,
320         java.util.List<com.liferay.portal.model.Organization> organizations)
321         throws com.liferay.portal.kernel.exception.SystemException;
322 
323     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
324         long pk) throws com.liferay.portal.kernel.exception.SystemException;
325 
326     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
327         long pk, int start, int end)
328         throws com.liferay.portal.kernel.exception.SystemException;
329 
330     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
331         long pk, int start, int end,
332         com.liferay.portal.kernel.util.OrderByComparator obc)
333         throws com.liferay.portal.kernel.exception.SystemException;
334 
335     public int getPermissionsSize(long pk)
336         throws com.liferay.portal.kernel.exception.SystemException;
337 
338     public boolean containsPermission(long pk, long permissionPK)
339         throws com.liferay.portal.kernel.exception.SystemException;
340 
341     public boolean containsPermissions(long pk)
342         throws com.liferay.portal.kernel.exception.SystemException;
343 
344     public void addPermission(long pk, long permissionPK)
345         throws com.liferay.portal.kernel.exception.SystemException;
346 
347     public void addPermission(long pk,
348         com.liferay.portal.model.Permission permission)
349         throws com.liferay.portal.kernel.exception.SystemException;
350 
351     public void addPermissions(long pk, long[] permissionPKs)
352         throws com.liferay.portal.kernel.exception.SystemException;
353 
354     public void addPermissions(long pk,
355         java.util.List<com.liferay.portal.model.Permission> permissions)
356         throws com.liferay.portal.kernel.exception.SystemException;
357 
358     public void clearPermissions(long pk)
359         throws com.liferay.portal.kernel.exception.SystemException;
360 
361     public void removePermission(long pk, long permissionPK)
362         throws com.liferay.portal.kernel.exception.SystemException;
363 
364     public void removePermission(long pk,
365         com.liferay.portal.model.Permission permission)
366         throws com.liferay.portal.kernel.exception.SystemException;
367 
368     public void removePermissions(long pk, long[] permissionPKs)
369         throws com.liferay.portal.kernel.exception.SystemException;
370 
371     public void removePermissions(long pk,
372         java.util.List<com.liferay.portal.model.Permission> permissions)
373         throws com.liferay.portal.kernel.exception.SystemException;
374 
375     public void setPermissions(long pk, long[] permissionPKs)
376         throws com.liferay.portal.kernel.exception.SystemException;
377 
378     public void setPermissions(long pk,
379         java.util.List<com.liferay.portal.model.Permission> permissions)
380         throws com.liferay.portal.kernel.exception.SystemException;
381 
382     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
383         throws com.liferay.portal.kernel.exception.SystemException;
384 
385     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
386         int start, int end)
387         throws com.liferay.portal.kernel.exception.SystemException;
388 
389     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
390         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
391         throws com.liferay.portal.kernel.exception.SystemException;
392 
393     public int getRolesSize(long pk)
394         throws com.liferay.portal.kernel.exception.SystemException;
395 
396     public boolean containsRole(long pk, long rolePK)
397         throws com.liferay.portal.kernel.exception.SystemException;
398 
399     public boolean containsRoles(long pk)
400         throws com.liferay.portal.kernel.exception.SystemException;
401 
402     public void addRole(long pk, long rolePK)
403         throws com.liferay.portal.kernel.exception.SystemException;
404 
405     public void addRole(long pk, com.liferay.portal.model.Role role)
406         throws com.liferay.portal.kernel.exception.SystemException;
407 
408     public void addRoles(long pk, long[] rolePKs)
409         throws com.liferay.portal.kernel.exception.SystemException;
410 
411     public void addRoles(long pk,
412         java.util.List<com.liferay.portal.model.Role> roles)
413         throws com.liferay.portal.kernel.exception.SystemException;
414 
415     public void clearRoles(long pk)
416         throws com.liferay.portal.kernel.exception.SystemException;
417 
418     public void removeRole(long pk, long rolePK)
419         throws com.liferay.portal.kernel.exception.SystemException;
420 
421     public void removeRole(long pk, com.liferay.portal.model.Role role)
422         throws com.liferay.portal.kernel.exception.SystemException;
423 
424     public void removeRoles(long pk, long[] rolePKs)
425         throws com.liferay.portal.kernel.exception.SystemException;
426 
427     public void removeRoles(long pk,
428         java.util.List<com.liferay.portal.model.Role> roles)
429         throws com.liferay.portal.kernel.exception.SystemException;
430 
431     public void setRoles(long pk, long[] rolePKs)
432         throws com.liferay.portal.kernel.exception.SystemException;
433 
434     public void setRoles(long pk,
435         java.util.List<com.liferay.portal.model.Role> roles)
436         throws com.liferay.portal.kernel.exception.SystemException;
437 
438     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
439         long pk) throws com.liferay.portal.kernel.exception.SystemException;
440 
441     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
442         long pk, int start, int end)
443         throws com.liferay.portal.kernel.exception.SystemException;
444 
445     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
446         long pk, int start, int end,
447         com.liferay.portal.kernel.util.OrderByComparator obc)
448         throws com.liferay.portal.kernel.exception.SystemException;
449 
450     public int getUserGroupsSize(long pk)
451         throws com.liferay.portal.kernel.exception.SystemException;
452 
453     public boolean containsUserGroup(long pk, long userGroupPK)
454         throws com.liferay.portal.kernel.exception.SystemException;
455 
456     public boolean containsUserGroups(long pk)
457         throws com.liferay.portal.kernel.exception.SystemException;
458 
459     public void addUserGroup(long pk, long userGroupPK)
460         throws com.liferay.portal.kernel.exception.SystemException;
461 
462     public void addUserGroup(long pk,
463         com.liferay.portal.model.UserGroup userGroup)
464         throws com.liferay.portal.kernel.exception.SystemException;
465 
466     public void addUserGroups(long pk, long[] userGroupPKs)
467         throws com.liferay.portal.kernel.exception.SystemException;
468 
469     public void addUserGroups(long pk,
470         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
471         throws com.liferay.portal.kernel.exception.SystemException;
472 
473     public void clearUserGroups(long pk)
474         throws com.liferay.portal.kernel.exception.SystemException;
475 
476     public void removeUserGroup(long pk, long userGroupPK)
477         throws com.liferay.portal.kernel.exception.SystemException;
478 
479     public void removeUserGroup(long pk,
480         com.liferay.portal.model.UserGroup userGroup)
481         throws com.liferay.portal.kernel.exception.SystemException;
482 
483     public void removeUserGroups(long pk, long[] userGroupPKs)
484         throws com.liferay.portal.kernel.exception.SystemException;
485 
486     public void removeUserGroups(long pk,
487         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
488         throws com.liferay.portal.kernel.exception.SystemException;
489 
490     public void setUserGroups(long pk, long[] userGroupPKs)
491         throws com.liferay.portal.kernel.exception.SystemException;
492 
493     public void setUserGroups(long pk,
494         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
495         throws com.liferay.portal.kernel.exception.SystemException;
496 
497     public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
498         throws com.liferay.portal.kernel.exception.SystemException;
499 
500     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
501         int start, int end)
502         throws com.liferay.portal.kernel.exception.SystemException;
503 
504     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
505         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
506         throws com.liferay.portal.kernel.exception.SystemException;
507 
508     public int getUsersSize(long pk)
509         throws com.liferay.portal.kernel.exception.SystemException;
510 
511     public boolean containsUser(long pk, long userPK)
512         throws com.liferay.portal.kernel.exception.SystemException;
513 
514     public boolean containsUsers(long pk)
515         throws com.liferay.portal.kernel.exception.SystemException;
516 
517     public void addUser(long pk, long userPK)
518         throws com.liferay.portal.kernel.exception.SystemException;
519 
520     public void addUser(long pk, com.liferay.portal.model.User user)
521         throws com.liferay.portal.kernel.exception.SystemException;
522 
523     public void addUsers(long pk, long[] userPKs)
524         throws com.liferay.portal.kernel.exception.SystemException;
525 
526     public void addUsers(long pk,
527         java.util.List<com.liferay.portal.model.User> users)
528         throws com.liferay.portal.kernel.exception.SystemException;
529 
530     public void clearUsers(long pk)
531         throws com.liferay.portal.kernel.exception.SystemException;
532 
533     public void removeUser(long pk, long userPK)
534         throws com.liferay.portal.kernel.exception.SystemException;
535 
536     public void removeUser(long pk, com.liferay.portal.model.User user)
537         throws com.liferay.portal.kernel.exception.SystemException;
538 
539     public void removeUsers(long pk, long[] userPKs)
540         throws com.liferay.portal.kernel.exception.SystemException;
541 
542     public void removeUsers(long pk,
543         java.util.List<com.liferay.portal.model.User> users)
544         throws com.liferay.portal.kernel.exception.SystemException;
545 
546     public void setUsers(long pk, long[] userPKs)
547         throws com.liferay.portal.kernel.exception.SystemException;
548 
549     public void setUsers(long pk,
550         java.util.List<com.liferay.portal.model.User> users)
551         throws com.liferay.portal.kernel.exception.SystemException;
552 }