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