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