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