001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface UserGroupLocalService {
043
050 public com.liferay.portal.model.UserGroup addUserGroup(
051 com.liferay.portal.model.UserGroup userGroup)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portal.model.UserGroup createUserGroup(long userGroupId);
061
062
069 public void deleteUserGroup(long userGroupId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073
079 public void deleteUserGroup(com.liferay.portal.model.UserGroup userGroup)
080 throws com.liferay.portal.kernel.exception.SystemException;
081
082
089 @SuppressWarnings("rawtypes")
090 public java.util.List dynamicQuery(
091 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094
107 @SuppressWarnings("rawtypes")
108 public java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110 int end) throws com.liferay.portal.kernel.exception.SystemException;
111
112
126 @SuppressWarnings("rawtypes")
127 public java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end,
130 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131 throws com.liferay.portal.kernel.exception.SystemException;
132
133
140 public long dynamicQueryCount(
141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException;
156
157
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
171 int start, int end)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public int getUserGroupsCount()
182 throws com.liferay.portal.kernel.exception.SystemException;
183
184
191 public com.liferay.portal.model.UserGroup updateUserGroup(
192 com.liferay.portal.model.UserGroup userGroup)
193 throws com.liferay.portal.kernel.exception.SystemException;
194
195
203 public com.liferay.portal.model.UserGroup updateUserGroup(
204 com.liferay.portal.model.UserGroup userGroup, boolean merge)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207 public void addGroupUserGroups(long groupId, long[] userGroupIds)
208 throws com.liferay.portal.kernel.exception.SystemException;
209
210 public com.liferay.portal.model.UserGroup addUserGroup(long userId,
211 long companyId, java.lang.String name, java.lang.String description)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException;
214
215 public void clearUserUserGroups(long userId)
216 throws com.liferay.portal.kernel.exception.SystemException;
217
218 public void copyUserGroupLayouts(long userGroupId, long[] userIds)
219 throws com.liferay.portal.kernel.exception.PortalException,
220 com.liferay.portal.kernel.exception.SystemException;
221
222 public void copyUserGroupLayouts(long[] userGroupIds, long userId)
223 throws com.liferay.portal.kernel.exception.PortalException,
224 com.liferay.portal.kernel.exception.SystemException;
225
226 public void copyUserGroupLayouts(long userGroupId, long userId)
227 throws com.liferay.portal.kernel.exception.PortalException,
228 com.liferay.portal.kernel.exception.SystemException;
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public com.liferay.portal.model.UserGroup getUserGroup(long companyId,
232 java.lang.String name)
233 throws com.liferay.portal.kernel.exception.PortalException,
234 com.liferay.portal.kernel.exception.SystemException;
235
236 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
238 long companyId)
239 throws com.liferay.portal.kernel.exception.SystemException;
240
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
243 long[] userGroupIds)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException;
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
249 long userId) throws com.liferay.portal.kernel.exception.SystemException;
250
251 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252 public boolean hasGroupUserGroup(long groupId, long userGroupId)
253 throws com.liferay.portal.kernel.exception.SystemException;
254
255 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256 public java.util.List<com.liferay.portal.model.UserGroup> search(
257 long companyId, java.lang.String name, java.lang.String description,
258 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
259 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
260 throws com.liferay.portal.kernel.exception.SystemException;
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public int searchCount(long companyId, java.lang.String name,
264 java.lang.String description,
265 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
266 throws com.liferay.portal.kernel.exception.SystemException;
267
268 public void setUserUserGroups(long userId, long[] userGroupIds)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException;
271
272 public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275 public com.liferay.portal.model.UserGroup updateUserGroup(long companyId,
276 long userGroupId, java.lang.String name, java.lang.String description)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException;
279 }