1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
22  
23  /**
24   * <a href="UserGroupRoleLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portal.service.impl.UserGroupRoleLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       UserGroupRoleLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface UserGroupRoleLocalService {
50      public com.liferay.portal.model.UserGroupRole addUserGroupRole(
51          com.liferay.portal.model.UserGroupRole userGroupRole)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portal.model.UserGroupRole createUserGroupRole(
55          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK);
56  
57      public void deleteUserGroupRole(
58          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException;
61  
62      public void deleteUserGroupRole(
63          com.liferay.portal.model.UserGroupRole userGroupRole)
64          throws com.liferay.portal.SystemException;
65  
66      @SuppressWarnings("rawtypes")
67      public java.util.List dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
69          throws com.liferay.portal.SystemException;
70  
71      @SuppressWarnings("rawtypes")
72      public java.util.List dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.SystemException;
75  
76      @SuppressWarnings("rawtypes")
77      public java.util.List dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.SystemException;
82  
83      public int dynamicQueryCount(
84          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
85          throws com.liferay.portal.SystemException;
86  
87      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88      public com.liferay.portal.model.UserGroupRole getUserGroupRole(
89          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
90          throws com.liferay.portal.PortalException,
91              com.liferay.portal.SystemException;
92  
93      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94      public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
95          int start, int end) throws com.liferay.portal.SystemException;
96  
97      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98      public int getUserGroupRolesCount()
99          throws com.liferay.portal.SystemException;
100 
101     public com.liferay.portal.model.UserGroupRole updateUserGroupRole(
102         com.liferay.portal.model.UserGroupRole userGroupRole)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portal.model.UserGroupRole updateUserGroupRole(
106         com.liferay.portal.model.UserGroupRole userGroupRole, boolean merge)
107         throws com.liferay.portal.SystemException;
108 
109     public void addUserGroupRoles(long userId, long groupId, long[] roleIds)
110         throws com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException;
112 
113     public void addUserGroupRoles(long[] userIds, long groupId, long roleId)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException;
116 
117     public void deleteUserGroupRoles(long userId, long groupId, long[] roleIds)
118         throws com.liferay.portal.SystemException;
119 
120     public void deleteUserGroupRoles(long userId, long[] groupIds)
121         throws com.liferay.portal.SystemException;
122 
123     public void deleteUserGroupRoles(long[] userIds, long groupId)
124         throws com.liferay.portal.SystemException;
125 
126     public void deleteUserGroupRoles(long[] userIds, long groupId, long roleId)
127         throws com.liferay.portal.SystemException;
128 
129     public void deleteUserGroupRolesByGroupId(long groupId)
130         throws com.liferay.portal.SystemException;
131 
132     public void deleteUserGroupRolesByRoleId(long roleId)
133         throws com.liferay.portal.SystemException;
134 
135     public void deleteUserGroupRolesByUserId(long userId)
136         throws com.liferay.portal.SystemException;
137 
138     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139     public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
140         long userId) throws com.liferay.portal.SystemException;
141 
142     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143     public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
144         long userId, long groupId) throws com.liferay.portal.SystemException;
145 
146     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147     public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
148         long groupId, long roleId) throws com.liferay.portal.SystemException;
149 
150     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151     public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
152         long userId, long groupId) throws com.liferay.portal.SystemException;
153 
154     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155     public boolean hasUserGroupRole(long userId, long groupId, long roleId)
156         throws com.liferay.portal.SystemException;
157 
158     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159     public boolean hasUserGroupRole(long userId, long groupId, long roleId,
160         boolean inherit) throws com.liferay.portal.SystemException;
161 
162     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163     public boolean hasUserGroupRole(long userId, long groupId,
164         java.lang.String roleName)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException;
167 
168     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169     public boolean hasUserGroupRole(long userId, long groupId,
170         java.lang.String roleName, boolean inherit)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException;
173 }