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