001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class GroupLocalServiceUtil {
033 public static com.liferay.portal.model.Group addGroup(
034 com.liferay.portal.model.Group group)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addGroup(group);
037 }
038
039 public static com.liferay.portal.model.Group createGroup(long groupId) {
040 return getService().createGroup(groupId);
041 }
042
043 public static void deleteGroup(long groupId)
044 throws com.liferay.portal.kernel.exception.PortalException,
045 com.liferay.portal.kernel.exception.SystemException {
046 getService().deleteGroup(groupId);
047 }
048
049 public static void deleteGroup(com.liferay.portal.model.Group group)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 getService().deleteGroup(group);
052 }
053
054 @SuppressWarnings("unchecked")
055 public static java.util.List dynamicQuery(
056 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
057 throws com.liferay.portal.kernel.exception.SystemException {
058 return getService().dynamicQuery(dynamicQuery);
059 }
060
061 @SuppressWarnings("unchecked")
062 public static java.util.List dynamicQuery(
063 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064 int end) throws com.liferay.portal.kernel.exception.SystemException {
065 return getService().dynamicQuery(dynamicQuery, start, end);
066 }
067
068 @SuppressWarnings("unchecked")
069 public static java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException {
074 return getService()
075 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
076 }
077
078 public static long dynamicQueryCount(
079 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
080 throws com.liferay.portal.kernel.exception.SystemException {
081 return getService().dynamicQueryCount(dynamicQuery);
082 }
083
084 public static com.liferay.portal.model.Group getGroup(long groupId)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException {
087 return getService().getGroup(groupId);
088 }
089
090 public static java.util.List<com.liferay.portal.model.Group> getGroups(
091 int start, int end)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().getGroups(start, end);
094 }
095
096 public static int getGroupsCount()
097 throws com.liferay.portal.kernel.exception.SystemException {
098 return getService().getGroupsCount();
099 }
100
101 public static com.liferay.portal.model.Group updateGroup(
102 com.liferay.portal.model.Group group)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getService().updateGroup(group);
105 }
106
107 public static com.liferay.portal.model.Group updateGroup(
108 com.liferay.portal.model.Group group, boolean merge)
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return getService().updateGroup(group, merge);
111 }
112
113 public static com.liferay.portal.model.Group addGroup(long userId,
114 java.lang.String className, long classPK, java.lang.String name,
115 java.lang.String description, int type, java.lang.String friendlyURL,
116 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException {
119 return getService()
120 .addGroup(userId, className, classPK, name, description,
121 type, friendlyURL, active, serviceContext);
122 }
123
124 public static com.liferay.portal.model.Group addGroup(long userId,
125 java.lang.String className, long classPK, long liveGroupId,
126 java.lang.String name, java.lang.String description, int type,
127 java.lang.String friendlyURL, boolean active,
128 com.liferay.portal.service.ServiceContext serviceContext)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException {
131 return getService()
132 .addGroup(userId, className, classPK, liveGroupId, name,
133 description, type, friendlyURL, active, serviceContext);
134 }
135
136 public static void addRoleGroups(long roleId, long[] groupIds)
137 throws com.liferay.portal.kernel.exception.SystemException {
138 getService().addRoleGroups(roleId, groupIds);
139 }
140
141 public static void addUserGroups(long userId, long[] groupIds)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 getService().addUserGroups(userId, groupIds);
144 }
145
146 public static void checkCompanyGroup(long companyId)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException {
149 getService().checkCompanyGroup(companyId);
150 }
151
152 public static void checkSystemGroups(long companyId)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException {
155 getService().checkSystemGroups(companyId);
156 }
157
158 public static com.liferay.portal.model.Group getCompanyGroup(long companyId)
159 throws com.liferay.portal.kernel.exception.PortalException,
160 com.liferay.portal.kernel.exception.SystemException {
161 return getService().getCompanyGroup(companyId);
162 }
163
164 public static java.util.List<com.liferay.portal.model.Group> getCompanyGroups(
165 long companyId, int start, int end)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return getService().getCompanyGroups(companyId, start, end);
168 }
169
170 public static int getCompanyGroupsCount(long companyId)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getService().getCompanyGroupsCount(companyId);
173 }
174
175 public static com.liferay.portal.model.Group getFriendlyURLGroup(
176 long companyId, java.lang.String friendlyURL)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException {
179 return getService().getFriendlyURLGroup(companyId, friendlyURL);
180 }
181
182 public static com.liferay.portal.model.Group getGroup(long companyId,
183 java.lang.String name)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException {
186 return getService().getGroup(companyId, name);
187 }
188
189 public static java.util.List<com.liferay.portal.model.Group> getGroups(
190 long[] groupIds)
191 throws com.liferay.portal.kernel.exception.PortalException,
192 com.liferay.portal.kernel.exception.SystemException {
193 return getService().getGroups(groupIds);
194 }
195
196 public static com.liferay.portal.model.Group getLayoutGroup(
197 long companyId, long plid)
198 throws com.liferay.portal.kernel.exception.PortalException,
199 com.liferay.portal.kernel.exception.SystemException {
200 return getService().getLayoutGroup(companyId, plid);
201 }
202
203 public static com.liferay.portal.model.Group getLayoutPrototypeGroup(
204 long companyId, long layoutPrototypeId)
205 throws com.liferay.portal.kernel.exception.PortalException,
206 com.liferay.portal.kernel.exception.SystemException {
207 return getService().getLayoutPrototypeGroup(companyId, layoutPrototypeId);
208 }
209
210 public static com.liferay.portal.model.Group getLayoutSetPrototypeGroup(
211 long companyId, long layoutSetPrototypeId)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException {
214 return getService()
215 .getLayoutSetPrototypeGroup(companyId, layoutSetPrototypeId);
216 }
217
218 public static java.util.List<com.liferay.portal.model.Group> getLiveGroups()
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getService().getLiveGroups();
221 }
222
223 public static java.util.List<com.liferay.portal.model.Group> getNoLayoutsGroups(
224 java.lang.String className, boolean privateLayout, int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService()
227 .getNoLayoutsGroups(className, privateLayout, start, end);
228 }
229
230 public static java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return getService().getNullFriendlyURLGroups();
233 }
234
235 public static com.liferay.portal.model.Group getOrganizationGroup(
236 long companyId, long organizationId)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException {
239 return getService().getOrganizationGroup(companyId, organizationId);
240 }
241
242 public static java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
243 java.util.List<com.liferay.portal.model.Organization> organizations) {
244 return getService().getOrganizationsGroups(organizations);
245 }
246
247 public static java.util.List<com.liferay.portal.model.Group> getOrganizationsRelatedGroups(
248 java.util.List<com.liferay.portal.model.Organization> organizations)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().getOrganizationsRelatedGroups(organizations);
251 }
252
253 public static java.util.List<com.liferay.portal.model.Group> getRoleGroups(
254 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
255 return getService().getRoleGroups(roleId);
256 }
257
258 public static com.liferay.portal.model.Group getStagingGroup(
259 long liveGroupId)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException {
262 return getService().getStagingGroup(liveGroupId);
263 }
264
265 public static com.liferay.portal.model.Group getUserGroup(long companyId,
266 long userId)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException {
269 return getService().getUserGroup(companyId, userId);
270 }
271
272 public static com.liferay.portal.model.Group getUserGroupGroup(
273 long companyId, long userGroupId)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException {
276 return getService().getUserGroupGroup(companyId, userGroupId);
277 }
278
279 public static java.util.List<com.liferay.portal.model.Group> getUserGroups(
280 long userId)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException {
283 return getService().getUserGroups(userId);
284 }
285
286 public static java.util.List<com.liferay.portal.model.Group> getUserGroups(
287 long userId, boolean inherit)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException {
290 return getService().getUserGroups(userId, inherit);
291 }
292
293 public static java.util.List<com.liferay.portal.model.Group> getUserGroups(
294 long userId, int start, int end)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException {
297 return getService().getUserGroups(userId, start, end);
298 }
299
300 public static java.util.List<com.liferay.portal.model.Group> getUserGroups(
301 long userId, boolean inherit, int start, int end)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException {
304 return getService().getUserGroups(userId, inherit, start, end);
305 }
306
307 public static java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
308 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 return getService().getUserGroupsGroups(userGroups);
312 }
313
314 public static java.util.List<com.liferay.portal.model.Group> getUserGroupsRelatedGroups(
315 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return getService().getUserGroupsRelatedGroups(userGroups);
318 }
319
320 public static java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
321 long userId, int start, int end)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException {
324 return getService().getUserOrganizationsGroups(userId, start, end);
325 }
326
327 public static boolean hasRoleGroup(long roleId, long groupId)
328 throws com.liferay.portal.kernel.exception.SystemException {
329 return getService().hasRoleGroup(roleId, groupId);
330 }
331
332 public static boolean hasStagingGroup(long liveGroupId)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getService().hasStagingGroup(liveGroupId);
335 }
336
337 public static boolean hasUserGroup(long userId, long groupId)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 return getService().hasUserGroup(userId, groupId);
340 }
341
342 public static java.util.List<com.liferay.portal.model.Group> search(
343 long companyId, java.lang.String name, java.lang.String description,
344 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
345 int start, int end)
346 throws com.liferay.portal.kernel.exception.SystemException {
347 return getService()
348 .search(companyId, name, description, params, start, end);
349 }
350
351 public static java.util.List<com.liferay.portal.model.Group> search(
352 long companyId, java.lang.String name, java.lang.String description,
353 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
354 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
355 throws com.liferay.portal.kernel.exception.SystemException {
356 return getService()
357 .search(companyId, name, description, params, start, end, obc);
358 }
359
360 public static int searchCount(long companyId, java.lang.String name,
361 java.lang.String description,
362 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
363 throws com.liferay.portal.kernel.exception.SystemException {
364 return getService().searchCount(companyId, name, description, params);
365 }
366
367 public static void setRoleGroups(long roleId, long[] groupIds)
368 throws com.liferay.portal.kernel.exception.SystemException {
369 getService().setRoleGroups(roleId, groupIds);
370 }
371
372 public static void unsetRoleGroups(long roleId, long[] groupIds)
373 throws com.liferay.portal.kernel.exception.SystemException {
374 getService().unsetRoleGroups(roleId, groupIds);
375 }
376
377 public static void unsetUserGroups(long userId, long[] groupIds)
378 throws com.liferay.portal.kernel.exception.SystemException {
379 getService().unsetUserGroups(userId, groupIds);
380 }
381
382 public static void updateAsset(long userId,
383 com.liferay.portal.model.Group group, long[] assetCategoryIds,
384 java.lang.String[] assetTagNames)
385 throws com.liferay.portal.kernel.exception.PortalException,
386 com.liferay.portal.kernel.exception.SystemException {
387 getService().updateAsset(userId, group, assetCategoryIds, assetTagNames);
388 }
389
390 public static com.liferay.portal.model.Group updateFriendlyURL(
391 long groupId, java.lang.String friendlyURL)
392 throws com.liferay.portal.kernel.exception.PortalException,
393 com.liferay.portal.kernel.exception.SystemException {
394 return getService().updateFriendlyURL(groupId, friendlyURL);
395 }
396
397 public static com.liferay.portal.model.Group updateGroup(long groupId,
398 java.lang.String name, java.lang.String description, int type,
399 java.lang.String friendlyURL, boolean active,
400 com.liferay.portal.service.ServiceContext serviceContext)
401 throws com.liferay.portal.kernel.exception.PortalException,
402 com.liferay.portal.kernel.exception.SystemException {
403 return getService()
404 .updateGroup(groupId, name, description, type, friendlyURL,
405 active, serviceContext);
406 }
407
408 public static com.liferay.portal.model.Group updateGroup(long groupId,
409 java.lang.String typeSettings)
410 throws com.liferay.portal.kernel.exception.PortalException,
411 com.liferay.portal.kernel.exception.SystemException {
412 return getService().updateGroup(groupId, typeSettings);
413 }
414
415 public static com.liferay.portal.model.Group updateWorkflow(long groupId,
416 boolean workflowEnabled, int workflowStages,
417 java.lang.String workflowRoleNames)
418 throws com.liferay.portal.kernel.exception.PortalException,
419 com.liferay.portal.kernel.exception.SystemException {
420 return getService()
421 .updateWorkflow(groupId, workflowEnabled, workflowStages,
422 workflowRoleNames);
423 }
424
425 public static GroupLocalService getService() {
426 if (_service == null) {
427 _service = (GroupLocalService)PortalBeanLocatorUtil.locate(GroupLocalService.class.getName());
428 }
429
430 return _service;
431 }
432
433 public void setService(GroupLocalService service) {
434 _service = service;
435 }
436
437 private static GroupLocalService _service;
438 }