1
22
23 package com.liferay.portal.service;
24
25
26
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) throws com.liferay.portal.SystemException {
229 return getService().getUserGroups(userId);
230 }
231
232 public static java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
233 java.util.List<com.liferay.portal.model.UserGroup> userGroups) {
234 return getService().getUserGroupsGroups(userGroups);
235 }
236
237 public static java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
238 long userId, int start, int end)
239 throws com.liferay.portal.PortalException,
240 com.liferay.portal.SystemException {
241 return getService().getUserOrganizationsGroups(userId, start, end);
242 }
243
244 public static boolean hasRoleGroup(long roleId, long groupId)
245 throws com.liferay.portal.SystemException {
246 return getService().hasRoleGroup(roleId, groupId);
247 }
248
249 public static boolean hasStagingGroup(long liveGroupId)
250 throws com.liferay.portal.SystemException {
251 return getService().hasStagingGroup(liveGroupId);
252 }
253
254 public static boolean hasUserGroup(long userId, long groupId)
255 throws com.liferay.portal.SystemException {
256 return getService().hasUserGroup(userId, groupId);
257 }
258
259 public static java.util.List<com.liferay.portal.model.Group> search(
260 long companyId, java.lang.String name, java.lang.String description,
261 java.util.LinkedHashMap<String, Object> params, int start, int end)
262 throws com.liferay.portal.SystemException {
263 return getService()
264 .search(companyId, name, description, params, start, end);
265 }
266
267 public static java.util.List<com.liferay.portal.model.Group> search(
268 long companyId, java.lang.String name, java.lang.String description,
269 java.util.LinkedHashMap<String, Object> params, int start, int end,
270 com.liferay.portal.kernel.util.OrderByComparator obc)
271 throws com.liferay.portal.SystemException {
272 return getService()
273 .search(companyId, name, description, params, start, end, obc);
274 }
275
276 public static int searchCount(long companyId, java.lang.String name,
277 java.lang.String description,
278 java.util.LinkedHashMap<String, Object> params)
279 throws com.liferay.portal.SystemException {
280 return getService().searchCount(companyId, name, description, params);
281 }
282
283 public static void setRoleGroups(long roleId, long[] groupIds)
284 throws com.liferay.portal.SystemException {
285 getService().setRoleGroups(roleId, groupIds);
286 }
287
288 public static void unsetRoleGroups(long roleId, long[] groupIds)
289 throws com.liferay.portal.SystemException {
290 getService().unsetRoleGroups(roleId, groupIds);
291 }
292
293 public static void unsetUserGroups(long userId, long[] groupIds)
294 throws com.liferay.portal.SystemException {
295 getService().unsetUserGroups(userId, groupIds);
296 }
297
298 public static com.liferay.portal.model.Group updateFriendlyURL(
299 long groupId, java.lang.String friendlyURL)
300 throws com.liferay.portal.PortalException,
301 com.liferay.portal.SystemException {
302 return getService().updateFriendlyURL(groupId, friendlyURL);
303 }
304
305 public static com.liferay.portal.model.Group updateGroup(long groupId,
306 java.lang.String name, java.lang.String description, int type,
307 java.lang.String friendlyURL, boolean active,
308 com.liferay.portal.service.ServiceContext serviceContext)
309 throws com.liferay.portal.PortalException,
310 com.liferay.portal.SystemException {
311 return getService()
312 .updateGroup(groupId, name, description, type, friendlyURL,
313 active, serviceContext);
314 }
315
316 public static com.liferay.portal.model.Group updateGroup(long groupId,
317 java.lang.String typeSettings)
318 throws com.liferay.portal.PortalException,
319 com.liferay.portal.SystemException {
320 return getService().updateGroup(groupId, typeSettings);
321 }
322
323 public static void updateTagsAsset(long userId,
324 com.liferay.portal.model.Group group,
325 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
326 throws com.liferay.portal.PortalException,
327 com.liferay.portal.SystemException {
328 getService().updateTagsAsset(userId, group, tagsCategories, tagsEntries);
329 }
330
331 public static com.liferay.portal.model.Group updateWorkflow(long groupId,
332 boolean workflowEnabled, int workflowStages,
333 java.lang.String workflowRoleNames)
334 throws com.liferay.portal.PortalException,
335 com.liferay.portal.SystemException {
336 return getService()
337 .updateWorkflow(groupId, workflowEnabled, workflowStages,
338 workflowRoleNames);
339 }
340
341 public static GroupLocalService getService() {
342 if (_service == null) {
343 throw new RuntimeException("GroupLocalService is not set");
344 }
345
346 return _service;
347 }
348
349 public void setService(GroupLocalService service) {
350 _service = service;
351 }
352
353 private static GroupLocalService _service;
354 }