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