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