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 com.liferay.portal.model.User findByC_SN(long companyId,
235         java.lang.String screenName)
236         throws com.liferay.portal.NoSuchUserException,
237             com.liferay.portal.SystemException;
238 
239     public com.liferay.portal.model.User fetchByC_SN(long companyId,
240         java.lang.String screenName) throws com.liferay.portal.SystemException;
241 
242     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243     public com.liferay.portal.model.User findByC_EA(long companyId,
244         java.lang.String emailAddress)
245         throws com.liferay.portal.NoSuchUserException,
246             com.liferay.portal.SystemException;
247 
248     public com.liferay.portal.model.User fetchByC_EA(long companyId,
249         java.lang.String emailAddress)
250         throws com.liferay.portal.SystemException;
251 
252     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253     public java.util.List<Object> findWithDynamicQuery(
254         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
255         throws com.liferay.portal.SystemException;
256 
257     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258     public java.util.List<Object> findWithDynamicQuery(
259         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
260         int end) throws com.liferay.portal.SystemException;
261 
262     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263     public java.util.List<com.liferay.portal.model.User> findAll()
264         throws com.liferay.portal.SystemException;
265 
266     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267     public java.util.List<com.liferay.portal.model.User> findAll(int start,
268         int end) throws com.liferay.portal.SystemException;
269 
270     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271     public java.util.List<com.liferay.portal.model.User> findAll(int start,
272         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
273         throws com.liferay.portal.SystemException;
274 
275     public void removeByUuid(java.lang.String uuid)
276         throws com.liferay.portal.SystemException;
277 
278     public void removeByCompanyId(long companyId)
279         throws com.liferay.portal.SystemException;
280 
281     public void removeByContactId(long contactId)
282         throws com.liferay.portal.NoSuchUserException,
283             com.liferay.portal.SystemException;
284 
285     public void removeByEmailAddress(java.lang.String emailAddress)
286         throws com.liferay.portal.SystemException;
287 
288     public void removeByOpenId(java.lang.String openId)
289         throws com.liferay.portal.NoSuchUserException,
290             com.liferay.portal.SystemException;
291 
292     public void removeByPortraitId(long portraitId)
293         throws com.liferay.portal.NoSuchUserException,
294             com.liferay.portal.SystemException;
295 
296     public void removeByC_U(long companyId, long userId)
297         throws com.liferay.portal.NoSuchUserException,
298             com.liferay.portal.SystemException;
299 
300     public void removeByC_DU(long companyId, boolean defaultUser)
301         throws com.liferay.portal.NoSuchUserException,
302             com.liferay.portal.SystemException;
303 
304     public void removeByC_SN(long companyId, java.lang.String screenName)
305         throws com.liferay.portal.NoSuchUserException,
306             com.liferay.portal.SystemException;
307 
308     public void removeByC_EA(long companyId, java.lang.String emailAddress)
309         throws com.liferay.portal.NoSuchUserException,
310             com.liferay.portal.SystemException;
311 
312     public void removeAll() throws com.liferay.portal.SystemException;
313 
314     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315     public int countByUuid(java.lang.String uuid)
316         throws com.liferay.portal.SystemException;
317 
318     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319     public int countByCompanyId(long companyId)
320         throws com.liferay.portal.SystemException;
321 
322     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323     public int countByContactId(long contactId)
324         throws com.liferay.portal.SystemException;
325 
326     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327     public int countByEmailAddress(java.lang.String emailAddress)
328         throws com.liferay.portal.SystemException;
329 
330     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331     public int countByOpenId(java.lang.String openId)
332         throws com.liferay.portal.SystemException;
333 
334     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
335     public int countByPortraitId(long portraitId)
336         throws com.liferay.portal.SystemException;
337 
338     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339     public int countByC_U(long companyId, long userId)
340         throws com.liferay.portal.SystemException;
341 
342     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
343     public int countByC_DU(long companyId, boolean defaultUser)
344         throws com.liferay.portal.SystemException;
345 
346     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347     public int countByC_SN(long companyId, java.lang.String screenName)
348         throws com.liferay.portal.SystemException;
349 
350     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351     public int countByC_EA(long companyId, java.lang.String emailAddress)
352         throws com.liferay.portal.SystemException;
353 
354     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355     public int countAll() throws com.liferay.portal.SystemException;
356 
357     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
359         throws com.liferay.portal.SystemException;
360 
361     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
363         int start, int end) throws com.liferay.portal.SystemException;
364 
365     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
367         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
368         throws com.liferay.portal.SystemException;
369 
370     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
371     public int getGroupsSize(long pk) throws com.liferay.portal.SystemException;
372 
373     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374     public boolean containsGroup(long pk, long groupPK)
375         throws com.liferay.portal.SystemException;
376 
377     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378     public boolean containsGroups(long pk)
379         throws com.liferay.portal.SystemException;
380 
381     public void addGroup(long pk, long groupPK)
382         throws com.liferay.portal.SystemException;
383 
384     public void addGroup(long pk, com.liferay.portal.model.Group group)
385         throws com.liferay.portal.SystemException;
386 
387     public void addGroups(long pk, long[] groupPKs)
388         throws com.liferay.portal.SystemException;
389 
390     public void addGroups(long pk,
391         java.util.List<com.liferay.portal.model.Group> groups)
392         throws com.liferay.portal.SystemException;
393 
394     public void clearGroups(long pk) throws com.liferay.portal.SystemException;
395 
396     public void removeGroup(long pk, long groupPK)
397         throws com.liferay.portal.SystemException;
398 
399     public void removeGroup(long pk, com.liferay.portal.model.Group group)
400         throws com.liferay.portal.SystemException;
401 
402     public void removeGroups(long pk, long[] groupPKs)
403         throws com.liferay.portal.SystemException;
404 
405     public void removeGroups(long pk,
406         java.util.List<com.liferay.portal.model.Group> groups)
407         throws com.liferay.portal.SystemException;
408 
409     public void setGroups(long pk, long[] groupPKs)
410         throws com.liferay.portal.SystemException;
411 
412     public void setGroups(long pk,
413         java.util.List<com.liferay.portal.model.Group> groups)
414         throws com.liferay.portal.SystemException;
415 
416     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
418         long pk) throws com.liferay.portal.SystemException;
419 
420     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
421     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
422         long pk, int start, int end) throws com.liferay.portal.SystemException;
423 
424     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
426         long pk, int start, int end,
427         com.liferay.portal.kernel.util.OrderByComparator obc)
428         throws com.liferay.portal.SystemException;
429 
430     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431     public int getOrganizationsSize(long pk)
432         throws com.liferay.portal.SystemException;
433 
434     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
435     public boolean containsOrganization(long pk, long organizationPK)
436         throws com.liferay.portal.SystemException;
437 
438     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
439     public boolean containsOrganizations(long pk)
440         throws com.liferay.portal.SystemException;
441 
442     public void addOrganization(long pk, long organizationPK)
443         throws com.liferay.portal.SystemException;
444 
445     public void addOrganization(long pk,
446         com.liferay.portal.model.Organization organization)
447         throws com.liferay.portal.SystemException;
448 
449     public void addOrganizations(long pk, long[] organizationPKs)
450         throws com.liferay.portal.SystemException;
451 
452     public void addOrganizations(long pk,
453         java.util.List<com.liferay.portal.model.Organization> organizations)
454         throws com.liferay.portal.SystemException;
455 
456     public void clearOrganizations(long pk)
457         throws com.liferay.portal.SystemException;
458 
459     public void removeOrganization(long pk, long organizationPK)
460         throws com.liferay.portal.SystemException;
461 
462     public void removeOrganization(long pk,
463         com.liferay.portal.model.Organization organization)
464         throws com.liferay.portal.SystemException;
465 
466     public void removeOrganizations(long pk, long[] organizationPKs)
467         throws com.liferay.portal.SystemException;
468 
469     public void removeOrganizations(long pk,
470         java.util.List<com.liferay.portal.model.Organization> organizations)
471         throws com.liferay.portal.SystemException;
472 
473     public void setOrganizations(long pk, long[] organizationPKs)
474         throws com.liferay.portal.SystemException;
475 
476     public void setOrganizations(long pk,
477         java.util.List<com.liferay.portal.model.Organization> organizations)
478         throws com.liferay.portal.SystemException;
479 
480     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
481     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
482         long pk) throws com.liferay.portal.SystemException;
483 
484     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
485     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
486         long pk, int start, int end) throws com.liferay.portal.SystemException;
487 
488     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
489     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
490         long pk, int start, int end,
491         com.liferay.portal.kernel.util.OrderByComparator obc)
492         throws com.liferay.portal.SystemException;
493 
494     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495     public int getPermissionsSize(long pk)
496         throws com.liferay.portal.SystemException;
497 
498     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
499     public boolean containsPermission(long pk, long permissionPK)
500         throws com.liferay.portal.SystemException;
501 
502     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
503     public boolean containsPermissions(long pk)
504         throws com.liferay.portal.SystemException;
505 
506     public void addPermission(long pk, long permissionPK)
507         throws com.liferay.portal.SystemException;
508 
509     public void addPermission(long pk,
510         com.liferay.portal.model.Permission permission)
511         throws com.liferay.portal.SystemException;
512 
513     public void addPermissions(long pk, long[] permissionPKs)
514         throws com.liferay.portal.SystemException;
515 
516     public void addPermissions(long pk,
517         java.util.List<com.liferay.portal.model.Permission> permissions)
518         throws com.liferay.portal.SystemException;
519 
520     public void clearPermissions(long pk)
521         throws com.liferay.portal.SystemException;
522 
523     public void removePermission(long pk, long permissionPK)
524         throws com.liferay.portal.SystemException;
525 
526     public void removePermission(long pk,
527         com.liferay.portal.model.Permission permission)
528         throws com.liferay.portal.SystemException;
529 
530     public void removePermissions(long pk, long[] permissionPKs)
531         throws com.liferay.portal.SystemException;
532 
533     public void removePermissions(long pk,
534         java.util.List<com.liferay.portal.model.Permission> permissions)
535         throws com.liferay.portal.SystemException;
536 
537     public void setPermissions(long pk, long[] permissionPKs)
538         throws com.liferay.portal.SystemException;
539 
540     public void setPermissions(long pk,
541         java.util.List<com.liferay.portal.model.Permission> permissions)
542         throws com.liferay.portal.SystemException;
543 
544     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
545     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
546         throws com.liferay.portal.SystemException;
547 
548     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
549     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
550         int start, int end) throws com.liferay.portal.SystemException;
551 
552     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
553     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
554         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
555         throws com.liferay.portal.SystemException;
556 
557     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
558     public int getRolesSize(long pk) throws com.liferay.portal.SystemException;
559 
560     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
561     public boolean containsRole(long pk, long rolePK)
562         throws com.liferay.portal.SystemException;
563 
564     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
565     public boolean containsRoles(long pk)
566         throws com.liferay.portal.SystemException;
567 
568     public void addRole(long pk, long rolePK)
569         throws com.liferay.portal.SystemException;
570 
571     public void addRole(long pk, com.liferay.portal.model.Role role)
572         throws com.liferay.portal.SystemException;
573 
574     public void addRoles(long pk, long[] rolePKs)
575         throws com.liferay.portal.SystemException;
576 
577     public void addRoles(long pk,
578         java.util.List<com.liferay.portal.model.Role> roles)
579         throws com.liferay.portal.SystemException;
580 
581     public void clearRoles(long pk) throws com.liferay.portal.SystemException;
582 
583     public void removeRole(long pk, long rolePK)
584         throws com.liferay.portal.SystemException;
585 
586     public void removeRole(long pk, com.liferay.portal.model.Role role)
587         throws com.liferay.portal.SystemException;
588 
589     public void removeRoles(long pk, long[] rolePKs)
590         throws com.liferay.portal.SystemException;
591 
592     public void removeRoles(long pk,
593         java.util.List<com.liferay.portal.model.Role> roles)
594         throws com.liferay.portal.SystemException;
595 
596     public void setRoles(long pk, long[] rolePKs)
597         throws com.liferay.portal.SystemException;
598 
599     public void setRoles(long pk,
600         java.util.List<com.liferay.portal.model.Role> roles)
601         throws com.liferay.portal.SystemException;
602 
603     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
604     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
605         long pk) throws com.liferay.portal.SystemException;
606 
607     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
608     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
609         long pk, int start, int end) throws com.liferay.portal.SystemException;
610 
611     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
612     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
613         long pk, int start, int end,
614         com.liferay.portal.kernel.util.OrderByComparator obc)
615         throws com.liferay.portal.SystemException;
616 
617     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
618     public int getUserGroupsSize(long pk)
619         throws com.liferay.portal.SystemException;
620 
621     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
622     public boolean containsUserGroup(long pk, long userGroupPK)
623         throws com.liferay.portal.SystemException;
624 
625     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
626     public boolean containsUserGroups(long pk)
627         throws com.liferay.portal.SystemException;
628 
629     public void addUserGroup(long pk, long userGroupPK)
630         throws com.liferay.portal.SystemException;
631 
632     public void addUserGroup(long pk,
633         com.liferay.portal.model.UserGroup userGroup)
634         throws com.liferay.portal.SystemException;
635 
636     public void addUserGroups(long pk, long[] userGroupPKs)
637         throws com.liferay.portal.SystemException;
638 
639     public void addUserGroups(long pk,
640         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
641         throws com.liferay.portal.SystemException;
642 
643     public void clearUserGroups(long pk)
644         throws com.liferay.portal.SystemException;
645 
646     public void removeUserGroup(long pk, long userGroupPK)
647         throws com.liferay.portal.SystemException;
648 
649     public void removeUserGroup(long pk,
650         com.liferay.portal.model.UserGroup userGroup)
651         throws com.liferay.portal.SystemException;
652 
653     public void removeUserGroups(long pk, long[] userGroupPKs)
654         throws com.liferay.portal.SystemException;
655 
656     public void removeUserGroups(long pk,
657         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
658         throws com.liferay.portal.SystemException;
659 
660     public void setUserGroups(long pk, long[] userGroupPKs)
661         throws com.liferay.portal.SystemException;
662 
663     public void setUserGroups(long pk,
664         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
665         throws com.liferay.portal.SystemException;
666 }