1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
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.kernel.exception.SystemException;
53
54 public com.liferay.portal.model.Group createGroup(long groupId);
55
56 public void deleteGroup(long groupId)
57 throws com.liferay.portal.kernel.exception.PortalException,
58 com.liferay.portal.kernel.exception.SystemException;
59
60 public void deleteGroup(com.liferay.portal.model.Group group)
61 throws com.liferay.portal.kernel.exception.SystemException;
62
63 public java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.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.kernel.exception.SystemException;
70
71 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
72 public com.liferay.portal.model.Group getGroup(long groupId)
73 throws com.liferay.portal.kernel.exception.PortalException,
74 com.liferay.portal.kernel.exception.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.kernel.exception.SystemException;
79
80 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81 public int getGroupsCount()
82 throws com.liferay.portal.kernel.exception.SystemException;
83
84 public com.liferay.portal.model.Group updateGroup(
85 com.liferay.portal.model.Group group)
86 throws com.liferay.portal.kernel.exception.SystemException;
87
88 public com.liferay.portal.model.Group updateGroup(
89 com.liferay.portal.model.Group group, boolean merge)
90 throws com.liferay.portal.kernel.exception.SystemException;
91
92 public com.liferay.portal.model.Group addGroup(long userId,
93 java.lang.String className, long classPK, java.lang.String name,
94 java.lang.String description, int type, java.lang.String friendlyURL,
95 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
96 throws com.liferay.portal.kernel.exception.PortalException,
97 com.liferay.portal.kernel.exception.SystemException;
98
99 public com.liferay.portal.model.Group addGroup(long userId,
100 java.lang.String className, long classPK, long liveGroupId,
101 java.lang.String name, java.lang.String description, int type,
102 java.lang.String friendlyURL, boolean active,
103 com.liferay.portal.service.ServiceContext serviceContext)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException;
106
107 public void addRoleGroups(long roleId, long[] groupIds)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110 public void addUserGroups(long userId, long[] groupIds)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113 public void checkCompanyGroup(long companyId)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException;
116
117 public void checkSystemGroups(long companyId)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public com.liferay.portal.model.Group getCompanyGroup(long companyId)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.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.kernel.exception.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public int getCompanyGroupsCount(long companyId)
133 throws com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public com.liferay.portal.model.Group getLayoutPrototypeGroup(
161 long companyId, long layoutPrototypeId)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public com.liferay.portal.model.Group getLayoutSetPrototypeGroup(
167 long companyId, long layoutSetPrototypeId)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<com.liferay.portal.model.Group> getNoLayoutsGroups(
173 java.lang.String className, boolean privateLayout, int start, int end)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
178 throws com.liferay.portal.kernel.exception.SystemException;
179
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public com.liferay.portal.model.Group getOrganizationGroup(long companyId,
182 long organizationId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
188 java.util.List<com.liferay.portal.model.Organization> organizations);
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public java.util.List<com.liferay.portal.model.Group> getRoleGroups(
192 long roleId) throws com.liferay.portal.kernel.exception.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public com.liferay.portal.model.Group getStagingGroup(long liveGroupId)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public com.liferay.portal.model.Group getUserGroup(long companyId,
201 long userId)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public com.liferay.portal.model.Group getUserGroupGroup(long companyId,
207 long userGroupId)
208 throws com.liferay.portal.kernel.exception.PortalException,
209 com.liferay.portal.kernel.exception.SystemException;
210
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public java.util.List<com.liferay.portal.model.Group> getUserGroups(
213 long userId)
214 throws com.liferay.portal.kernel.exception.PortalException,
215 com.liferay.portal.kernel.exception.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)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException;
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public java.util.List<com.liferay.portal.model.Group> getUserGroups(
225 long userId, int start, int end)
226 throws com.liferay.portal.kernel.exception.PortalException,
227 com.liferay.portal.kernel.exception.SystemException;
228
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public java.util.List<com.liferay.portal.model.Group> getUserGroups(
231 long userId, boolean inherit, int start, int end)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException;
234
235 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236 public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
237 java.util.List<com.liferay.portal.model.UserGroup> userGroups);
238
239 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240 public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
241 long userId, int start, int end)
242 throws com.liferay.portal.kernel.exception.PortalException,
243 com.liferay.portal.kernel.exception.SystemException;
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public boolean hasRoleGroup(long roleId, long groupId)
247 throws com.liferay.portal.kernel.exception.SystemException;
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public boolean hasStagingGroup(long liveGroupId)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254 public boolean hasUserGroup(long userId, long groupId)
255 throws com.liferay.portal.kernel.exception.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public java.util.List<com.liferay.portal.model.Group> search(
259 long companyId, java.lang.String name, java.lang.String description,
260 java.util.LinkedHashMap<String, Object> params, int start, int end)
261 throws com.liferay.portal.kernel.exception.SystemException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public java.util.List<com.liferay.portal.model.Group> search(
265 long companyId, java.lang.String name, java.lang.String description,
266 java.util.LinkedHashMap<String, Object> params, int start, int end,
267 com.liferay.portal.kernel.util.OrderByComparator obc)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public int searchCount(long companyId, java.lang.String name,
272 java.lang.String description,
273 java.util.LinkedHashMap<String, Object> params)
274 throws com.liferay.portal.kernel.exception.SystemException;
275
276 public void setRoleGroups(long roleId, long[] groupIds)
277 throws com.liferay.portal.kernel.exception.SystemException;
278
279 public void unsetRoleGroups(long roleId, long[] groupIds)
280 throws com.liferay.portal.kernel.exception.SystemException;
281
282 public void unsetUserGroups(long userId, long[] groupIds)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285 public void updateAsset(long userId, com.liferay.portal.model.Group group,
286 long[] assetCategoryIds, java.lang.String[] assetTagNames)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException;
289
290 public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
291 java.lang.String friendlyURL)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException;
294
295 public com.liferay.portal.model.Group updateGroup(long groupId,
296 java.lang.String name, java.lang.String description, int type,
297 java.lang.String friendlyURL, boolean active,
298 com.liferay.portal.service.ServiceContext serviceContext)
299 throws com.liferay.portal.kernel.exception.PortalException,
300 com.liferay.portal.kernel.exception.SystemException;
301
302 public com.liferay.portal.model.Group updateGroup(long groupId,
303 java.lang.String typeSettings)
304 throws com.liferay.portal.kernel.exception.PortalException,
305 com.liferay.portal.kernel.exception.SystemException;
306
307 public com.liferay.portal.model.Group updateWorkflow(long groupId,
308 boolean workflowEnabled, int workflowStages,
309 java.lang.String workflowRoleNames)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException;
312 }