1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface UserGroupLocalService {
50 public com.liferay.portal.model.UserGroup addUserGroup(
51 com.liferay.portal.model.UserGroup userGroup)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portal.model.UserGroup createUserGroup(long userGroupId);
55
56 public void deleteUserGroup(long userGroupId)
57 throws com.liferay.portal.kernel.exception.PortalException,
58 com.liferay.portal.kernel.exception.SystemException;
59
60 public void deleteUserGroup(com.liferay.portal.model.UserGroup userGroup)
61 throws com.liferay.portal.kernel.exception.SystemException;
62
63 @SuppressWarnings("unchecked")
64 public java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.kernel.exception.SystemException;
67
68 @SuppressWarnings("unchecked")
69 public java.util.List dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 @SuppressWarnings("unchecked")
74 public java.util.List dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end,
77 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78 throws com.liferay.portal.kernel.exception.SystemException;
79
80 public long dynamicQueryCount(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
82 throws com.liferay.portal.kernel.exception.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getUserGroupsCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portal.model.UserGroup updateUserGroup(
99 com.liferay.portal.model.UserGroup userGroup)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portal.model.UserGroup updateUserGroup(
103 com.liferay.portal.model.UserGroup userGroup, boolean merge)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106 public void addGroupUserGroups(long groupId, long[] userGroupIds)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 public com.liferay.portal.model.UserGroup addUserGroup(long userId,
110 long companyId, java.lang.String name, java.lang.String description)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 public void clearUserUserGroups(long userId)
115 throws com.liferay.portal.kernel.exception.SystemException;
116
117 public void copyUserGroupLayouts(long userGroupId, long[] userIds)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public void copyUserGroupLayouts(long[] userGroupIds, long userId)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException;
124
125 public void copyUserGroupLayouts(long userGroupId, long userId)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public com.liferay.portal.model.UserGroup getUserGroup(long companyId,
131 java.lang.String name)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
137 long companyId)
138 throws com.liferay.portal.kernel.exception.SystemException;
139
140 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
142 long[] userGroupIds)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
148 long userId) throws com.liferay.portal.kernel.exception.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public boolean hasGroupUserGroup(long groupId, long userGroupId)
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public java.util.List<com.liferay.portal.model.UserGroup> search(
156 long companyId, java.lang.String name, java.lang.String description,
157 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
158 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public int searchCount(long companyId, java.lang.String name,
163 java.lang.String description,
164 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
165 throws com.liferay.portal.kernel.exception.SystemException;
166
167 public void setUserUserGroups(long userId, long[] userGroupIds)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 public void unsetGroupUserGroups(long groupId, long[] userGroupIds)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174 public com.liferay.portal.model.UserGroup updateUserGroup(long companyId,
175 long userGroupId, java.lang.String name, java.lang.String description)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException;
178 }