1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class GroupLocalServiceUtil {
40 public static com.liferay.portal.model.Group addGroup(
41 com.liferay.portal.model.Group group)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addGroup(group);
44 }
45
46 public static com.liferay.portal.model.Group createGroup(long groupId) {
47 return getService().createGroup(groupId);
48 }
49
50 public static void deleteGroup(long groupId)
51 throws com.liferay.portal.kernel.exception.PortalException,
52 com.liferay.portal.kernel.exception.SystemException {
53 getService().deleteGroup(groupId);
54 }
55
56 public static void deleteGroup(com.liferay.portal.model.Group group)
57 throws com.liferay.portal.kernel.exception.SystemException {
58 getService().deleteGroup(group);
59 }
60
61 public static java.util.List<Object> dynamicQuery(
62 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
63 throws com.liferay.portal.kernel.exception.SystemException {
64 return getService().dynamicQuery(dynamicQuery);
65 }
66
67 public static 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 return getService().dynamicQuery(dynamicQuery, start, end);
71 }
72
73 public static java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException {
78 return getService()
79 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
80 }
81
82 public static int dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.kernel.exception.SystemException {
85 return getService().dynamicQueryCount(dynamicQuery);
86 }
87
88 public static com.liferay.portal.model.Group getGroup(long groupId)
89 throws com.liferay.portal.kernel.exception.PortalException,
90 com.liferay.portal.kernel.exception.SystemException {
91 return getService().getGroup(groupId);
92 }
93
94 public static java.util.List<com.liferay.portal.model.Group> getGroups(
95 int start, int end)
96 throws com.liferay.portal.kernel.exception.SystemException {
97 return getService().getGroups(start, end);
98 }
99
100 public static int getGroupsCount()
101 throws com.liferay.portal.kernel.exception.SystemException {
102 return getService().getGroupsCount();
103 }
104
105 public static com.liferay.portal.model.Group updateGroup(
106 com.liferay.portal.model.Group group)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().updateGroup(group);
109 }
110
111 public static com.liferay.portal.model.Group updateGroup(
112 com.liferay.portal.model.Group group, boolean merge)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateGroup(group, merge);
115 }
116
117 public static com.liferay.portal.model.Group addGroup(long userId,
118 java.lang.String className, long classPK, java.lang.String name,
119 java.lang.String description, int type, java.lang.String friendlyURL,
120 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 return getService()
124 .addGroup(userId, className, classPK, name, description,
125 type, friendlyURL, active, serviceContext);
126 }
127
128 public static com.liferay.portal.model.Group addGroup(long userId,
129 java.lang.String className, long classPK, long liveGroupId,
130 java.lang.String name, java.lang.String description, int type,
131 java.lang.String friendlyURL, boolean active,
132 com.liferay.portal.service.ServiceContext serviceContext)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException {
135 return getService()
136 .addGroup(userId, className, classPK, liveGroupId, name,
137 description, type, friendlyURL, active, serviceContext);
138 }
139
140 public static void addRoleGroups(long roleId, long[] groupIds)
141 throws com.liferay.portal.kernel.exception.SystemException {
142 getService().addRoleGroups(roleId, groupIds);
143 }
144
145 public static void addUserGroups(long userId, long[] groupIds)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 getService().addUserGroups(userId, groupIds);
148 }
149
150 public static void checkCompanyGroup(long companyId)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException {
153 getService().checkCompanyGroup(companyId);
154 }
155
156 public static void checkSystemGroups(long companyId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException {
159 getService().checkSystemGroups(companyId);
160 }
161
162 public static com.liferay.portal.model.Group getCompanyGroup(long companyId)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException {
165 return getService().getCompanyGroup(companyId);
166 }
167
168 public static java.util.List<com.liferay.portal.model.Group> getCompanyGroups(
169 long companyId, int start, int end)
170 throws com.liferay.portal.kernel.exception.SystemException {
171 return getService().getCompanyGroups(companyId, start, end);
172 }
173
174 public static int getCompanyGroupsCount(long companyId)
175 throws com.liferay.portal.kernel.exception.SystemException {
176 return getService().getCompanyGroupsCount(companyId);
177 }
178
179 public static com.liferay.portal.model.Group getFriendlyURLGroup(
180 long companyId, java.lang.String friendlyURL)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException {
183 return getService().getFriendlyURLGroup(companyId, friendlyURL);
184 }
185
186 public static com.liferay.portal.model.Group getGroup(long companyId,
187 java.lang.String name)
188 throws com.liferay.portal.kernel.exception.PortalException,
189 com.liferay.portal.kernel.exception.SystemException {
190 return getService().getGroup(companyId, name);
191 }
192
193 public static java.util.List<com.liferay.portal.model.Group> getGroups(
194 long[] groupIds)
195 throws com.liferay.portal.kernel.exception.PortalException,
196 com.liferay.portal.kernel.exception.SystemException {
197 return getService().getGroups(groupIds);
198 }
199
200 public static com.liferay.portal.model.Group getLayoutGroup(
201 long companyId, long plid)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 return getService().getLayoutGroup(companyId, plid);
205 }
206
207 public static com.liferay.portal.model.Group getLayoutPrototypeGroup(
208 long companyId, long layoutPrototypeId)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException {
211 return getService().getLayoutPrototypeGroup(companyId, layoutPrototypeId);
212 }
213
214 public static com.liferay.portal.model.Group getLayoutSetPrototypeGroup(
215 long companyId, long layoutSetPrototypeId)
216 throws com.liferay.portal.kernel.exception.PortalException,
217 com.liferay.portal.kernel.exception.SystemException {
218 return getService()
219 .getLayoutSetPrototypeGroup(companyId, layoutSetPrototypeId);
220 }
221
222 public static java.util.List<com.liferay.portal.model.Group> getNoLayoutsGroups(
223 java.lang.String className, boolean privateLayout, int start, int end)
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return getService()
226 .getNoLayoutsGroups(className, privateLayout, start, end);
227 }
228
229 public static java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
230 throws com.liferay.portal.kernel.exception.SystemException {
231 return getService().getNullFriendlyURLGroups();
232 }
233
234 public static com.liferay.portal.model.Group getOrganizationGroup(
235 long companyId, long organizationId)
236 throws com.liferay.portal.kernel.exception.PortalException,
237 com.liferay.portal.kernel.exception.SystemException {
238 return getService().getOrganizationGroup(companyId, organizationId);
239 }
240
241 public static java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
242 java.util.List<com.liferay.portal.model.Organization> organizations) {
243 return getService().getOrganizationsGroups(organizations);
244 }
245
246 public static java.util.List<com.liferay.portal.model.Group> getRoleGroups(
247 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
248 return getService().getRoleGroups(roleId);
249 }
250
251 public static com.liferay.portal.model.Group getStagingGroup(
252 long liveGroupId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException {
255 return getService().getStagingGroup(liveGroupId);
256 }
257
258 public static com.liferay.portal.model.Group getUserGroup(long companyId,
259 long userId)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException {
262 return getService().getUserGroup(companyId, userId);
263 }
264
265 public static com.liferay.portal.model.Group getUserGroupGroup(
266 long companyId, long userGroupId)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException {
269 return getService().getUserGroupGroup(companyId, userGroupId);
270 }
271
272 public static java.util.List<com.liferay.portal.model.Group> getUserGroups(
273 long userId)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException {
276 return getService().getUserGroups(userId);
277 }
278
279 public static java.util.List<com.liferay.portal.model.Group> getUserGroups(
280 long userId, boolean inherit)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException {
283 return getService().getUserGroups(userId, inherit);
284 }
285
286 public static java.util.List<com.liferay.portal.model.Group> getUserGroups(
287 long userId, int start, int end)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException {
290 return getService().getUserGroups(userId, start, end);
291 }
292
293 public static java.util.List<com.liferay.portal.model.Group> getUserGroups(
294 long userId, boolean inherit, int start, int end)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException {
297 return getService().getUserGroups(userId, inherit, start, end);
298 }
299
300 public static java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
301 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException {
304 return getService().getUserGroupsGroups(userGroups);
305 }
306
307 public static java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
308 long userId, int start, int end)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 return getService().getUserOrganizationsGroups(userId, start, end);
312 }
313
314 public static boolean hasRoleGroup(long roleId, long groupId)
315 throws com.liferay.portal.kernel.exception.SystemException {
316 return getService().hasRoleGroup(roleId, groupId);
317 }
318
319 public static boolean hasStagingGroup(long liveGroupId)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 return getService().hasStagingGroup(liveGroupId);
322 }
323
324 public static boolean hasUserGroup(long userId, long groupId)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 return getService().hasUserGroup(userId, groupId);
327 }
328
329 public static java.util.List<com.liferay.portal.model.Group> search(
330 long companyId, java.lang.String name, java.lang.String description,
331 java.util.LinkedHashMap<String, Object> params, int start, int end)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 return getService()
334 .search(companyId, name, description, params, start, end);
335 }
336
337 public static java.util.List<com.liferay.portal.model.Group> search(
338 long companyId, java.lang.String name, java.lang.String description,
339 java.util.LinkedHashMap<String, Object> params, int start, int end,
340 com.liferay.portal.kernel.util.OrderByComparator obc)
341 throws com.liferay.portal.kernel.exception.SystemException {
342 return getService()
343 .search(companyId, name, description, params, start, end, obc);
344 }
345
346 public static int searchCount(long companyId, java.lang.String name,
347 java.lang.String description,
348 java.util.LinkedHashMap<String, Object> params)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 return getService().searchCount(companyId, name, description, params);
351 }
352
353 public static void setRoleGroups(long roleId, long[] groupIds)
354 throws com.liferay.portal.kernel.exception.SystemException {
355 getService().setRoleGroups(roleId, groupIds);
356 }
357
358 public static void unsetRoleGroups(long roleId, long[] groupIds)
359 throws com.liferay.portal.kernel.exception.SystemException {
360 getService().unsetRoleGroups(roleId, groupIds);
361 }
362
363 public static void unsetUserGroups(long userId, long[] groupIds)
364 throws com.liferay.portal.kernel.exception.SystemException {
365 getService().unsetUserGroups(userId, groupIds);
366 }
367
368 public static void updateAsset(long userId,
369 com.liferay.portal.model.Group group, long[] assetCategoryIds,
370 java.lang.String[] assetTagNames)
371 throws com.liferay.portal.kernel.exception.PortalException,
372 com.liferay.portal.kernel.exception.SystemException {
373 getService().updateAsset(userId, group, assetCategoryIds, assetTagNames);
374 }
375
376 public static com.liferay.portal.model.Group updateFriendlyURL(
377 long groupId, java.lang.String friendlyURL)
378 throws com.liferay.portal.kernel.exception.PortalException,
379 com.liferay.portal.kernel.exception.SystemException {
380 return getService().updateFriendlyURL(groupId, friendlyURL);
381 }
382
383 public static com.liferay.portal.model.Group updateGroup(long groupId,
384 java.lang.String name, java.lang.String description, int type,
385 java.lang.String friendlyURL, boolean active,
386 com.liferay.portal.service.ServiceContext serviceContext)
387 throws com.liferay.portal.kernel.exception.PortalException,
388 com.liferay.portal.kernel.exception.SystemException {
389 return getService()
390 .updateGroup(groupId, name, description, type, friendlyURL,
391 active, serviceContext);
392 }
393
394 public static com.liferay.portal.model.Group updateGroup(long groupId,
395 java.lang.String typeSettings)
396 throws com.liferay.portal.kernel.exception.PortalException,
397 com.liferay.portal.kernel.exception.SystemException {
398 return getService().updateGroup(groupId, typeSettings);
399 }
400
401 public static com.liferay.portal.model.Group updateWorkflow(long groupId,
402 boolean workflowEnabled, int workflowStages,
403 java.lang.String workflowRoleNames)
404 throws com.liferay.portal.kernel.exception.PortalException,
405 com.liferay.portal.kernel.exception.SystemException {
406 return getService()
407 .updateWorkflow(groupId, workflowEnabled, workflowStages,
408 workflowRoleNames);
409 }
410
411 public static GroupLocalService getService() {
412 if (_service == null) {
413 _service = (GroupLocalService)PortalBeanLocatorUtil.locate(GroupLocalService.class.getName());
414 }
415
416 return _service;
417 }
418
419 public void setService(GroupLocalService service) {
420 _service = service;
421 }
422
423 private static GroupLocalService _service;
424 }