1
19
20 package com.liferay.portal.service;
21
22
23
44 public class GroupLocalServiceUtil {
45 public static com.liferay.portal.model.Group addGroup(
46 com.liferay.portal.model.Group group)
47 throws com.liferay.portal.SystemException {
48 return getService().addGroup(group);
49 }
50
51 public static com.liferay.portal.model.Group createGroup(long groupId) {
52 return getService().createGroup(groupId);
53 }
54
55 public static void deleteGroup(long groupId)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException {
58 getService().deleteGroup(groupId);
59 }
60
61 public static void deleteGroup(com.liferay.portal.model.Group group)
62 throws com.liferay.portal.SystemException {
63 getService().deleteGroup(group);
64 }
65
66 public static java.util.List<Object> dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 public static java.util.List<Object> dynamicQuery(
73 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74 int end) throws com.liferay.portal.SystemException {
75 return getService().dynamicQuery(dynamicQuery, start, end);
76 }
77
78 public static com.liferay.portal.model.Group getGroup(long groupId)
79 throws com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException {
81 return getService().getGroup(groupId);
82 }
83
84 public static java.util.List<com.liferay.portal.model.Group> getGroups(
85 int start, int end) throws com.liferay.portal.SystemException {
86 return getService().getGroups(start, end);
87 }
88
89 public static int getGroupsCount()
90 throws com.liferay.portal.SystemException {
91 return getService().getGroupsCount();
92 }
93
94 public static com.liferay.portal.model.Group updateGroup(
95 com.liferay.portal.model.Group group)
96 throws com.liferay.portal.SystemException {
97 return getService().updateGroup(group);
98 }
99
100 public static com.liferay.portal.model.Group addGroup(long userId,
101 java.lang.String className, long classPK, java.lang.String name,
102 java.lang.String description, int type, java.lang.String friendlyURL,
103 boolean active)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException {
106 return getService()
107 .addGroup(userId, className, classPK, name, description,
108 type, friendlyURL, active);
109 }
110
111 public static com.liferay.portal.model.Group addGroup(long userId,
112 java.lang.String className, long classPK, long liveGroupId,
113 java.lang.String name, java.lang.String description, int type,
114 java.lang.String friendlyURL, boolean active)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException {
117 return getService()
118 .addGroup(userId, className, classPK, liveGroupId, name,
119 description, type, friendlyURL, active);
120 }
121
122 public static void addRoleGroups(long roleId, long[] groupIds)
123 throws com.liferay.portal.SystemException {
124 getService().addRoleGroups(roleId, groupIds);
125 }
126
127 public static void addUserGroups(long userId, long[] groupIds)
128 throws com.liferay.portal.PortalException,
129 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 com.liferay.portal.model.Group getFriendlyURLGroup(
140 long companyId, java.lang.String friendlyURL)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException {
143 return getService().getFriendlyURLGroup(companyId, friendlyURL);
144 }
145
146 public static com.liferay.portal.model.Group getGroup(long companyId,
147 java.lang.String name)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException {
150 return getService().getGroup(companyId, name);
151 }
152
153 public static java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
154 throws com.liferay.portal.SystemException {
155 return getService().getNullFriendlyURLGroups();
156 }
157
158 public static com.liferay.portal.model.Group getOrganizationGroup(
159 long companyId, long organizationId)
160 throws com.liferay.portal.PortalException,
161 com.liferay.portal.SystemException {
162 return getService().getOrganizationGroup(companyId, organizationId);
163 }
164
165 public static java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
166 java.util.List<com.liferay.portal.model.Organization> organizations) {
167 return getService().getOrganizationsGroups(organizations);
168 }
169
170 public static java.util.List<com.liferay.portal.model.Group> getRoleGroups(
171 long roleId) throws com.liferay.portal.SystemException {
172 return getService().getRoleGroups(roleId);
173 }
174
175 public static com.liferay.portal.model.Group getStagingGroup(
176 long liveGroupId)
177 throws com.liferay.portal.PortalException,
178 com.liferay.portal.SystemException {
179 return getService().getStagingGroup(liveGroupId);
180 }
181
182 public static com.liferay.portal.model.Group getUserGroup(long companyId,
183 long userId)
184 throws com.liferay.portal.PortalException,
185 com.liferay.portal.SystemException {
186 return getService().getUserGroup(companyId, userId);
187 }
188
189 public static com.liferay.portal.model.Group getUserGroupGroup(
190 long companyId, long userGroupId)
191 throws com.liferay.portal.PortalException,
192 com.liferay.portal.SystemException {
193 return getService().getUserGroupGroup(companyId, userGroupId);
194 }
195
196 public static java.util.List<com.liferay.portal.model.Group> getUserGroups(
197 long userId) throws com.liferay.portal.SystemException {
198 return getService().getUserGroups(userId);
199 }
200
201 public static java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
202 java.util.List<com.liferay.portal.model.UserGroup> userGroups) {
203 return getService().getUserGroupsGroups(userGroups);
204 }
205
206 public static boolean hasRoleGroup(long roleId, long groupId)
207 throws com.liferay.portal.SystemException {
208 return getService().hasRoleGroup(roleId, groupId);
209 }
210
211 public static boolean hasStagingGroup(long liveGroupId)
212 throws com.liferay.portal.SystemException {
213 return getService().hasStagingGroup(liveGroupId);
214 }
215
216 public static boolean hasUserGroup(long userId, long groupId)
217 throws com.liferay.portal.SystemException {
218 return getService().hasUserGroup(userId, groupId);
219 }
220
221 public static java.util.List<com.liferay.portal.model.Group> search(
222 long companyId, java.lang.String name, java.lang.String description,
223 java.util.LinkedHashMap<String, Object> params, int start, int end)
224 throws com.liferay.portal.SystemException {
225 return getService()
226 .search(companyId, name, description, params, start, end);
227 }
228
229 public static java.util.List<com.liferay.portal.model.Group> search(
230 long companyId, java.lang.String name, java.lang.String description,
231 java.util.LinkedHashMap<String, Object> params, int start, int end,
232 com.liferay.portal.kernel.util.OrderByComparator obc)
233 throws com.liferay.portal.SystemException {
234 return getService()
235 .search(companyId, name, description, params, start, end, obc);
236 }
237
238 public static int searchCount(long companyId, java.lang.String name,
239 java.lang.String description,
240 java.util.LinkedHashMap<String, Object> params)
241 throws com.liferay.portal.SystemException {
242 return getService().searchCount(companyId, name, description, params);
243 }
244
245 public static void setRoleGroups(long roleId, long[] groupIds)
246 throws com.liferay.portal.SystemException {
247 getService().setRoleGroups(roleId, groupIds);
248 }
249
250 public static void unsetRoleGroups(long roleId, long[] groupIds)
251 throws com.liferay.portal.SystemException {
252 getService().unsetRoleGroups(roleId, groupIds);
253 }
254
255 public static void unsetUserGroups(long userId, long[] groupIds)
256 throws com.liferay.portal.SystemException {
257 getService().unsetUserGroups(userId, groupIds);
258 }
259
260 public static com.liferay.portal.model.Group updateFriendlyURL(
261 long groupId, java.lang.String friendlyURL)
262 throws com.liferay.portal.PortalException,
263 com.liferay.portal.SystemException {
264 return getService().updateFriendlyURL(groupId, friendlyURL);
265 }
266
267 public static com.liferay.portal.model.Group updateGroup(long groupId,
268 java.lang.String name, java.lang.String description, int type,
269 java.lang.String friendlyURL, boolean active)
270 throws com.liferay.portal.PortalException,
271 com.liferay.portal.SystemException {
272 return getService()
273 .updateGroup(groupId, name, description, type, friendlyURL,
274 active);
275 }
276
277 public static com.liferay.portal.model.Group updateGroup(long groupId,
278 java.lang.String typeSettings)
279 throws com.liferay.portal.PortalException,
280 com.liferay.portal.SystemException {
281 return getService().updateGroup(groupId, typeSettings);
282 }
283
284 public static com.liferay.portal.model.Group updateWorkflow(long groupId,
285 boolean workflowEnabled, int workflowStages,
286 java.lang.String workflowRoleNames)
287 throws com.liferay.portal.PortalException,
288 com.liferay.portal.SystemException {
289 return getService()
290 .updateWorkflow(groupId, workflowEnabled, workflowStages,
291 workflowRoleNames);
292 }
293
294 public static GroupLocalService getService() {
295 if (_service == null) {
296 throw new RuntimeException("GroupLocalService is not set");
297 }
298
299 return _service;
300 }
301
302 public void setService(GroupLocalService service) {
303 _service = service;
304 }
305
306 private static GroupLocalService _service;
307 }