001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022
023
036 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
037 PortalException.class, SystemException.class})
038 public interface UserGroupLocalService extends PersistedModelLocalService {
039
044
045
052 public com.liferay.portal.model.UserGroup addUserGroup(
053 com.liferay.portal.model.UserGroup userGroup)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056
062 public com.liferay.portal.model.UserGroup createUserGroup(long userGroupId);
063
064
071 public void deleteUserGroup(long userGroupId)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075
082 public void deleteUserGroup(com.liferay.portal.model.UserGroup userGroup)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086
093 @SuppressWarnings("rawtypes")
094 public java.util.List dynamicQuery(
095 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098
111 @SuppressWarnings("rawtypes")
112 public java.util.List dynamicQuery(
113 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114 int end) throws com.liferay.portal.kernel.exception.SystemException;
115
116
130 @SuppressWarnings("rawtypes")
131 public java.util.List dynamicQuery(
132 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133 int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException;
136
137
144 public long dynamicQueryCount(
145 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
146 throws com.liferay.portal.kernel.exception.SystemException;
147
148
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public com.liferay.portal.model.PersistedModel getPersistedModel(
163 java.io.Serializable primaryKeyObj)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
181 int start, int end)
182 throws com.liferay.portal.kernel.exception.SystemException;
183
184
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public int getUserGroupsCount()
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194
201 public com.liferay.portal.model.UserGroup updateUserGroup(
202 com.liferay.portal.model.UserGroup userGroup)
203 throws com.liferay.portal.kernel.exception.SystemException;
204
205
213 public com.liferay.portal.model.UserGroup updateUserGroup(
214 com.liferay.portal.model.UserGroup userGroup, boolean merge)
215 throws com.liferay.portal.kernel.exception.SystemException;
216
217
222 public java.lang.String getBeanIdentifier();
223
224
229 public void setBeanIdentifier(java.lang.String beanIdentifier);
230
231 public void addGroupUserGroups(long groupId, long[] userGroupIds)
232 throws com.liferay.portal.kernel.exception.SystemException;
233
234 public void addTeamUserGroups(long teamId, long[] userGroupIds)
235 throws com.liferay.portal.kernel.exception.SystemException;
236
237 public com.liferay.portal.model.UserGroup addUserGroup(long userId,
238 long companyId, java.lang.String name, java.lang.String description)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException;
241
242 public void clearUserUserGroups(long userId)
243 throws com.liferay.portal.kernel.exception.SystemException;
244
245 public void copyUserGroupLayouts(long userGroupId, long[] userIds)
246 throws com.liferay.portal.kernel.exception.PortalException,
247 com.liferay.portal.kernel.exception.SystemException;
248
249 public void copyUserGroupLayouts(long[] userGroupIds, long userId)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException;
252
253 public void copyUserGroupLayouts(long userGroupId, long userId)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public com.liferay.portal.model.UserGroup getUserGroup(long companyId,
259 java.lang.String name)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
265 long companyId)
266 throws com.liferay.portal.kernel.exception.SystemException;
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
270 long[] userGroupIds)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
276 long userId) throws com.liferay.portal.kernel.exception.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public boolean hasGroupUserGroup(long groupId, long userGroupId)
280 throws com.liferay.portal.kernel.exception.SystemException;
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public boolean hasTeamUserGroup(long teamId, long userGroupId)
284 throws com.liferay.portal.kernel.exception.SystemException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public java.util.List<com.liferay.portal.model.UserGroup> search(
288 long companyId, java.lang.String name, java.lang.String description,
289 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
290 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
291 throws com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public int searchCount(long companyId, java.lang.String name,
295 java.lang.String description,
296 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
297 throws com.liferay.portal.kernel.exception.SystemException;
298
299 public void setUserUserGroups(long userId, long[] userGroupIds)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException;
302
303 public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
304 throws com.liferay.portal.kernel.exception.SystemException;
305
306 public void unsetTeamUserGroups(long teamId, long[] userGroupIds)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309 public com.liferay.portal.model.UserGroup updateUserGroup(long companyId,
310 long userGroupId, java.lang.String name, java.lang.String description)
311 throws com.liferay.portal.kernel.exception.PortalException,
312 com.liferay.portal.kernel.exception.SystemException;
313 }