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 java.util.List<com.liferay.portal.model.Group> findByCompanyId(
92          long companyId) throws com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portal.model.Group> findByCompanyId(
95          long companyId, int start, int end)
96          throws com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portal.model.Group> findByCompanyId(
99          long companyId, int start, int end,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException;
102 
103     public com.liferay.portal.model.Group findByCompanyId_First(
104         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.NoSuchGroupException,
106             com.liferay.portal.SystemException;
107 
108     public com.liferay.portal.model.Group findByCompanyId_Last(long companyId,
109         com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.NoSuchGroupException,
111             com.liferay.portal.SystemException;
112 
113     public com.liferay.portal.model.Group[] findByCompanyId_PrevAndNext(
114         long groupId, long companyId,
115         com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.NoSuchGroupException,
117             com.liferay.portal.SystemException;
118 
119     public com.liferay.portal.model.Group findByLiveGroupId(long liveGroupId)
120         throws com.liferay.portal.NoSuchGroupException,
121             com.liferay.portal.SystemException;
122 
123     public com.liferay.portal.model.Group fetchByLiveGroupId(long liveGroupId)
124         throws com.liferay.portal.SystemException;
125 
126     public com.liferay.portal.model.Group fetchByLiveGroupId(long liveGroupId,
127         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
128 
129     public com.liferay.portal.model.Group findByC_N(long companyId,
130         java.lang.String name)
131         throws com.liferay.portal.NoSuchGroupException,
132             com.liferay.portal.SystemException;
133 
134     public com.liferay.portal.model.Group fetchByC_N(long companyId,
135         java.lang.String name) throws com.liferay.portal.SystemException;
136 
137     public com.liferay.portal.model.Group fetchByC_N(long companyId,
138         java.lang.String name, boolean retrieveFromCache)
139         throws com.liferay.portal.SystemException;
140 
141     public com.liferay.portal.model.Group findByC_F(long companyId,
142         java.lang.String friendlyURL)
143         throws com.liferay.portal.NoSuchGroupException,
144             com.liferay.portal.SystemException;
145 
146     public com.liferay.portal.model.Group fetchByC_F(long companyId,
147         java.lang.String friendlyURL) throws com.liferay.portal.SystemException;
148 
149     public com.liferay.portal.model.Group fetchByC_F(long companyId,
150         java.lang.String friendlyURL, boolean retrieveFromCache)
151         throws com.liferay.portal.SystemException;
152 
153     public java.util.List<com.liferay.portal.model.Group> findByT_A(int type,
154         boolean active) throws com.liferay.portal.SystemException;
155 
156     public java.util.List<com.liferay.portal.model.Group> findByT_A(int type,
157         boolean active, int start, int end)
158         throws com.liferay.portal.SystemException;
159 
160     public java.util.List<com.liferay.portal.model.Group> findByT_A(int type,
161         boolean active, int start, int end,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException;
164 
165     public com.liferay.portal.model.Group findByT_A_First(int type,
166         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
167         throws com.liferay.portal.NoSuchGroupException,
168             com.liferay.portal.SystemException;
169 
170     public com.liferay.portal.model.Group findByT_A_Last(int type,
171         boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.NoSuchGroupException,
173             com.liferay.portal.SystemException;
174 
175     public com.liferay.portal.model.Group[] findByT_A_PrevAndNext(
176         long groupId, int type, boolean active,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.NoSuchGroupException,
179             com.liferay.portal.SystemException;
180 
181     public com.liferay.portal.model.Group findByC_C_C(long companyId,
182         long classNameId, long classPK)
183         throws com.liferay.portal.NoSuchGroupException,
184             com.liferay.portal.SystemException;
185 
186     public com.liferay.portal.model.Group fetchByC_C_C(long companyId,
187         long classNameId, long classPK)
188         throws com.liferay.portal.SystemException;
189 
190     public com.liferay.portal.model.Group fetchByC_C_C(long companyId,
191         long classNameId, long classPK, boolean retrieveFromCache)
192         throws com.liferay.portal.SystemException;
193 
194     public com.liferay.portal.model.Group findByC_L_N(long companyId,
195         long liveGroupId, java.lang.String name)
196         throws com.liferay.portal.NoSuchGroupException,
197             com.liferay.portal.SystemException;
198 
199     public com.liferay.portal.model.Group fetchByC_L_N(long companyId,
200         long liveGroupId, java.lang.String name)
201         throws com.liferay.portal.SystemException;
202 
203     public com.liferay.portal.model.Group fetchByC_L_N(long companyId,
204         long liveGroupId, java.lang.String name, boolean retrieveFromCache)
205         throws com.liferay.portal.SystemException;
206 
207     public com.liferay.portal.model.Group findByC_C_L_N(long companyId,
208         long classNameId, long liveGroupId, java.lang.String name)
209         throws com.liferay.portal.NoSuchGroupException,
210             com.liferay.portal.SystemException;
211 
212     public com.liferay.portal.model.Group fetchByC_C_L_N(long companyId,
213         long classNameId, long liveGroupId, java.lang.String name)
214         throws com.liferay.portal.SystemException;
215 
216     public com.liferay.portal.model.Group fetchByC_C_L_N(long companyId,
217         long classNameId, long liveGroupId, java.lang.String name,
218         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
219 
220     public java.util.List<Object> findWithDynamicQuery(
221         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
222         throws com.liferay.portal.SystemException;
223 
224     public java.util.List<Object> findWithDynamicQuery(
225         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
226         int end) throws com.liferay.portal.SystemException;
227 
228     public java.util.List<com.liferay.portal.model.Group> findAll()
229         throws com.liferay.portal.SystemException;
230 
231     public java.util.List<com.liferay.portal.model.Group> findAll(int start,
232         int end) throws com.liferay.portal.SystemException;
233 
234     public java.util.List<com.liferay.portal.model.Group> findAll(int start,
235         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
236         throws com.liferay.portal.SystemException;
237 
238     public void removeByCompanyId(long companyId)
239         throws com.liferay.portal.SystemException;
240 
241     public void removeByLiveGroupId(long liveGroupId)
242         throws com.liferay.portal.NoSuchGroupException,
243             com.liferay.portal.SystemException;
244 
245     public void removeByC_N(long companyId, java.lang.String name)
246         throws com.liferay.portal.NoSuchGroupException,
247             com.liferay.portal.SystemException;
248 
249     public void removeByC_F(long companyId, java.lang.String friendlyURL)
250         throws com.liferay.portal.NoSuchGroupException,
251             com.liferay.portal.SystemException;
252 
253     public void removeByT_A(int type, boolean active)
254         throws com.liferay.portal.SystemException;
255 
256     public void removeByC_C_C(long companyId, long classNameId, long classPK)
257         throws com.liferay.portal.NoSuchGroupException,
258             com.liferay.portal.SystemException;
259 
260     public void removeByC_L_N(long companyId, long liveGroupId,
261         java.lang.String name)
262         throws com.liferay.portal.NoSuchGroupException,
263             com.liferay.portal.SystemException;
264 
265     public void removeByC_C_L_N(long companyId, long classNameId,
266         long liveGroupId, java.lang.String name)
267         throws com.liferay.portal.NoSuchGroupException,
268             com.liferay.portal.SystemException;
269 
270     public void removeAll() throws com.liferay.portal.SystemException;
271 
272     public int countByCompanyId(long companyId)
273         throws com.liferay.portal.SystemException;
274 
275     public int countByLiveGroupId(long liveGroupId)
276         throws com.liferay.portal.SystemException;
277 
278     public int countByC_N(long companyId, java.lang.String name)
279         throws com.liferay.portal.SystemException;
280 
281     public int countByC_F(long companyId, java.lang.String friendlyURL)
282         throws com.liferay.portal.SystemException;
283 
284     public int countByT_A(int type, boolean active)
285         throws com.liferay.portal.SystemException;
286 
287     public int countByC_C_C(long companyId, long classNameId, long classPK)
288         throws com.liferay.portal.SystemException;
289 
290     public int countByC_L_N(long companyId, long liveGroupId,
291         java.lang.String name) throws com.liferay.portal.SystemException;
292 
293     public int countByC_C_L_N(long companyId, long classNameId,
294         long liveGroupId, java.lang.String name)
295         throws com.liferay.portal.SystemException;
296 
297     public int countAll() throws com.liferay.portal.SystemException;
298 
299     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
300         long pk) throws com.liferay.portal.SystemException;
301 
302     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
303         long pk, int start, int end) throws com.liferay.portal.SystemException;
304 
305     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
306         long pk, int start, int end,
307         com.liferay.portal.kernel.util.OrderByComparator obc)
308         throws com.liferay.portal.SystemException;
309 
310     public int getOrganizationsSize(long pk)
311         throws com.liferay.portal.SystemException;
312 
313     public boolean containsOrganization(long pk, long organizationPK)
314         throws com.liferay.portal.SystemException;
315 
316     public boolean containsOrganizations(long pk)
317         throws com.liferay.portal.SystemException;
318 
319     public void addOrganization(long pk, long organizationPK)
320         throws com.liferay.portal.SystemException;
321 
322     public void addOrganization(long pk,
323         com.liferay.portal.model.Organization organization)
324         throws com.liferay.portal.SystemException;
325 
326     public void addOrganizations(long pk, long[] organizationPKs)
327         throws com.liferay.portal.SystemException;
328 
329     public void addOrganizations(long pk,
330         java.util.List<com.liferay.portal.model.Organization> organizations)
331         throws com.liferay.portal.SystemException;
332 
333     public void clearOrganizations(long pk)
334         throws com.liferay.portal.SystemException;
335 
336     public void removeOrganization(long pk, long organizationPK)
337         throws com.liferay.portal.SystemException;
338 
339     public void removeOrganization(long pk,
340         com.liferay.portal.model.Organization organization)
341         throws com.liferay.portal.SystemException;
342 
343     public void removeOrganizations(long pk, long[] organizationPKs)
344         throws com.liferay.portal.SystemException;
345 
346     public void removeOrganizations(long pk,
347         java.util.List<com.liferay.portal.model.Organization> organizations)
348         throws com.liferay.portal.SystemException;
349 
350     public void setOrganizations(long pk, long[] organizationPKs)
351         throws com.liferay.portal.SystemException;
352 
353     public void setOrganizations(long pk,
354         java.util.List<com.liferay.portal.model.Organization> organizations)
355         throws com.liferay.portal.SystemException;
356 
357     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
358         long pk) throws com.liferay.portal.SystemException;
359 
360     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
361         long pk, int start, int end) throws com.liferay.portal.SystemException;
362 
363     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
364         long pk, int start, int end,
365         com.liferay.portal.kernel.util.OrderByComparator obc)
366         throws com.liferay.portal.SystemException;
367 
368     public int getPermissionsSize(long pk)
369         throws com.liferay.portal.SystemException;
370 
371     public boolean containsPermission(long pk, long permissionPK)
372         throws com.liferay.portal.SystemException;
373 
374     public boolean containsPermissions(long pk)
375         throws com.liferay.portal.SystemException;
376 
377     public void addPermission(long pk, long permissionPK)
378         throws com.liferay.portal.SystemException;
379 
380     public void addPermission(long pk,
381         com.liferay.portal.model.Permission permission)
382         throws com.liferay.portal.SystemException;
383 
384     public void addPermissions(long pk, long[] permissionPKs)
385         throws com.liferay.portal.SystemException;
386 
387     public void addPermissions(long pk,
388         java.util.List<com.liferay.portal.model.Permission> permissions)
389         throws com.liferay.portal.SystemException;
390 
391     public void clearPermissions(long pk)
392         throws com.liferay.portal.SystemException;
393 
394     public void removePermission(long pk, long permissionPK)
395         throws com.liferay.portal.SystemException;
396 
397     public void removePermission(long pk,
398         com.liferay.portal.model.Permission permission)
399         throws com.liferay.portal.SystemException;
400 
401     public void removePermissions(long pk, long[] permissionPKs)
402         throws com.liferay.portal.SystemException;
403 
404     public void removePermissions(long pk,
405         java.util.List<com.liferay.portal.model.Permission> permissions)
406         throws com.liferay.portal.SystemException;
407 
408     public void setPermissions(long pk, long[] permissionPKs)
409         throws com.liferay.portal.SystemException;
410 
411     public void setPermissions(long pk,
412         java.util.List<com.liferay.portal.model.Permission> permissions)
413         throws com.liferay.portal.SystemException;
414 
415     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
416         throws com.liferay.portal.SystemException;
417 
418     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
419         int start, int end) throws com.liferay.portal.SystemException;
420 
421     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
422         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
423         throws com.liferay.portal.SystemException;
424 
425     public int getRolesSize(long pk) throws com.liferay.portal.SystemException;
426 
427     public boolean containsRole(long pk, long rolePK)
428         throws com.liferay.portal.SystemException;
429 
430     public boolean containsRoles(long pk)
431         throws com.liferay.portal.SystemException;
432 
433     public void addRole(long pk, long rolePK)
434         throws com.liferay.portal.SystemException;
435 
436     public void addRole(long pk, com.liferay.portal.model.Role role)
437         throws com.liferay.portal.SystemException;
438 
439     public void addRoles(long pk, long[] rolePKs)
440         throws com.liferay.portal.SystemException;
441 
442     public void addRoles(long pk,
443         java.util.List<com.liferay.portal.model.Role> roles)
444         throws com.liferay.portal.SystemException;
445 
446     public void clearRoles(long pk) throws com.liferay.portal.SystemException;
447 
448     public void removeRole(long pk, long rolePK)
449         throws com.liferay.portal.SystemException;
450 
451     public void removeRole(long pk, com.liferay.portal.model.Role role)
452         throws com.liferay.portal.SystemException;
453 
454     public void removeRoles(long pk, long[] rolePKs)
455         throws com.liferay.portal.SystemException;
456 
457     public void removeRoles(long pk,
458         java.util.List<com.liferay.portal.model.Role> roles)
459         throws com.liferay.portal.SystemException;
460 
461     public void setRoles(long pk, long[] rolePKs)
462         throws com.liferay.portal.SystemException;
463 
464     public void setRoles(long pk,
465         java.util.List<com.liferay.portal.model.Role> roles)
466         throws com.liferay.portal.SystemException;
467 
468     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
469         long pk) throws com.liferay.portal.SystemException;
470 
471     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
472         long pk, int start, int end) throws com.liferay.portal.SystemException;
473 
474     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
475         long pk, int start, int end,
476         com.liferay.portal.kernel.util.OrderByComparator obc)
477         throws com.liferay.portal.SystemException;
478 
479     public int getUserGroupsSize(long pk)
480         throws com.liferay.portal.SystemException;
481 
482     public boolean containsUserGroup(long pk, long userGroupPK)
483         throws com.liferay.portal.SystemException;
484 
485     public boolean containsUserGroups(long pk)
486         throws com.liferay.portal.SystemException;
487 
488     public void addUserGroup(long pk, long userGroupPK)
489         throws com.liferay.portal.SystemException;
490 
491     public void addUserGroup(long pk,
492         com.liferay.portal.model.UserGroup userGroup)
493         throws com.liferay.portal.SystemException;
494 
495     public void addUserGroups(long pk, long[] userGroupPKs)
496         throws com.liferay.portal.SystemException;
497 
498     public void addUserGroups(long pk,
499         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
500         throws com.liferay.portal.SystemException;
501 
502     public void clearUserGroups(long pk)
503         throws com.liferay.portal.SystemException;
504 
505     public void removeUserGroup(long pk, long userGroupPK)
506         throws com.liferay.portal.SystemException;
507 
508     public void removeUserGroup(long pk,
509         com.liferay.portal.model.UserGroup userGroup)
510         throws com.liferay.portal.SystemException;
511 
512     public void removeUserGroups(long pk, long[] userGroupPKs)
513         throws com.liferay.portal.SystemException;
514 
515     public void removeUserGroups(long pk,
516         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
517         throws com.liferay.portal.SystemException;
518 
519     public void setUserGroups(long pk, long[] userGroupPKs)
520         throws com.liferay.portal.SystemException;
521 
522     public void setUserGroups(long pk,
523         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
524         throws com.liferay.portal.SystemException;
525 
526     public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
527         throws com.liferay.portal.SystemException;
528 
529     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
530         int start, int end) throws com.liferay.portal.SystemException;
531 
532     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
533         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
534         throws com.liferay.portal.SystemException;
535 
536     public int getUsersSize(long pk) throws com.liferay.portal.SystemException;
537 
538     public boolean containsUser(long pk, long userPK)
539         throws com.liferay.portal.SystemException;
540 
541     public boolean containsUsers(long pk)
542         throws com.liferay.portal.SystemException;
543 
544     public void addUser(long pk, long userPK)
545         throws com.liferay.portal.SystemException;
546 
547     public void addUser(long pk, com.liferay.portal.model.User user)
548         throws com.liferay.portal.SystemException;
549 
550     public void addUsers(long pk, long[] userPKs)
551         throws com.liferay.portal.SystemException;
552 
553     public void addUsers(long pk,
554         java.util.List<com.liferay.portal.model.User> users)
555         throws com.liferay.portal.SystemException;
556 
557     public void clearUsers(long pk) throws com.liferay.portal.SystemException;
558 
559     public void removeUser(long pk, long userPK)
560         throws com.liferay.portal.SystemException;
561 
562     public void removeUser(long pk, com.liferay.portal.model.User user)
563         throws com.liferay.portal.SystemException;
564 
565     public void removeUsers(long pk, long[] userPKs)
566         throws com.liferay.portal.SystemException;
567 
568     public void removeUsers(long pk,
569         java.util.List<com.liferay.portal.model.User> users)
570         throws com.liferay.portal.SystemException;
571 
572     public void setUsers(long pk, long[] userPKs)
573         throws com.liferay.portal.SystemException;
574 
575     public void setUsers(long pk,
576         java.util.List<com.liferay.portal.model.User> users)
577         throws com.liferay.portal.SystemException;
578 }