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