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