1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  
30  /**
31   * <a href="UserPersistence.java.html"><b><i>View Source</i></b></a>
32   *
33   * @author Brian Wing Shun Chan
34   *
35   */
36  @Transactional(rollbackFor =  {
37      PortalException.class, SystemException.class})
38  public interface UserPersistence extends BasePersistence {
39      public com.liferay.portal.model.User create(long userId);
40  
41      public com.liferay.portal.model.User remove(long userId)
42          throws com.liferay.portal.NoSuchUserException,
43              com.liferay.portal.SystemException;
44  
45      public com.liferay.portal.model.User remove(
46          com.liferay.portal.model.User user)
47          throws com.liferay.portal.SystemException;
48  
49      /**
50       * @deprecated Use <code>update(User user, boolean merge)</code>.
51       */
52      public com.liferay.portal.model.User update(
53          com.liferay.portal.model.User user)
54          throws com.liferay.portal.SystemException;
55  
56      /**
57       * Add, update, or merge, the entity. This method also calls the model
58       * listeners to trigger the proper events associated with adding, deleting,
59       * or updating an entity.
60       *
61       * @param        user the entity to add, update, or merge
62       * @param        merge boolean value for whether to merge the entity. The
63       *                default value is false. Setting merge to true is more
64       *                expensive and should only be true when user is
65       *                transient. See LEP-5473 for a detailed discussion of this
66       *                method.
67       * @return        true if the portlet can be displayed via Ajax
68       */
69      public com.liferay.portal.model.User update(
70          com.liferay.portal.model.User user, boolean merge)
71          throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portal.model.User updateImpl(
74          com.liferay.portal.model.User user, boolean merge)
75          throws com.liferay.portal.SystemException;
76  
77      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78      public com.liferay.portal.model.User findByPrimaryKey(long userId)
79          throws com.liferay.portal.NoSuchUserException,
80              com.liferay.portal.SystemException;
81  
82      public com.liferay.portal.model.User fetchByPrimaryKey(long userId)
83          throws com.liferay.portal.SystemException;
84  
85      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
86      public java.util.List<com.liferay.portal.model.User> findByUuid(
87          java.lang.String uuid) throws com.liferay.portal.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portal.model.User> findByUuid(
91          java.lang.String uuid, int start, int end)
92          throws com.liferay.portal.SystemException;
93  
94      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public java.util.List<com.liferay.portal.model.User> findByUuid(
96          java.lang.String uuid, int start, int end,
97          com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.SystemException;
99  
100     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101     public com.liferay.portal.model.User findByUuid_First(
102         java.lang.String uuid,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.NoSuchUserException,
105             com.liferay.portal.SystemException;
106 
107     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108     public com.liferay.portal.model.User findByUuid_Last(
109         java.lang.String uuid,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.NoSuchUserException,
112             com.liferay.portal.SystemException;
113 
114     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115     public com.liferay.portal.model.User[] findByUuid_PrevAndNext(long userId,
116         java.lang.String uuid,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.NoSuchUserException,
119             com.liferay.portal.SystemException;
120 
121     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122     public java.util.List<com.liferay.portal.model.User> findByCompanyId(
123         long companyId) throws com.liferay.portal.SystemException;
124 
125     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126     public java.util.List<com.liferay.portal.model.User> findByCompanyId(
127         long companyId, int start, int end)
128         throws com.liferay.portal.SystemException;
129 
130     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131     public java.util.List<com.liferay.portal.model.User> findByCompanyId(
132         long companyId, int start, int end,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException;
135 
136     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137     public com.liferay.portal.model.User findByCompanyId_First(long companyId,
138         com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.NoSuchUserException,
140             com.liferay.portal.SystemException;
141 
142     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143     public com.liferay.portal.model.User findByCompanyId_Last(long companyId,
144         com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.NoSuchUserException,
146             com.liferay.portal.SystemException;
147 
148     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149     public com.liferay.portal.model.User[] findByCompanyId_PrevAndNext(
150         long userId, long companyId,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.NoSuchUserException,
153             com.liferay.portal.SystemException;
154 
155     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156     public com.liferay.portal.model.User findByContactId(long contactId)
157         throws com.liferay.portal.NoSuchUserException,
158             com.liferay.portal.SystemException;
159 
160     public com.liferay.portal.model.User fetchByContactId(long contactId)
161         throws com.liferay.portal.SystemException;
162 
163     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164     public java.util.List<com.liferay.portal.model.User> findByEmailAddress(
165         java.lang.String emailAddress)
166         throws com.liferay.portal.SystemException;
167 
168     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169     public java.util.List<com.liferay.portal.model.User> findByEmailAddress(
170         java.lang.String emailAddress, int start, int end)
171         throws com.liferay.portal.SystemException;
172 
173     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174     public java.util.List<com.liferay.portal.model.User> findByEmailAddress(
175         java.lang.String emailAddress, int start, int end,
176         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException;
178 
179     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180     public com.liferay.portal.model.User findByEmailAddress_First(
181         java.lang.String emailAddress,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.NoSuchUserException,
184             com.liferay.portal.SystemException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public com.liferay.portal.model.User findByEmailAddress_Last(
188         java.lang.String emailAddress,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.NoSuchUserException,
191             com.liferay.portal.SystemException;
192 
193     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194     public com.liferay.portal.model.User[] findByEmailAddress_PrevAndNext(
195         long userId, java.lang.String emailAddress,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.NoSuchUserException,
198             com.liferay.portal.SystemException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public com.liferay.portal.model.User findByOpenId(java.lang.String openId)
202         throws com.liferay.portal.NoSuchUserException,
203             com.liferay.portal.SystemException;
204 
205     public com.liferay.portal.model.User fetchByOpenId(java.lang.String openId)
206         throws com.liferay.portal.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public com.liferay.portal.model.User findByPortraitId(long portraitId)
210         throws com.liferay.portal.NoSuchUserException,
211             com.liferay.portal.SystemException;
212 
213     public com.liferay.portal.model.User fetchByPortraitId(long portraitId)
214         throws com.liferay.portal.SystemException;
215 
216     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217     public com.liferay.portal.model.User findByC_U(long companyId, long userId)
218         throws com.liferay.portal.NoSuchUserException,
219             com.liferay.portal.SystemException;
220 
221     public com.liferay.portal.model.User fetchByC_U(long companyId, long userId)
222         throws com.liferay.portal.SystemException;
223 
224     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225     public com.liferay.portal.model.User findByC_DU(long companyId,
226         boolean defaultUser)
227         throws com.liferay.portal.NoSuchUserException,
228             com.liferay.portal.SystemException;
229 
230     public com.liferay.portal.model.User fetchByC_DU(long companyId,
231         boolean defaultUser) throws com.liferay.portal.SystemException;
232 
233     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234     public java.util.List<com.liferay.portal.model.User> findByC_P(
235         long companyId, java.lang.String password)
236         throws com.liferay.portal.SystemException;
237 
238     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239     public java.util.List<com.liferay.portal.model.User> findByC_P(
240         long companyId, java.lang.String password, int start, int end)
241         throws com.liferay.portal.SystemException;
242 
243     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244     public java.util.List<com.liferay.portal.model.User> findByC_P(
245         long companyId, java.lang.String password, int start, int end,
246         com.liferay.portal.kernel.util.OrderByComparator obc)
247         throws com.liferay.portal.SystemException;
248 
249     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250     public com.liferay.portal.model.User findByC_P_First(long companyId,
251         java.lang.String password,
252         com.liferay.portal.kernel.util.OrderByComparator obc)
253         throws com.liferay.portal.NoSuchUserException,
254             com.liferay.portal.SystemException;
255 
256     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257     public com.liferay.portal.model.User findByC_P_Last(long companyId,
258         java.lang.String password,
259         com.liferay.portal.kernel.util.OrderByComparator obc)
260         throws com.liferay.portal.NoSuchUserException,
261             com.liferay.portal.SystemException;
262 
263     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264     public com.liferay.portal.model.User[] findByC_P_PrevAndNext(long userId,
265         long companyId, java.lang.String password,
266         com.liferay.portal.kernel.util.OrderByComparator obc)
267         throws com.liferay.portal.NoSuchUserException,
268             com.liferay.portal.SystemException;
269 
270     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271     public com.liferay.portal.model.User findByC_SN(long companyId,
272         java.lang.String screenName)
273         throws com.liferay.portal.NoSuchUserException,
274             com.liferay.portal.SystemException;
275 
276     public com.liferay.portal.model.User fetchByC_SN(long companyId,
277         java.lang.String screenName) throws com.liferay.portal.SystemException;
278 
279     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280     public com.liferay.portal.model.User findByC_EA(long companyId,
281         java.lang.String emailAddress)
282         throws com.liferay.portal.NoSuchUserException,
283             com.liferay.portal.SystemException;
284 
285     public com.liferay.portal.model.User fetchByC_EA(long companyId,
286         java.lang.String emailAddress)
287         throws com.liferay.portal.SystemException;
288 
289     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290     public java.util.List<Object> findWithDynamicQuery(
291         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
292         throws com.liferay.portal.SystemException;
293 
294     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295     public java.util.List<Object> findWithDynamicQuery(
296         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
297         int end) throws com.liferay.portal.SystemException;
298 
299     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300     public java.util.List<com.liferay.portal.model.User> findAll()
301         throws com.liferay.portal.SystemException;
302 
303     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304     public java.util.List<com.liferay.portal.model.User> findAll(int start,
305         int end) throws com.liferay.portal.SystemException;
306 
307     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308     public java.util.List<com.liferay.portal.model.User> findAll(int start,
309         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
310         throws com.liferay.portal.SystemException;
311 
312     public void removeByUuid(java.lang.String uuid)
313         throws com.liferay.portal.SystemException;
314 
315     public void removeByCompanyId(long companyId)
316         throws com.liferay.portal.SystemException;
317 
318     public void removeByContactId(long contactId)
319         throws com.liferay.portal.NoSuchUserException,
320             com.liferay.portal.SystemException;
321 
322     public void removeByEmailAddress(java.lang.String emailAddress)
323         throws com.liferay.portal.SystemException;
324 
325     public void removeByOpenId(java.lang.String openId)
326         throws com.liferay.portal.NoSuchUserException,
327             com.liferay.portal.SystemException;
328 
329     public void removeByPortraitId(long portraitId)
330         throws com.liferay.portal.NoSuchUserException,
331             com.liferay.portal.SystemException;
332 
333     public void removeByC_U(long companyId, long userId)
334         throws com.liferay.portal.NoSuchUserException,
335             com.liferay.portal.SystemException;
336 
337     public void removeByC_DU(long companyId, boolean defaultUser)
338         throws com.liferay.portal.NoSuchUserException,
339             com.liferay.portal.SystemException;
340 
341     public void removeByC_P(long companyId, java.lang.String password)
342         throws com.liferay.portal.SystemException;
343 
344     public void removeByC_SN(long companyId, java.lang.String screenName)
345         throws com.liferay.portal.NoSuchUserException,
346             com.liferay.portal.SystemException;
347 
348     public void removeByC_EA(long companyId, java.lang.String emailAddress)
349         throws com.liferay.portal.NoSuchUserException,
350             com.liferay.portal.SystemException;
351 
352     public void removeAll() throws com.liferay.portal.SystemException;
353 
354     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355     public int countByUuid(java.lang.String uuid)
356         throws com.liferay.portal.SystemException;
357 
358     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359     public int countByCompanyId(long companyId)
360         throws com.liferay.portal.SystemException;
361 
362     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363     public int countByContactId(long contactId)
364         throws com.liferay.portal.SystemException;
365 
366     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367     public int countByEmailAddress(java.lang.String emailAddress)
368         throws com.liferay.portal.SystemException;
369 
370     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
371     public int countByOpenId(java.lang.String openId)
372         throws com.liferay.portal.SystemException;
373 
374     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375     public int countByPortraitId(long portraitId)
376         throws com.liferay.portal.SystemException;
377 
378     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379     public int countByC_U(long companyId, long userId)
380         throws com.liferay.portal.SystemException;
381 
382     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
383     public int countByC_DU(long companyId, boolean defaultUser)
384         throws com.liferay.portal.SystemException;
385 
386     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387     public int countByC_P(long companyId, java.lang.String password)
388         throws com.liferay.portal.SystemException;
389 
390     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
391     public int countByC_SN(long companyId, java.lang.String screenName)
392         throws com.liferay.portal.SystemException;
393 
394     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
395     public int countByC_EA(long companyId, java.lang.String emailAddress)
396         throws com.liferay.portal.SystemException;
397 
398     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
399     public int countAll() throws com.liferay.portal.SystemException;
400 
401     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
403         throws com.liferay.portal.SystemException;
404 
405     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
407         int start, int end) throws com.liferay.portal.SystemException;
408 
409     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
411         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
412         throws com.liferay.portal.SystemException;
413 
414     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415     public int getGroupsSize(long pk) throws com.liferay.portal.SystemException;
416 
417     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
418     public boolean containsGroup(long pk, long groupPK)
419         throws com.liferay.portal.SystemException;
420 
421     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422     public boolean containsGroups(long pk)
423         throws com.liferay.portal.SystemException;
424 
425     public void addGroup(long pk, long groupPK)
426         throws com.liferay.portal.SystemException;
427 
428     public void addGroup(long pk, com.liferay.portal.model.Group group)
429         throws com.liferay.portal.SystemException;
430 
431     public void addGroups(long pk, long[] groupPKs)
432         throws com.liferay.portal.SystemException;
433 
434     public void addGroups(long pk,
435         java.util.List<com.liferay.portal.model.Group> groups)
436         throws com.liferay.portal.SystemException;
437 
438     public void clearGroups(long pk) throws com.liferay.portal.SystemException;
439 
440     public void removeGroup(long pk, long groupPK)
441         throws com.liferay.portal.SystemException;
442 
443     public void removeGroup(long pk, com.liferay.portal.model.Group group)
444         throws com.liferay.portal.SystemException;
445 
446     public void removeGroups(long pk, long[] groupPKs)
447         throws com.liferay.portal.SystemException;
448 
449     public void removeGroups(long pk,
450         java.util.List<com.liferay.portal.model.Group> groups)
451         throws com.liferay.portal.SystemException;
452 
453     public void setGroups(long pk, long[] groupPKs)
454         throws com.liferay.portal.SystemException;
455 
456     public void setGroups(long pk,
457         java.util.List<com.liferay.portal.model.Group> groups)
458         throws com.liferay.portal.SystemException;
459 
460     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
462         long pk) throws com.liferay.portal.SystemException;
463 
464     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
465     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
466         long pk, int start, int end) throws com.liferay.portal.SystemException;
467 
468     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
470         long pk, int start, int end,
471         com.liferay.portal.kernel.util.OrderByComparator obc)
472         throws com.liferay.portal.SystemException;
473 
474     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
475     public int getOrganizationsSize(long pk)
476         throws com.liferay.portal.SystemException;
477 
478     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479     public boolean containsOrganization(long pk, long organizationPK)
480         throws com.liferay.portal.SystemException;
481 
482     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483     public boolean containsOrganizations(long pk)
484         throws com.liferay.portal.SystemException;
485 
486     public void addOrganization(long pk, long organizationPK)
487         throws com.liferay.portal.SystemException;
488 
489     public void addOrganization(long pk,
490         com.liferay.portal.model.Organization organization)
491         throws com.liferay.portal.SystemException;
492 
493     public void addOrganizations(long pk, long[] organizationPKs)
494         throws com.liferay.portal.SystemException;
495 
496     public void addOrganizations(long pk,
497         java.util.List<com.liferay.portal.model.Organization> organizations)
498         throws com.liferay.portal.SystemException;
499 
500     public void clearOrganizations(long pk)
501         throws com.liferay.portal.SystemException;
502 
503     public void removeOrganization(long pk, long organizationPK)
504         throws com.liferay.portal.SystemException;
505 
506     public void removeOrganization(long pk,
507         com.liferay.portal.model.Organization organization)
508         throws com.liferay.portal.SystemException;
509 
510     public void removeOrganizations(long pk, long[] organizationPKs)
511         throws com.liferay.portal.SystemException;
512 
513     public void removeOrganizations(long pk,
514         java.util.List<com.liferay.portal.model.Organization> organizations)
515         throws com.liferay.portal.SystemException;
516 
517     public void setOrganizations(long pk, long[] organizationPKs)
518         throws com.liferay.portal.SystemException;
519 
520     public void setOrganizations(long pk,
521         java.util.List<com.liferay.portal.model.Organization> organizations)
522         throws com.liferay.portal.SystemException;
523 
524     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
525     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
526         long pk) throws com.liferay.portal.SystemException;
527 
528     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
529     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
530         long pk, int start, int end) throws com.liferay.portal.SystemException;
531 
532     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
533     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
534         long pk, int start, int end,
535         com.liferay.portal.kernel.util.OrderByComparator obc)
536         throws com.liferay.portal.SystemException;
537 
538     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
539     public int getPermissionsSize(long pk)
540         throws com.liferay.portal.SystemException;
541 
542     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
543     public boolean containsPermission(long pk, long permissionPK)
544         throws com.liferay.portal.SystemException;
545 
546     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
547     public boolean containsPermissions(long pk)
548         throws com.liferay.portal.SystemException;
549 
550     public void addPermission(long pk, long permissionPK)
551         throws com.liferay.portal.SystemException;
552 
553     public void addPermission(long pk,
554         com.liferay.portal.model.Permission permission)
555         throws com.liferay.portal.SystemException;
556 
557     public void addPermissions(long pk, long[] permissionPKs)
558         throws com.liferay.portal.SystemException;
559 
560     public void addPermissions(long pk,
561         java.util.List<com.liferay.portal.model.Permission> permissions)
562         throws com.liferay.portal.SystemException;
563 
564     public void clearPermissions(long pk)
565         throws com.liferay.portal.SystemException;
566 
567     public void removePermission(long pk, long permissionPK)
568         throws com.liferay.portal.SystemException;
569 
570     public void removePermission(long pk,
571         com.liferay.portal.model.Permission permission)
572         throws com.liferay.portal.SystemException;
573 
574     public void removePermissions(long pk, long[] permissionPKs)
575         throws com.liferay.portal.SystemException;
576 
577     public void removePermissions(long pk,
578         java.util.List<com.liferay.portal.model.Permission> permissions)
579         throws com.liferay.portal.SystemException;
580 
581     public void setPermissions(long pk, long[] permissionPKs)
582         throws com.liferay.portal.SystemException;
583 
584     public void setPermissions(long pk,
585         java.util.List<com.liferay.portal.model.Permission> permissions)
586         throws com.liferay.portal.SystemException;
587 
588     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
589     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
590         throws com.liferay.portal.SystemException;
591 
592     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
593     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
594         int start, int end) throws com.liferay.portal.SystemException;
595 
596     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
597     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
598         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
599         throws com.liferay.portal.SystemException;
600 
601     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
602     public int getRolesSize(long pk) throws com.liferay.portal.SystemException;
603 
604     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
605     public boolean containsRole(long pk, long rolePK)
606         throws com.liferay.portal.SystemException;
607 
608     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
609     public boolean containsRoles(long pk)
610         throws com.liferay.portal.SystemException;
611 
612     public void addRole(long pk, long rolePK)
613         throws com.liferay.portal.SystemException;
614 
615     public void addRole(long pk, com.liferay.portal.model.Role role)
616         throws com.liferay.portal.SystemException;
617 
618     public void addRoles(long pk, long[] rolePKs)
619         throws com.liferay.portal.SystemException;
620 
621     public void addRoles(long pk,
622         java.util.List<com.liferay.portal.model.Role> roles)
623         throws com.liferay.portal.SystemException;
624 
625     public void clearRoles(long pk) throws com.liferay.portal.SystemException;
626 
627     public void removeRole(long pk, long rolePK)
628         throws com.liferay.portal.SystemException;
629 
630     public void removeRole(long pk, com.liferay.portal.model.Role role)
631         throws com.liferay.portal.SystemException;
632 
633     public void removeRoles(long pk, long[] rolePKs)
634         throws com.liferay.portal.SystemException;
635 
636     public void removeRoles(long pk,
637         java.util.List<com.liferay.portal.model.Role> roles)
638         throws com.liferay.portal.SystemException;
639 
640     public void setRoles(long pk, long[] rolePKs)
641         throws com.liferay.portal.SystemException;
642 
643     public void setRoles(long pk,
644         java.util.List<com.liferay.portal.model.Role> roles)
645         throws com.liferay.portal.SystemException;
646 
647     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
648     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
649         long pk) throws com.liferay.portal.SystemException;
650 
651     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
652     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
653         long pk, int start, int end) throws com.liferay.portal.SystemException;
654 
655     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
656     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
657         long pk, int start, int end,
658         com.liferay.portal.kernel.util.OrderByComparator obc)
659         throws com.liferay.portal.SystemException;
660 
661     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
662     public int getUserGroupsSize(long pk)
663         throws com.liferay.portal.SystemException;
664 
665     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
666     public boolean containsUserGroup(long pk, long userGroupPK)
667         throws com.liferay.portal.SystemException;
668 
669     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
670     public boolean containsUserGroups(long pk)
671         throws com.liferay.portal.SystemException;
672 
673     public void addUserGroup(long pk, long userGroupPK)
674         throws com.liferay.portal.SystemException;
675 
676     public void addUserGroup(long pk,
677         com.liferay.portal.model.UserGroup userGroup)
678         throws com.liferay.portal.SystemException;
679 
680     public void addUserGroups(long pk, long[] userGroupPKs)
681         throws com.liferay.portal.SystemException;
682 
683     public void addUserGroups(long pk,
684         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
685         throws com.liferay.portal.SystemException;
686 
687     public void clearUserGroups(long pk)
688         throws com.liferay.portal.SystemException;
689 
690     public void removeUserGroup(long pk, long userGroupPK)
691         throws com.liferay.portal.SystemException;
692 
693     public void removeUserGroup(long pk,
694         com.liferay.portal.model.UserGroup userGroup)
695         throws com.liferay.portal.SystemException;
696 
697     public void removeUserGroups(long pk, long[] userGroupPKs)
698         throws com.liferay.portal.SystemException;
699 
700     public void removeUserGroups(long pk,
701         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
702         throws com.liferay.portal.SystemException;
703 
704     public void setUserGroups(long pk, long[] userGroupPKs)
705         throws com.liferay.portal.SystemException;
706 
707     public void setUserGroups(long pk,
708         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
709         throws com.liferay.portal.SystemException;
710 }