1
19
20 package com.liferay.portal.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Isolation;
25 import com.liferay.portal.kernel.annotation.Propagation;
26 import com.liferay.portal.kernel.annotation.Transactional;
27
28
52 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
53 PortalException.class, SystemException.class})
54 public interface GroupLocalService {
55 public com.liferay.portal.model.Group addGroup(
56 com.liferay.portal.model.Group group)
57 throws com.liferay.portal.SystemException;
58
59 public com.liferay.portal.model.Group createGroup(long groupId);
60
61 public void deleteGroup(long groupId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portal.PortalException;
64
65 public void deleteGroup(com.liferay.portal.model.Group group)
66 throws com.liferay.portal.SystemException;
67
68 public java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70 throws com.liferay.portal.SystemException;
71
72 public java.util.List<Object> dynamicQuery(
73 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74 int end) throws com.liferay.portal.SystemException;
75
76 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
77 public com.liferay.portal.model.Group getGroup(long groupId)
78 throws com.liferay.portal.SystemException,
79 com.liferay.portal.PortalException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public java.util.List<com.liferay.portal.model.Group> getGroups(int start,
83 int end) throws com.liferay.portal.SystemException;
84
85 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
86 public int getGroupsCount() throws com.liferay.portal.SystemException;
87
88 public com.liferay.portal.model.Group updateGroup(
89 com.liferay.portal.model.Group group)
90 throws com.liferay.portal.SystemException;
91
92 public com.liferay.portal.model.Group updateGroup(
93 com.liferay.portal.model.Group group, boolean merge)
94 throws com.liferay.portal.SystemException;
95
96 public com.liferay.portal.model.Group addGroup(long userId,
97 java.lang.String className, long classPK, java.lang.String name,
98 java.lang.String description, int type, java.lang.String friendlyURL,
99 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
100 throws com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException;
102
103 public com.liferay.portal.model.Group addGroup(long userId,
104 java.lang.String className, long classPK, long liveGroupId,
105 java.lang.String name, java.lang.String description, int type,
106 java.lang.String friendlyURL, boolean active,
107 com.liferay.portal.service.ServiceContext serviceContext)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException;
110
111 public void addRoleGroups(long roleId, long[] groupIds)
112 throws com.liferay.portal.SystemException;
113
114 public void addUserGroups(long userId, long[] groupIds)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException;
117
118 public void checkSystemGroups(long companyId)
119 throws com.liferay.portal.PortalException,
120 com.liferay.portal.SystemException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public com.liferay.portal.model.Group getFriendlyURLGroup(long companyId,
124 java.lang.String friendlyURL)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException;
127
128 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129 public com.liferay.portal.model.Group getGroup(long companyId,
130 java.lang.String name)
131 throws com.liferay.portal.PortalException,
132 com.liferay.portal.SystemException;
133
134 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public java.util.List<com.liferay.portal.model.Group> getGroups(
136 long[] groupIds)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException;
139
140 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141 public com.liferay.portal.model.Group getLayoutGroup(long companyId,
142 long plid)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public java.util.List<com.liferay.portal.model.Group> getNoLayoutsGroups(
148 java.lang.String className, boolean privateLayout, int start, int end)
149 throws com.liferay.portal.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
153 throws com.liferay.portal.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public com.liferay.portal.model.Group getOrganizationGroup(long companyId,
157 long organizationId)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
163 java.util.List<com.liferay.portal.model.Organization> organizations);
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public java.util.List<com.liferay.portal.model.Group> getRoleGroups(
167 long roleId) throws com.liferay.portal.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portal.model.Group getStagingGroup(long liveGroupId)
171 throws com.liferay.portal.PortalException,
172 com.liferay.portal.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public com.liferay.portal.model.Group getUserGroup(long companyId,
176 long userId)
177 throws com.liferay.portal.PortalException,
178 com.liferay.portal.SystemException;
179
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public com.liferay.portal.model.Group getUserGroupGroup(long companyId,
182 long userGroupId)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public java.util.List<com.liferay.portal.model.Group> getUserGroups(
188 long userId) throws com.liferay.portal.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
192 java.util.List<com.liferay.portal.model.UserGroup> userGroups);
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
196 long userId, int start, int end)
197 throws com.liferay.portal.PortalException,
198 com.liferay.portal.SystemException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public boolean hasRoleGroup(long roleId, long groupId)
202 throws com.liferay.portal.SystemException;
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public boolean hasStagingGroup(long liveGroupId)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public boolean hasUserGroup(long userId, long groupId)
210 throws com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public java.util.List<com.liferay.portal.model.Group> search(
214 long companyId, java.lang.String name, java.lang.String description,
215 java.util.LinkedHashMap<String, Object> params, int start, int end)
216 throws com.liferay.portal.SystemException;
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public java.util.List<com.liferay.portal.model.Group> search(
220 long companyId, java.lang.String name, java.lang.String description,
221 java.util.LinkedHashMap<String, Object> params, int start, int end,
222 com.liferay.portal.kernel.util.OrderByComparator obc)
223 throws com.liferay.portal.SystemException;
224
225 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226 public int searchCount(long companyId, java.lang.String name,
227 java.lang.String description,
228 java.util.LinkedHashMap<String, Object> params)
229 throws com.liferay.portal.SystemException;
230
231 public void setRoleGroups(long roleId, long[] groupIds)
232 throws com.liferay.portal.SystemException;
233
234 public void unsetRoleGroups(long roleId, long[] groupIds)
235 throws com.liferay.portal.SystemException;
236
237 public void unsetUserGroups(long userId, long[] groupIds)
238 throws com.liferay.portal.SystemException;
239
240 public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
241 java.lang.String friendlyURL)
242 throws com.liferay.portal.PortalException,
243 com.liferay.portal.SystemException;
244
245 public com.liferay.portal.model.Group updateGroup(long groupId,
246 java.lang.String name, java.lang.String description, int type,
247 java.lang.String friendlyURL, boolean active,
248 com.liferay.portal.service.ServiceContext serviceContext)
249 throws com.liferay.portal.PortalException,
250 com.liferay.portal.SystemException;
251
252 public com.liferay.portal.model.Group updateGroup(long groupId,
253 java.lang.String typeSettings)
254 throws com.liferay.portal.PortalException,
255 com.liferay.portal.SystemException;
256
257 public void updateTagsAsset(long userId,
258 com.liferay.portal.model.Group group,
259 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
260 throws com.liferay.portal.PortalException,
261 com.liferay.portal.SystemException;
262
263 public com.liferay.portal.model.Group updateWorkflow(long groupId,
264 boolean workflowEnabled, int workflowStages,
265 java.lang.String workflowRoleNames)
266 throws com.liferay.portal.PortalException,
267 com.liferay.portal.SystemException;
268 }