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