1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class UserGroupLocalServiceUtil {
40 public static com.liferay.portal.model.UserGroup addUserGroup(
41 com.liferay.portal.model.UserGroup userGroup)
42 throws com.liferay.portal.SystemException {
43 return getService().addUserGroup(userGroup);
44 }
45
46 public static com.liferay.portal.model.UserGroup createUserGroup(
47 long userGroupId) {
48 return getService().createUserGroup(userGroupId);
49 }
50
51 public static void deleteUserGroup(long userGroupId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteUserGroup(userGroupId);
55 }
56
57 public static void deleteUserGroup(
58 com.liferay.portal.model.UserGroup userGroup)
59 throws com.liferay.portal.SystemException {
60 getService().deleteUserGroup(userGroup);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portal.model.UserGroup getUserGroup(
91 long userGroupId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException {
94 return getService().getUserGroup(userGroupId);
95 }
96
97 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
98 int start, int end) throws com.liferay.portal.SystemException {
99 return getService().getUserGroups(start, end);
100 }
101
102 public static int getUserGroupsCount()
103 throws com.liferay.portal.SystemException {
104 return getService().getUserGroupsCount();
105 }
106
107 public static com.liferay.portal.model.UserGroup updateUserGroup(
108 com.liferay.portal.model.UserGroup userGroup)
109 throws com.liferay.portal.SystemException {
110 return getService().updateUserGroup(userGroup);
111 }
112
113 public static com.liferay.portal.model.UserGroup updateUserGroup(
114 com.liferay.portal.model.UserGroup userGroup, boolean merge)
115 throws com.liferay.portal.SystemException {
116 return getService().updateUserGroup(userGroup, merge);
117 }
118
119 public static void addGroupUserGroups(long groupId, long[] userGroupIds)
120 throws com.liferay.portal.SystemException {
121 getService().addGroupUserGroups(groupId, userGroupIds);
122 }
123
124 public static com.liferay.portal.model.UserGroup addUserGroup(long userId,
125 long companyId, java.lang.String name, java.lang.String description)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 return getService().addUserGroup(userId, companyId, name, description);
129 }
130
131 public static void clearUserUserGroups(long userId)
132 throws com.liferay.portal.SystemException {
133 getService().clearUserUserGroups(userId);
134 }
135
136 public static void copyUserGroupLayouts(long userGroupId, long[] userIds)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException {
139 getService().copyUserGroupLayouts(userGroupId, userIds);
140 }
141
142 public static void copyUserGroupLayouts(long[] userGroupIds, long userId)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException {
145 getService().copyUserGroupLayouts(userGroupIds, userId);
146 }
147
148 public static void copyUserGroupLayouts(long userGroupId, long userId)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException {
151 getService().copyUserGroupLayouts(userGroupId, userId);
152 }
153
154 public static com.liferay.portal.model.UserGroup getUserGroup(
155 long companyId, java.lang.String name)
156 throws com.liferay.portal.PortalException,
157 com.liferay.portal.SystemException {
158 return getService().getUserGroup(companyId, name);
159 }
160
161 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
162 long companyId) throws com.liferay.portal.SystemException {
163 return getService().getUserGroups(companyId);
164 }
165
166 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
167 long[] userGroupIds)
168 throws com.liferay.portal.PortalException,
169 com.liferay.portal.SystemException {
170 return getService().getUserGroups(userGroupIds);
171 }
172
173 public static java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
174 long userId) throws com.liferay.portal.SystemException {
175 return getService().getUserUserGroups(userId);
176 }
177
178 public static boolean hasGroupUserGroup(long groupId, long userGroupId)
179 throws com.liferay.portal.SystemException {
180 return getService().hasGroupUserGroup(groupId, userGroupId);
181 }
182
183 public static java.util.List<com.liferay.portal.model.UserGroup> search(
184 long companyId, java.lang.String name, java.lang.String description,
185 java.util.LinkedHashMap<String, Object> params, int start, int end,
186 com.liferay.portal.kernel.util.OrderByComparator obc)
187 throws com.liferay.portal.SystemException {
188 return getService()
189 .search(companyId, name, description, params, start, end, obc);
190 }
191
192 public static int searchCount(long companyId, java.lang.String name,
193 java.lang.String description,
194 java.util.LinkedHashMap<String, Object> params)
195 throws com.liferay.portal.SystemException {
196 return getService().searchCount(companyId, name, description, params);
197 }
198
199 public static void setUserUserGroups(long userId, long[] userGroupIds)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException {
202 getService().setUserUserGroups(userId, userGroupIds);
203 }
204
205 public static void unsetGroupUserGroups(long groupId, long[] userGroupIds)
206 throws com.liferay.portal.SystemException {
207 getService().unsetGroupUserGroups(groupId, userGroupIds);
208 }
209
210 public static com.liferay.portal.model.UserGroup updateUserGroup(
211 long companyId, long userGroupId, java.lang.String name,
212 java.lang.String description)
213 throws com.liferay.portal.PortalException,
214 com.liferay.portal.SystemException {
215 return getService()
216 .updateUserGroup(companyId, userGroupId, name, description);
217 }
218
219 public static UserGroupLocalService getService() {
220 if (_service == null) {
221 _service = (UserGroupLocalService)PortalBeanLocatorUtil.locate(UserGroupLocalService.class.getName());
222 }
223
224 return _service;
225 }
226
227 public void setService(UserGroupLocalService service) {
228 _service = service;
229 }
230
231 private static UserGroupLocalService _service;
232 }