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