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