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