001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface GroupLocalService {
043
050 public com.liferay.portal.model.Group addGroup(
051 com.liferay.portal.model.Group group)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portal.model.Group createGroup(long groupId);
061
062
069 public void deleteGroup(long groupId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073
079 public void deleteGroup(com.liferay.portal.model.Group group)
080 throws com.liferay.portal.kernel.exception.SystemException;
081
082
089 @SuppressWarnings("rawtypes")
090 public java.util.List dynamicQuery(
091 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094
107 @SuppressWarnings("rawtypes")
108 public java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110 int end) throws com.liferay.portal.kernel.exception.SystemException;
111
112
126 @SuppressWarnings("rawtypes")
127 public java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end,
130 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131 throws com.liferay.portal.kernel.exception.SystemException;
132
133
140 public long dynamicQueryCount(
141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public com.liferay.portal.model.Group getGroup(long groupId)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException;
156
157
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.util.List<com.liferay.portal.model.Group> getGroups(int start,
171 int end) throws com.liferay.portal.kernel.exception.SystemException;
172
173
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public int getGroupsCount()
181 throws com.liferay.portal.kernel.exception.SystemException;
182
183
190 public com.liferay.portal.model.Group updateGroup(
191 com.liferay.portal.model.Group group)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194
202 public com.liferay.portal.model.Group updateGroup(
203 com.liferay.portal.model.Group group, boolean merge)
204 throws com.liferay.portal.kernel.exception.SystemException;
205
206 public com.liferay.portal.model.Group addGroup(long userId,
207 java.lang.String className, long classPK, java.lang.String name,
208 java.lang.String description, int type, java.lang.String friendlyURL,
209 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
210 throws com.liferay.portal.kernel.exception.PortalException,
211 com.liferay.portal.kernel.exception.SystemException;
212
213 public com.liferay.portal.model.Group addGroup(long userId,
214 java.lang.String className, long classPK, long liveGroupId,
215 java.lang.String name, java.lang.String description, int type,
216 java.lang.String friendlyURL, boolean active,
217 com.liferay.portal.service.ServiceContext serviceContext)
218 throws com.liferay.portal.kernel.exception.PortalException,
219 com.liferay.portal.kernel.exception.SystemException;
220
221 public void addRoleGroups(long roleId, long[] groupIds)
222 throws com.liferay.portal.kernel.exception.SystemException;
223
224 public void addUserGroups(long userId, long[] groupIds)
225 throws com.liferay.portal.kernel.exception.SystemException;
226
227 public void checkCompanyGroup(long companyId)
228 throws com.liferay.portal.kernel.exception.PortalException,
229 com.liferay.portal.kernel.exception.SystemException;
230
231 public void checkSystemGroups(long companyId)
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 com.liferay.portal.model.Group getCompanyGroup(long companyId)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException;
239
240 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241 public java.util.List<com.liferay.portal.model.Group> getCompanyGroups(
242 long companyId, int start, int end)
243 throws com.liferay.portal.kernel.exception.SystemException;
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public int getCompanyGroupsCount(long companyId)
247 throws com.liferay.portal.kernel.exception.SystemException;
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public com.liferay.portal.model.Group getFriendlyURLGroup(long companyId,
251 java.lang.String friendlyURL)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException;
254
255 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256 public com.liferay.portal.model.Group getGroup(long companyId,
257 java.lang.String name)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262 public java.util.List<com.liferay.portal.model.Group> getGroups(
263 long[] groupIds)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException;
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public com.liferay.portal.model.Group getLayoutGroup(long companyId,
269 long plid)
270 throws com.liferay.portal.kernel.exception.PortalException,
271 com.liferay.portal.kernel.exception.SystemException;
272
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public com.liferay.portal.model.Group getLayoutPrototypeGroup(
275 long companyId, long layoutPrototypeId)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public com.liferay.portal.model.Group getLayoutSetPrototypeGroup(
281 long companyId, long layoutSetPrototypeId)
282 throws com.liferay.portal.kernel.exception.PortalException,
283 com.liferay.portal.kernel.exception.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public java.util.List<com.liferay.portal.model.Group> getLiveGroups()
287 throws com.liferay.portal.kernel.exception.SystemException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public java.util.List<com.liferay.portal.model.Group> getNoLayoutsGroups(
291 java.lang.String className, boolean privateLayout, int start, int end)
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public com.liferay.portal.model.Group getOrganizationGroup(long companyId,
300 long organizationId)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
306 java.util.List<com.liferay.portal.model.Organization> organizations);
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public java.util.List<com.liferay.portal.model.Group> getOrganizationsRelatedGroups(
310 java.util.List<com.liferay.portal.model.Organization> organizations)
311 throws com.liferay.portal.kernel.exception.SystemException;
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public java.util.List<com.liferay.portal.model.Group> getRoleGroups(
315 long roleId) throws com.liferay.portal.kernel.exception.SystemException;
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public com.liferay.portal.model.Group getStagingGroup(long liveGroupId)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException;
321
322 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323 public com.liferay.portal.model.Group getUserGroup(long companyId,
324 long userId)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException;
327
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public com.liferay.portal.model.Group getUserGroupGroup(long companyId,
330 long userGroupId)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException;
333
334 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
335 public java.util.List<com.liferay.portal.model.Group> getUserGroups(
336 long userId)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException;
339
340 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341 public java.util.List<com.liferay.portal.model.Group> getUserGroups(
342 long userId, boolean inherit)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException;
345
346 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347 public java.util.List<com.liferay.portal.model.Group> getUserGroups(
348 long userId, int start, int end)
349 throws com.liferay.portal.kernel.exception.PortalException,
350 com.liferay.portal.kernel.exception.SystemException;
351
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public java.util.List<com.liferay.portal.model.Group> getUserGroups(
354 long userId, boolean inherit, int start, int end)
355 throws com.liferay.portal.kernel.exception.PortalException,
356 com.liferay.portal.kernel.exception.SystemException;
357
358 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359 public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
360 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
361 throws com.liferay.portal.kernel.exception.PortalException,
362 com.liferay.portal.kernel.exception.SystemException;
363
364 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365 public java.util.List<com.liferay.portal.model.Group> getUserGroupsRelatedGroups(
366 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
367 throws com.liferay.portal.kernel.exception.SystemException;
368
369 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370 public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
371 long userId, int start, int end)
372 throws com.liferay.portal.kernel.exception.PortalException,
373 com.liferay.portal.kernel.exception.SystemException;
374
375 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
376 public boolean hasRoleGroup(long roleId, long groupId)
377 throws com.liferay.portal.kernel.exception.SystemException;
378
379 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380 public boolean hasStagingGroup(long liveGroupId)
381 throws com.liferay.portal.kernel.exception.SystemException;
382
383 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384 public boolean hasUserGroup(long userId, long groupId)
385 throws com.liferay.portal.kernel.exception.SystemException;
386
387 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
388 public java.util.List<com.liferay.portal.model.Group> search(
389 long companyId, java.lang.String name, java.lang.String description,
390 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
391 int start, int end)
392 throws com.liferay.portal.kernel.exception.SystemException;
393
394 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
395 public java.util.List<com.liferay.portal.model.Group> search(
396 long companyId, java.lang.String name, java.lang.String description,
397 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
398 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
399 throws com.liferay.portal.kernel.exception.SystemException;
400
401 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402 public int searchCount(long companyId, java.lang.String name,
403 java.lang.String description,
404 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
405 throws com.liferay.portal.kernel.exception.SystemException;
406
407 public void setRoleGroups(long roleId, long[] groupIds)
408 throws com.liferay.portal.kernel.exception.SystemException;
409
410 public void unsetRoleGroups(long roleId, long[] groupIds)
411 throws com.liferay.portal.kernel.exception.SystemException;
412
413 public void unsetUserGroups(long userId, long[] groupIds)
414 throws com.liferay.portal.kernel.exception.SystemException;
415
416 public void updateAsset(long userId, com.liferay.portal.model.Group group,
417 long[] assetCategoryIds, java.lang.String[] assetTagNames)
418 throws com.liferay.portal.kernel.exception.PortalException,
419 com.liferay.portal.kernel.exception.SystemException;
420
421 public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
422 java.lang.String friendlyURL)
423 throws com.liferay.portal.kernel.exception.PortalException,
424 com.liferay.portal.kernel.exception.SystemException;
425
426 public com.liferay.portal.model.Group updateGroup(long groupId,
427 java.lang.String name, java.lang.String description, int type,
428 java.lang.String friendlyURL, boolean active,
429 com.liferay.portal.service.ServiceContext serviceContext)
430 throws com.liferay.portal.kernel.exception.PortalException,
431 com.liferay.portal.kernel.exception.SystemException;
432
433 public com.liferay.portal.model.Group updateGroup(long groupId,
434 java.lang.String typeSettings)
435 throws com.liferay.portal.kernel.exception.PortalException,
436 com.liferay.portal.kernel.exception.SystemException;
437
438 public com.liferay.portal.model.Group updateWorkflow(long groupId,
439 boolean workflowEnabled, int workflowStages,
440 java.lang.String workflowRoleNames)
441 throws com.liferay.portal.kernel.exception.PortalException,
442 com.liferay.portal.kernel.exception.SystemException;
443 }