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="GroupLocalService.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.GroupLocalServiceImpl}}.
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       GroupLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface GroupLocalService {
50      public com.liferay.portal.model.Group addGroup(
51          com.liferay.portal.model.Group group)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portal.model.Group createGroup(long groupId);
55  
56      public void deleteGroup(long groupId)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException;
59  
60      public void deleteGroup(com.liferay.portal.model.Group group)
61          throws com.liferay.portal.SystemException;
62  
63      @SuppressWarnings("rawtypes")
64      public java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException;
67  
68      @SuppressWarnings("rawtypes")
69      public java.util.List dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException;
72  
73      @SuppressWarnings("rawtypes")
74      public java.util.List dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.SystemException;
79  
80      public int dynamicQueryCount(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
82          throws com.liferay.portal.SystemException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public com.liferay.portal.model.Group getGroup(long groupId)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portal.model.Group> getGroups(int start,
91          int end) throws com.liferay.portal.SystemException;
92  
93      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94      public int getGroupsCount() throws com.liferay.portal.SystemException;
95  
96      public com.liferay.portal.model.Group updateGroup(
97          com.liferay.portal.model.Group group)
98          throws com.liferay.portal.SystemException;
99  
100     public com.liferay.portal.model.Group updateGroup(
101         com.liferay.portal.model.Group group, boolean merge)
102         throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portal.model.Group addGroup(long userId,
105         java.lang.String className, long classPK, java.lang.String name,
106         java.lang.String description, int type, java.lang.String friendlyURL,
107         boolean active, com.liferay.portal.service.ServiceContext serviceContext)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException;
110 
111     public com.liferay.portal.model.Group addGroup(long userId,
112         java.lang.String className, long classPK, long liveGroupId,
113         java.lang.String name, java.lang.String description, int type,
114         java.lang.String friendlyURL, boolean active,
115         com.liferay.portal.service.ServiceContext serviceContext)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException;
118 
119     public void addRoleGroups(long roleId, long[] groupIds)
120         throws com.liferay.portal.SystemException;
121 
122     public void addUserGroups(long userId, long[] groupIds)
123         throws com.liferay.portal.SystemException;
124 
125     public void checkSystemGroups(long companyId)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException;
128 
129     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130     public java.util.List<com.liferay.portal.model.Group> getCompanyGroups(
131         long companyId, int start, int end)
132         throws com.liferay.portal.SystemException;
133 
134     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135     public int getCompanyGroupsCount(long companyId)
136         throws com.liferay.portal.SystemException;
137 
138     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139     public com.liferay.portal.model.Group getFriendlyURLGroup(long companyId,
140         java.lang.String friendlyURL)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 
144     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145     public com.liferay.portal.model.Group getGroup(long companyId,
146         java.lang.String name)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151     public java.util.List<com.liferay.portal.model.Group> getGroups(
152         long[] groupIds)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException;
155 
156     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157     public com.liferay.portal.model.Group getLayoutGroup(long companyId,
158         long plid)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException;
161 
162     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163     public java.util.List<com.liferay.portal.model.Group> getNoLayoutsGroups(
164         java.lang.String className, boolean privateLayout, int start, int end)
165         throws com.liferay.portal.SystemException;
166 
167     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168     public java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
169         throws com.liferay.portal.SystemException;
170 
171     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172     public com.liferay.portal.model.Group getOrganizationGroup(long companyId,
173         long organizationId)
174         throws com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException;
176 
177     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178     public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
179         java.util.List<com.liferay.portal.model.Organization> organizations);
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public java.util.List<com.liferay.portal.model.Group> getOrganizationsRelatedGroups(
183         java.util.List<com.liferay.portal.model.Organization> organizations)
184         throws com.liferay.portal.SystemException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public java.util.List<com.liferay.portal.model.Group> getRoleGroups(
188         long roleId) throws com.liferay.portal.SystemException;
189 
190     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191     public com.liferay.portal.model.Group getStagingGroup(long liveGroupId)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException;
194 
195     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196     public com.liferay.portal.model.Group getUserGroup(long companyId,
197         long userId)
198         throws com.liferay.portal.PortalException,
199             com.liferay.portal.SystemException;
200 
201     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202     public com.liferay.portal.model.Group getUserGroupGroup(long companyId,
203         long userGroupId)
204         throws com.liferay.portal.PortalException,
205             com.liferay.portal.SystemException;
206 
207     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208     public java.util.List<com.liferay.portal.model.Group> getUserGroups(
209         long userId)
210         throws com.liferay.portal.PortalException,
211             com.liferay.portal.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public java.util.List<com.liferay.portal.model.Group> getUserGroups(
215         long userId, boolean inherit)
216         throws com.liferay.portal.PortalException,
217             com.liferay.portal.SystemException;
218 
219     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220     public java.util.List<com.liferay.portal.model.Group> getUserGroups(
221         long userId, int start, int end)
222         throws com.liferay.portal.PortalException,
223             com.liferay.portal.SystemException;
224 
225     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226     public java.util.List<com.liferay.portal.model.Group> getUserGroups(
227         long userId, boolean inherit, int start, int end)
228         throws com.liferay.portal.PortalException,
229             com.liferay.portal.SystemException;
230 
231     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232     public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
233         java.util.List<com.liferay.portal.model.UserGroup> userGroups);
234 
235     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236     public java.util.List<com.liferay.portal.model.Group> getUserGroupsRelatedGroups(
237         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
238         throws com.liferay.portal.SystemException;
239 
240     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241     public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
242         long userId, int start, int end)
243         throws com.liferay.portal.PortalException,
244             com.liferay.portal.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public boolean hasRoleGroup(long roleId, long groupId)
248         throws com.liferay.portal.SystemException;
249 
250     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251     public boolean hasStagingGroup(long liveGroupId)
252         throws com.liferay.portal.SystemException;
253 
254     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255     public boolean hasUserGroup(long userId, long groupId)
256         throws com.liferay.portal.SystemException;
257 
258     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259     public java.util.List<com.liferay.portal.model.Group> search(
260         long companyId, java.lang.String name, java.lang.String description,
261         java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
262         int start, int end) throws com.liferay.portal.SystemException;
263 
264     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265     public java.util.List<com.liferay.portal.model.Group> search(
266         long companyId, java.lang.String name, java.lang.String description,
267         java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
268         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
269         throws com.liferay.portal.SystemException;
270 
271     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272     public int searchCount(long companyId, java.lang.String name,
273         java.lang.String description,
274         java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
275         throws com.liferay.portal.SystemException;
276 
277     public void setRoleGroups(long roleId, long[] groupIds)
278         throws com.liferay.portal.SystemException;
279 
280     public void unsetRoleGroups(long roleId, long[] groupIds)
281         throws com.liferay.portal.SystemException;
282 
283     public void unsetUserGroups(long userId, long[] groupIds)
284         throws com.liferay.portal.SystemException;
285 
286     public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
287         java.lang.String friendlyURL)
288         throws com.liferay.portal.PortalException,
289             com.liferay.portal.SystemException;
290 
291     public com.liferay.portal.model.Group updateGroup(long groupId,
292         java.lang.String name, java.lang.String description, int type,
293         java.lang.String friendlyURL, boolean active,
294         com.liferay.portal.service.ServiceContext serviceContext)
295         throws com.liferay.portal.PortalException,
296             com.liferay.portal.SystemException;
297 
298     public com.liferay.portal.model.Group updateGroup(long groupId,
299         java.lang.String typeSettings)
300         throws com.liferay.portal.PortalException,
301             com.liferay.portal.SystemException;
302 
303     public void updateTagsAsset(long userId,
304         com.liferay.portal.model.Group group,
305         java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
306         throws com.liferay.portal.PortalException,
307             com.liferay.portal.SystemException;
308 
309     public com.liferay.portal.model.Group updateWorkflow(long groupId,
310         boolean workflowEnabled, int workflowStages,
311         java.lang.String workflowRoleNames)
312         throws com.liferay.portal.PortalException,
313             com.liferay.portal.SystemException;
314 }