001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.User;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       UserPersistenceImpl
022     * @see       UserUtil
023     * @generated
024     */
025    public interface UserPersistence extends BasePersistence<User> {
026            public void cacheResult(com.liferay.portal.model.User user);
027    
028            public void cacheResult(java.util.List<com.liferay.portal.model.User> users);
029    
030            public com.liferay.portal.model.User create(long userId);
031    
032            public com.liferay.portal.model.User remove(long userId)
033                    throws com.liferay.portal.NoSuchUserException,
034                            com.liferay.portal.kernel.exception.SystemException;
035    
036            public com.liferay.portal.model.User updateImpl(
037                    com.liferay.portal.model.User user, boolean merge)
038                    throws com.liferay.portal.kernel.exception.SystemException;
039    
040            public com.liferay.portal.model.User findByPrimaryKey(long userId)
041                    throws com.liferay.portal.NoSuchUserException,
042                            com.liferay.portal.kernel.exception.SystemException;
043    
044            public com.liferay.portal.model.User fetchByPrimaryKey(long userId)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public java.util.List<com.liferay.portal.model.User> findByUuid(
048                    java.lang.String uuid)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portal.model.User> findByUuid(
052                    java.lang.String uuid, int start, int end)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.portal.model.User> findByUuid(
056                    java.lang.String uuid, int start, int end,
057                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public com.liferay.portal.model.User findByUuid_First(
061                    java.lang.String uuid,
062                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
063                    throws com.liferay.portal.NoSuchUserException,
064                            com.liferay.portal.kernel.exception.SystemException;
065    
066            public com.liferay.portal.model.User findByUuid_Last(
067                    java.lang.String uuid,
068                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
069                    throws com.liferay.portal.NoSuchUserException,
070                            com.liferay.portal.kernel.exception.SystemException;
071    
072            public com.liferay.portal.model.User[] findByUuid_PrevAndNext(long userId,
073                    java.lang.String uuid,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.NoSuchUserException,
076                            com.liferay.portal.kernel.exception.SystemException;
077    
078            public java.util.List<com.liferay.portal.model.User> findByCompanyId(
079                    long companyId)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            public java.util.List<com.liferay.portal.model.User> findByCompanyId(
083                    long companyId, int start, int end)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            public java.util.List<com.liferay.portal.model.User> findByCompanyId(
087                    long companyId, int start, int end,
088                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public com.liferay.portal.model.User findByCompanyId_First(long companyId,
092                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
093                    throws com.liferay.portal.NoSuchUserException,
094                            com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.portal.model.User findByCompanyId_Last(long companyId,
097                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098                    throws com.liferay.portal.NoSuchUserException,
099                            com.liferay.portal.kernel.exception.SystemException;
100    
101            public com.liferay.portal.model.User[] findByCompanyId_PrevAndNext(
102                    long userId, long companyId,
103                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104                    throws com.liferay.portal.NoSuchUserException,
105                            com.liferay.portal.kernel.exception.SystemException;
106    
107            public com.liferay.portal.model.User findByContactId(long contactId)
108                    throws com.liferay.portal.NoSuchUserException,
109                            com.liferay.portal.kernel.exception.SystemException;
110    
111            public com.liferay.portal.model.User fetchByContactId(long contactId)
112                    throws com.liferay.portal.kernel.exception.SystemException;
113    
114            public com.liferay.portal.model.User fetchByContactId(long contactId,
115                    boolean retrieveFromCache)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            public java.util.List<com.liferay.portal.model.User> findByEmailAddress(
119                    java.lang.String emailAddress)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            public java.util.List<com.liferay.portal.model.User> findByEmailAddress(
123                    java.lang.String emailAddress, int start, int end)
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            public java.util.List<com.liferay.portal.model.User> findByEmailAddress(
127                    java.lang.String emailAddress, int start, int end,
128                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            public com.liferay.portal.model.User findByEmailAddress_First(
132                    java.lang.String emailAddress,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.NoSuchUserException,
135                            com.liferay.portal.kernel.exception.SystemException;
136    
137            public com.liferay.portal.model.User findByEmailAddress_Last(
138                    java.lang.String emailAddress,
139                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140                    throws com.liferay.portal.NoSuchUserException,
141                            com.liferay.portal.kernel.exception.SystemException;
142    
143            public com.liferay.portal.model.User[] findByEmailAddress_PrevAndNext(
144                    long userId, java.lang.String emailAddress,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.NoSuchUserException,
147                            com.liferay.portal.kernel.exception.SystemException;
148    
149            public com.liferay.portal.model.User findByPortraitId(long portraitId)
150                    throws com.liferay.portal.NoSuchUserException,
151                            com.liferay.portal.kernel.exception.SystemException;
152    
153            public com.liferay.portal.model.User fetchByPortraitId(long portraitId)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            public com.liferay.portal.model.User fetchByPortraitId(long portraitId,
157                    boolean retrieveFromCache)
158                    throws com.liferay.portal.kernel.exception.SystemException;
159    
160            public com.liferay.portal.model.User findByC_U(long companyId, long userId)
161                    throws com.liferay.portal.NoSuchUserException,
162                            com.liferay.portal.kernel.exception.SystemException;
163    
164            public com.liferay.portal.model.User fetchByC_U(long companyId, long userId)
165                    throws com.liferay.portal.kernel.exception.SystemException;
166    
167            public com.liferay.portal.model.User fetchByC_U(long companyId,
168                    long userId, boolean retrieveFromCache)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            public com.liferay.portal.model.User findByC_DU(long companyId,
172                    boolean defaultUser)
173                    throws com.liferay.portal.NoSuchUserException,
174                            com.liferay.portal.kernel.exception.SystemException;
175    
176            public com.liferay.portal.model.User fetchByC_DU(long companyId,
177                    boolean defaultUser)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    
180            public com.liferay.portal.model.User fetchByC_DU(long companyId,
181                    boolean defaultUser, boolean retrieveFromCache)
182                    throws com.liferay.portal.kernel.exception.SystemException;
183    
184            public com.liferay.portal.model.User findByC_SN(long companyId,
185                    java.lang.String screenName)
186                    throws com.liferay.portal.NoSuchUserException,
187                            com.liferay.portal.kernel.exception.SystemException;
188    
189            public com.liferay.portal.model.User fetchByC_SN(long companyId,
190                    java.lang.String screenName)
191                    throws com.liferay.portal.kernel.exception.SystemException;
192    
193            public com.liferay.portal.model.User fetchByC_SN(long companyId,
194                    java.lang.String screenName, boolean retrieveFromCache)
195                    throws com.liferay.portal.kernel.exception.SystemException;
196    
197            public com.liferay.portal.model.User findByC_EA(long companyId,
198                    java.lang.String emailAddress)
199                    throws com.liferay.portal.NoSuchUserException,
200                            com.liferay.portal.kernel.exception.SystemException;
201    
202            public com.liferay.portal.model.User fetchByC_EA(long companyId,
203                    java.lang.String emailAddress)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            public com.liferay.portal.model.User fetchByC_EA(long companyId,
207                    java.lang.String emailAddress, boolean retrieveFromCache)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            public com.liferay.portal.model.User findByC_FID(long companyId,
211                    long facebookId)
212                    throws com.liferay.portal.NoSuchUserException,
213                            com.liferay.portal.kernel.exception.SystemException;
214    
215            public com.liferay.portal.model.User fetchByC_FID(long companyId,
216                    long facebookId)
217                    throws com.liferay.portal.kernel.exception.SystemException;
218    
219            public com.liferay.portal.model.User fetchByC_FID(long companyId,
220                    long facebookId, boolean retrieveFromCache)
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            public com.liferay.portal.model.User findByC_O(long companyId,
224                    java.lang.String openId)
225                    throws com.liferay.portal.NoSuchUserException,
226                            com.liferay.portal.kernel.exception.SystemException;
227    
228            public com.liferay.portal.model.User fetchByC_O(long companyId,
229                    java.lang.String openId)
230                    throws com.liferay.portal.kernel.exception.SystemException;
231    
232            public com.liferay.portal.model.User fetchByC_O(long companyId,
233                    java.lang.String openId, boolean retrieveFromCache)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            public java.util.List<com.liferay.portal.model.User> findByC_A(
237                    long companyId, boolean active)
238                    throws com.liferay.portal.kernel.exception.SystemException;
239    
240            public java.util.List<com.liferay.portal.model.User> findByC_A(
241                    long companyId, boolean active, int start, int end)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            public java.util.List<com.liferay.portal.model.User> findByC_A(
245                    long companyId, boolean active, int start, int end,
246                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            public com.liferay.portal.model.User findByC_A_First(long companyId,
250                    boolean active,
251                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252                    throws com.liferay.portal.NoSuchUserException,
253                            com.liferay.portal.kernel.exception.SystemException;
254    
255            public com.liferay.portal.model.User findByC_A_Last(long companyId,
256                    boolean active,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.NoSuchUserException,
259                            com.liferay.portal.kernel.exception.SystemException;
260    
261            public com.liferay.portal.model.User[] findByC_A_PrevAndNext(long userId,
262                    long companyId, boolean active,
263                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264                    throws com.liferay.portal.NoSuchUserException,
265                            com.liferay.portal.kernel.exception.SystemException;
266    
267            public java.util.List<com.liferay.portal.model.User> findAll()
268                    throws com.liferay.portal.kernel.exception.SystemException;
269    
270            public java.util.List<com.liferay.portal.model.User> findAll(int start,
271                    int end) throws com.liferay.portal.kernel.exception.SystemException;
272    
273            public java.util.List<com.liferay.portal.model.User> findAll(int start,
274                    int end,
275                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276                    throws com.liferay.portal.kernel.exception.SystemException;
277    
278            public void removeByUuid(java.lang.String uuid)
279                    throws com.liferay.portal.kernel.exception.SystemException;
280    
281            public void removeByCompanyId(long companyId)
282                    throws com.liferay.portal.kernel.exception.SystemException;
283    
284            public void removeByContactId(long contactId)
285                    throws com.liferay.portal.NoSuchUserException,
286                            com.liferay.portal.kernel.exception.SystemException;
287    
288            public void removeByEmailAddress(java.lang.String emailAddress)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            public void removeByPortraitId(long portraitId)
292                    throws com.liferay.portal.NoSuchUserException,
293                            com.liferay.portal.kernel.exception.SystemException;
294    
295            public void removeByC_U(long companyId, long userId)
296                    throws com.liferay.portal.NoSuchUserException,
297                            com.liferay.portal.kernel.exception.SystemException;
298    
299            public void removeByC_DU(long companyId, boolean defaultUser)
300                    throws com.liferay.portal.NoSuchUserException,
301                            com.liferay.portal.kernel.exception.SystemException;
302    
303            public void removeByC_SN(long companyId, java.lang.String screenName)
304                    throws com.liferay.portal.NoSuchUserException,
305                            com.liferay.portal.kernel.exception.SystemException;
306    
307            public void removeByC_EA(long companyId, java.lang.String emailAddress)
308                    throws com.liferay.portal.NoSuchUserException,
309                            com.liferay.portal.kernel.exception.SystemException;
310    
311            public void removeByC_FID(long companyId, long facebookId)
312                    throws com.liferay.portal.NoSuchUserException,
313                            com.liferay.portal.kernel.exception.SystemException;
314    
315            public void removeByC_O(long companyId, java.lang.String openId)
316                    throws com.liferay.portal.NoSuchUserException,
317                            com.liferay.portal.kernel.exception.SystemException;
318    
319            public void removeByC_A(long companyId, boolean active)
320                    throws com.liferay.portal.kernel.exception.SystemException;
321    
322            public void removeAll()
323                    throws com.liferay.portal.kernel.exception.SystemException;
324    
325            public int countByUuid(java.lang.String uuid)
326                    throws com.liferay.portal.kernel.exception.SystemException;
327    
328            public int countByCompanyId(long companyId)
329                    throws com.liferay.portal.kernel.exception.SystemException;
330    
331            public int countByContactId(long contactId)
332                    throws com.liferay.portal.kernel.exception.SystemException;
333    
334            public int countByEmailAddress(java.lang.String emailAddress)
335                    throws com.liferay.portal.kernel.exception.SystemException;
336    
337            public int countByPortraitId(long portraitId)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            public int countByC_U(long companyId, long userId)
341                    throws com.liferay.portal.kernel.exception.SystemException;
342    
343            public int countByC_DU(long companyId, boolean defaultUser)
344                    throws com.liferay.portal.kernel.exception.SystemException;
345    
346            public int countByC_SN(long companyId, java.lang.String screenName)
347                    throws com.liferay.portal.kernel.exception.SystemException;
348    
349            public int countByC_EA(long companyId, java.lang.String emailAddress)
350                    throws com.liferay.portal.kernel.exception.SystemException;
351    
352            public int countByC_FID(long companyId, long facebookId)
353                    throws com.liferay.portal.kernel.exception.SystemException;
354    
355            public int countByC_O(long companyId, java.lang.String openId)
356                    throws com.liferay.portal.kernel.exception.SystemException;
357    
358            public int countByC_A(long companyId, boolean active)
359                    throws com.liferay.portal.kernel.exception.SystemException;
360    
361            public int countAll()
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
365                    throws com.liferay.portal.kernel.exception.SystemException;
366    
367            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
368                    int start, int end)
369                    throws com.liferay.portal.kernel.exception.SystemException;
370    
371            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
372                    int start, int end,
373                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
374                    throws com.liferay.portal.kernel.exception.SystemException;
375    
376            public int getGroupsSize(long pk)
377                    throws com.liferay.portal.kernel.exception.SystemException;
378    
379            public boolean containsGroup(long pk, long groupPK)
380                    throws com.liferay.portal.kernel.exception.SystemException;
381    
382            public boolean containsGroups(long pk)
383                    throws com.liferay.portal.kernel.exception.SystemException;
384    
385            public void addGroup(long pk, long groupPK)
386                    throws com.liferay.portal.kernel.exception.SystemException;
387    
388            public void addGroup(long pk, com.liferay.portal.model.Group group)
389                    throws com.liferay.portal.kernel.exception.SystemException;
390    
391            public void addGroups(long pk, long[] groupPKs)
392                    throws com.liferay.portal.kernel.exception.SystemException;
393    
394            public void addGroups(long pk,
395                    java.util.List<com.liferay.portal.model.Group> groups)
396                    throws com.liferay.portal.kernel.exception.SystemException;
397    
398            public void clearGroups(long pk)
399                    throws com.liferay.portal.kernel.exception.SystemException;
400    
401            public void removeGroup(long pk, long groupPK)
402                    throws com.liferay.portal.kernel.exception.SystemException;
403    
404            public void removeGroup(long pk, com.liferay.portal.model.Group group)
405                    throws com.liferay.portal.kernel.exception.SystemException;
406    
407            public void removeGroups(long pk, long[] groupPKs)
408                    throws com.liferay.portal.kernel.exception.SystemException;
409    
410            public void removeGroups(long pk,
411                    java.util.List<com.liferay.portal.model.Group> groups)
412                    throws com.liferay.portal.kernel.exception.SystemException;
413    
414            public void setGroups(long pk, long[] groupPKs)
415                    throws com.liferay.portal.kernel.exception.SystemException;
416    
417            public void setGroups(long pk,
418                    java.util.List<com.liferay.portal.model.Group> groups)
419                    throws com.liferay.portal.kernel.exception.SystemException;
420    
421            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
422                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
423    
424            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
425                    long pk, int start, int end)
426                    throws com.liferay.portal.kernel.exception.SystemException;
427    
428            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
429                    long pk, int start, int end,
430                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
431                    throws com.liferay.portal.kernel.exception.SystemException;
432    
433            public int getOrganizationsSize(long pk)
434                    throws com.liferay.portal.kernel.exception.SystemException;
435    
436            public boolean containsOrganization(long pk, long organizationPK)
437                    throws com.liferay.portal.kernel.exception.SystemException;
438    
439            public boolean containsOrganizations(long pk)
440                    throws com.liferay.portal.kernel.exception.SystemException;
441    
442            public void addOrganization(long pk, long organizationPK)
443                    throws com.liferay.portal.kernel.exception.SystemException;
444    
445            public void addOrganization(long pk,
446                    com.liferay.portal.model.Organization organization)
447                    throws com.liferay.portal.kernel.exception.SystemException;
448    
449            public void addOrganizations(long pk, long[] organizationPKs)
450                    throws com.liferay.portal.kernel.exception.SystemException;
451    
452            public void addOrganizations(long pk,
453                    java.util.List<com.liferay.portal.model.Organization> organizations)
454                    throws com.liferay.portal.kernel.exception.SystemException;
455    
456            public void clearOrganizations(long pk)
457                    throws com.liferay.portal.kernel.exception.SystemException;
458    
459            public void removeOrganization(long pk, long organizationPK)
460                    throws com.liferay.portal.kernel.exception.SystemException;
461    
462            public void removeOrganization(long pk,
463                    com.liferay.portal.model.Organization organization)
464                    throws com.liferay.portal.kernel.exception.SystemException;
465    
466            public void removeOrganizations(long pk, long[] organizationPKs)
467                    throws com.liferay.portal.kernel.exception.SystemException;
468    
469            public void removeOrganizations(long pk,
470                    java.util.List<com.liferay.portal.model.Organization> organizations)
471                    throws com.liferay.portal.kernel.exception.SystemException;
472    
473            public void setOrganizations(long pk, long[] organizationPKs)
474                    throws com.liferay.portal.kernel.exception.SystemException;
475    
476            public void setOrganizations(long pk,
477                    java.util.List<com.liferay.portal.model.Organization> organizations)
478                    throws com.liferay.portal.kernel.exception.SystemException;
479    
480            public java.util.List<com.liferay.portal.model.Permission> getPermissions(
481                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
482    
483            public java.util.List<com.liferay.portal.model.Permission> getPermissions(
484                    long pk, int start, int end)
485                    throws com.liferay.portal.kernel.exception.SystemException;
486    
487            public java.util.List<com.liferay.portal.model.Permission> getPermissions(
488                    long pk, int start, int end,
489                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
490                    throws com.liferay.portal.kernel.exception.SystemException;
491    
492            public int getPermissionsSize(long pk)
493                    throws com.liferay.portal.kernel.exception.SystemException;
494    
495            public boolean containsPermission(long pk, long permissionPK)
496                    throws com.liferay.portal.kernel.exception.SystemException;
497    
498            public boolean containsPermissions(long pk)
499                    throws com.liferay.portal.kernel.exception.SystemException;
500    
501            public void addPermission(long pk, long permissionPK)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            public void addPermission(long pk,
505                    com.liferay.portal.model.Permission permission)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            public void addPermissions(long pk, long[] permissionPKs)
509                    throws com.liferay.portal.kernel.exception.SystemException;
510    
511            public void addPermissions(long pk,
512                    java.util.List<com.liferay.portal.model.Permission> permissions)
513                    throws com.liferay.portal.kernel.exception.SystemException;
514    
515            public void clearPermissions(long pk)
516                    throws com.liferay.portal.kernel.exception.SystemException;
517    
518            public void removePermission(long pk, long permissionPK)
519                    throws com.liferay.portal.kernel.exception.SystemException;
520    
521            public void removePermission(long pk,
522                    com.liferay.portal.model.Permission permission)
523                    throws com.liferay.portal.kernel.exception.SystemException;
524    
525            public void removePermissions(long pk, long[] permissionPKs)
526                    throws com.liferay.portal.kernel.exception.SystemException;
527    
528            public void removePermissions(long pk,
529                    java.util.List<com.liferay.portal.model.Permission> permissions)
530                    throws com.liferay.portal.kernel.exception.SystemException;
531    
532            public void setPermissions(long pk, long[] permissionPKs)
533                    throws com.liferay.portal.kernel.exception.SystemException;
534    
535            public void setPermissions(long pk,
536                    java.util.List<com.liferay.portal.model.Permission> permissions)
537                    throws com.liferay.portal.kernel.exception.SystemException;
538    
539            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
540                    throws com.liferay.portal.kernel.exception.SystemException;
541    
542            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
543                    int start, int end)
544                    throws com.liferay.portal.kernel.exception.SystemException;
545    
546            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
547                    int start, int end,
548                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
549                    throws com.liferay.portal.kernel.exception.SystemException;
550    
551            public int getRolesSize(long pk)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            public boolean containsRole(long pk, long rolePK)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            public boolean containsRoles(long pk)
558                    throws com.liferay.portal.kernel.exception.SystemException;
559    
560            public void addRole(long pk, long rolePK)
561                    throws com.liferay.portal.kernel.exception.SystemException;
562    
563            public void addRole(long pk, com.liferay.portal.model.Role role)
564                    throws com.liferay.portal.kernel.exception.SystemException;
565    
566            public void addRoles(long pk, long[] rolePKs)
567                    throws com.liferay.portal.kernel.exception.SystemException;
568    
569            public void addRoles(long pk,
570                    java.util.List<com.liferay.portal.model.Role> roles)
571                    throws com.liferay.portal.kernel.exception.SystemException;
572    
573            public void clearRoles(long pk)
574                    throws com.liferay.portal.kernel.exception.SystemException;
575    
576            public void removeRole(long pk, long rolePK)
577                    throws com.liferay.portal.kernel.exception.SystemException;
578    
579            public void removeRole(long pk, com.liferay.portal.model.Role role)
580                    throws com.liferay.portal.kernel.exception.SystemException;
581    
582            public void removeRoles(long pk, long[] rolePKs)
583                    throws com.liferay.portal.kernel.exception.SystemException;
584    
585            public void removeRoles(long pk,
586                    java.util.List<com.liferay.portal.model.Role> roles)
587                    throws com.liferay.portal.kernel.exception.SystemException;
588    
589            public void setRoles(long pk, long[] rolePKs)
590                    throws com.liferay.portal.kernel.exception.SystemException;
591    
592            public void setRoles(long pk,
593                    java.util.List<com.liferay.portal.model.Role> roles)
594                    throws com.liferay.portal.kernel.exception.SystemException;
595    
596            public java.util.List<com.liferay.portal.model.Team> getTeams(long pk)
597                    throws com.liferay.portal.kernel.exception.SystemException;
598    
599            public java.util.List<com.liferay.portal.model.Team> getTeams(long pk,
600                    int start, int end)
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            public java.util.List<com.liferay.portal.model.Team> getTeams(long pk,
604                    int start, int end,
605                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
606                    throws com.liferay.portal.kernel.exception.SystemException;
607    
608            public int getTeamsSize(long pk)
609                    throws com.liferay.portal.kernel.exception.SystemException;
610    
611            public boolean containsTeam(long pk, long teamPK)
612                    throws com.liferay.portal.kernel.exception.SystemException;
613    
614            public boolean containsTeams(long pk)
615                    throws com.liferay.portal.kernel.exception.SystemException;
616    
617            public void addTeam(long pk, long teamPK)
618                    throws com.liferay.portal.kernel.exception.SystemException;
619    
620            public void addTeam(long pk, com.liferay.portal.model.Team team)
621                    throws com.liferay.portal.kernel.exception.SystemException;
622    
623            public void addTeams(long pk, long[] teamPKs)
624                    throws com.liferay.portal.kernel.exception.SystemException;
625    
626            public void addTeams(long pk,
627                    java.util.List<com.liferay.portal.model.Team> teams)
628                    throws com.liferay.portal.kernel.exception.SystemException;
629    
630            public void clearTeams(long pk)
631                    throws com.liferay.portal.kernel.exception.SystemException;
632    
633            public void removeTeam(long pk, long teamPK)
634                    throws com.liferay.portal.kernel.exception.SystemException;
635    
636            public void removeTeam(long pk, com.liferay.portal.model.Team team)
637                    throws com.liferay.portal.kernel.exception.SystemException;
638    
639            public void removeTeams(long pk, long[] teamPKs)
640                    throws com.liferay.portal.kernel.exception.SystemException;
641    
642            public void removeTeams(long pk,
643                    java.util.List<com.liferay.portal.model.Team> teams)
644                    throws com.liferay.portal.kernel.exception.SystemException;
645    
646            public void setTeams(long pk, long[] teamPKs)
647                    throws com.liferay.portal.kernel.exception.SystemException;
648    
649            public void setTeams(long pk,
650                    java.util.List<com.liferay.portal.model.Team> teams)
651                    throws com.liferay.portal.kernel.exception.SystemException;
652    
653            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
654                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
655    
656            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
657                    long pk, int start, int end)
658                    throws com.liferay.portal.kernel.exception.SystemException;
659    
660            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
661                    long pk, int start, int end,
662                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
663                    throws com.liferay.portal.kernel.exception.SystemException;
664    
665            public int getUserGroupsSize(long pk)
666                    throws com.liferay.portal.kernel.exception.SystemException;
667    
668            public boolean containsUserGroup(long pk, long userGroupPK)
669                    throws com.liferay.portal.kernel.exception.SystemException;
670    
671            public boolean containsUserGroups(long pk)
672                    throws com.liferay.portal.kernel.exception.SystemException;
673    
674            public void addUserGroup(long pk, long userGroupPK)
675                    throws com.liferay.portal.kernel.exception.SystemException;
676    
677            public void addUserGroup(long pk,
678                    com.liferay.portal.model.UserGroup userGroup)
679                    throws com.liferay.portal.kernel.exception.SystemException;
680    
681            public void addUserGroups(long pk, long[] userGroupPKs)
682                    throws com.liferay.portal.kernel.exception.SystemException;
683    
684            public void addUserGroups(long pk,
685                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
686                    throws com.liferay.portal.kernel.exception.SystemException;
687    
688            public void clearUserGroups(long pk)
689                    throws com.liferay.portal.kernel.exception.SystemException;
690    
691            public void removeUserGroup(long pk, long userGroupPK)
692                    throws com.liferay.portal.kernel.exception.SystemException;
693    
694            public void removeUserGroup(long pk,
695                    com.liferay.portal.model.UserGroup userGroup)
696                    throws com.liferay.portal.kernel.exception.SystemException;
697    
698            public void removeUserGroups(long pk, long[] userGroupPKs)
699                    throws com.liferay.portal.kernel.exception.SystemException;
700    
701            public void removeUserGroups(long pk,
702                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
703                    throws com.liferay.portal.kernel.exception.SystemException;
704    
705            public void setUserGroups(long pk, long[] userGroupPKs)
706                    throws com.liferay.portal.kernel.exception.SystemException;
707    
708            public void setUserGroups(long pk,
709                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
710                    throws com.liferay.portal.kernel.exception.SystemException;
711    }