1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.model.UserGroup;
18
19
32 public interface UserGroupPersistence extends BasePersistence<UserGroup> {
33 public void cacheResult(com.liferay.portal.model.UserGroup userGroup);
34
35 public void cacheResult(
36 java.util.List<com.liferay.portal.model.UserGroup> userGroups);
37
38 public com.liferay.portal.model.UserGroup create(long userGroupId);
39
40 public com.liferay.portal.model.UserGroup remove(long userGroupId)
41 throws com.liferay.portal.NoSuchUserGroupException,
42 com.liferay.portal.kernel.exception.SystemException;
43
44 public com.liferay.portal.model.UserGroup updateImpl(
45 com.liferay.portal.model.UserGroup userGroup, boolean merge)
46 throws com.liferay.portal.kernel.exception.SystemException;
47
48 public com.liferay.portal.model.UserGroup findByPrimaryKey(long userGroupId)
49 throws com.liferay.portal.NoSuchUserGroupException,
50 com.liferay.portal.kernel.exception.SystemException;
51
52 public com.liferay.portal.model.UserGroup fetchByPrimaryKey(
53 long userGroupId)
54 throws com.liferay.portal.kernel.exception.SystemException;
55
56 public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
57 long companyId)
58 throws com.liferay.portal.kernel.exception.SystemException;
59
60 public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
61 long companyId, int start, int end)
62 throws com.liferay.portal.kernel.exception.SystemException;
63
64 public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
65 long companyId, int start, int end,
66 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public com.liferay.portal.model.UserGroup findByCompanyId_First(
70 long companyId,
71 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
72 throws com.liferay.portal.NoSuchUserGroupException,
73 com.liferay.portal.kernel.exception.SystemException;
74
75 public com.liferay.portal.model.UserGroup findByCompanyId_Last(
76 long companyId,
77 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78 throws com.liferay.portal.NoSuchUserGroupException,
79 com.liferay.portal.kernel.exception.SystemException;
80
81 public com.liferay.portal.model.UserGroup[] findByCompanyId_PrevAndNext(
82 long userGroupId, long companyId,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.NoSuchUserGroupException,
85 com.liferay.portal.kernel.exception.SystemException;
86
87 public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
88 long companyId, long parentUserGroupId)
89 throws com.liferay.portal.kernel.exception.SystemException;
90
91 public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
92 long companyId, long parentUserGroupId, int start, int end)
93 throws com.liferay.portal.kernel.exception.SystemException;
94
95 public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
96 long companyId, long parentUserGroupId, int start, int end,
97 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
98 throws com.liferay.portal.kernel.exception.SystemException;
99
100 public com.liferay.portal.model.UserGroup findByC_P_First(long companyId,
101 long parentUserGroupId,
102 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103 throws com.liferay.portal.NoSuchUserGroupException,
104 com.liferay.portal.kernel.exception.SystemException;
105
106 public com.liferay.portal.model.UserGroup findByC_P_Last(long companyId,
107 long parentUserGroupId,
108 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109 throws com.liferay.portal.NoSuchUserGroupException,
110 com.liferay.portal.kernel.exception.SystemException;
111
112 public com.liferay.portal.model.UserGroup[] findByC_P_PrevAndNext(
113 long userGroupId, long companyId, long parentUserGroupId,
114 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115 throws com.liferay.portal.NoSuchUserGroupException,
116 com.liferay.portal.kernel.exception.SystemException;
117
118 public com.liferay.portal.model.UserGroup findByC_N(long companyId,
119 java.lang.String name)
120 throws com.liferay.portal.NoSuchUserGroupException,
121 com.liferay.portal.kernel.exception.SystemException;
122
123 public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
124 java.lang.String name)
125 throws com.liferay.portal.kernel.exception.SystemException;
126
127 public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
128 java.lang.String name, boolean retrieveFromCache)
129 throws com.liferay.portal.kernel.exception.SystemException;
130
131 public java.util.List<com.liferay.portal.model.UserGroup> findAll()
132 throws com.liferay.portal.kernel.exception.SystemException;
133
134 public java.util.List<com.liferay.portal.model.UserGroup> findAll(
135 int start, int end)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138 public java.util.List<com.liferay.portal.model.UserGroup> findAll(
139 int start, int end,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143 public void removeByCompanyId(long companyId)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146 public void removeByC_P(long companyId, long parentUserGroupId)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149 public void removeByC_N(long companyId, java.lang.String name)
150 throws com.liferay.portal.NoSuchUserGroupException,
151 com.liferay.portal.kernel.exception.SystemException;
152
153 public void removeAll()
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 public int countByCompanyId(long companyId)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 public int countByC_P(long companyId, long parentUserGroupId)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162 public int countByC_N(long companyId, java.lang.String name)
163 throws com.liferay.portal.kernel.exception.SystemException;
164
165 public int countAll()
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
172 int start, int end)
173 throws com.liferay.portal.kernel.exception.SystemException;
174
175 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
176 int start, int end,
177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178 throws com.liferay.portal.kernel.exception.SystemException;
179
180 public int getGroupsSize(long pk)
181 throws com.liferay.portal.kernel.exception.SystemException;
182
183 public boolean containsGroup(long pk, long groupPK)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186 public boolean containsGroups(long pk)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189 public void addGroup(long pk, long groupPK)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192 public void addGroup(long pk, com.liferay.portal.model.Group group)
193 throws com.liferay.portal.kernel.exception.SystemException;
194
195 public void addGroups(long pk, long[] groupPKs)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198 public void addGroups(long pk,
199 java.util.List<com.liferay.portal.model.Group> groups)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202 public void clearGroups(long pk)
203 throws com.liferay.portal.kernel.exception.SystemException;
204
205 public void removeGroup(long pk, long groupPK)
206 throws com.liferay.portal.kernel.exception.SystemException;
207
208 public void removeGroup(long pk, com.liferay.portal.model.Group group)
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211 public void removeGroups(long pk, long[] groupPKs)
212 throws com.liferay.portal.kernel.exception.SystemException;
213
214 public void removeGroups(long pk,
215 java.util.List<com.liferay.portal.model.Group> groups)
216 throws com.liferay.portal.kernel.exception.SystemException;
217
218 public void setGroups(long pk, long[] groupPKs)
219 throws com.liferay.portal.kernel.exception.SystemException;
220
221 public void setGroups(long pk,
222 java.util.List<com.liferay.portal.model.Group> groups)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225 public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
226 throws com.liferay.portal.kernel.exception.SystemException;
227
228 public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
229 int start, int end)
230 throws com.liferay.portal.kernel.exception.SystemException;
231
232 public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
233 int start, int end,
234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235 throws com.liferay.portal.kernel.exception.SystemException;
236
237 public int getUsersSize(long pk)
238 throws com.liferay.portal.kernel.exception.SystemException;
239
240 public boolean containsUser(long pk, long userPK)
241 throws com.liferay.portal.kernel.exception.SystemException;
242
243 public boolean containsUsers(long pk)
244 throws com.liferay.portal.kernel.exception.SystemException;
245
246 public void addUser(long pk, long userPK)
247 throws com.liferay.portal.kernel.exception.SystemException;
248
249 public void addUser(long pk, com.liferay.portal.model.User user)
250 throws com.liferay.portal.kernel.exception.SystemException;
251
252 public void addUsers(long pk, long[] userPKs)
253 throws com.liferay.portal.kernel.exception.SystemException;
254
255 public void addUsers(long pk,
256 java.util.List<com.liferay.portal.model.User> users)
257 throws com.liferay.portal.kernel.exception.SystemException;
258
259 public void clearUsers(long pk)
260 throws com.liferay.portal.kernel.exception.SystemException;
261
262 public void removeUser(long pk, long userPK)
263 throws com.liferay.portal.kernel.exception.SystemException;
264
265 public void removeUser(long pk, com.liferay.portal.model.User user)
266 throws com.liferay.portal.kernel.exception.SystemException;
267
268 public void removeUsers(long pk, long[] userPKs)
269 throws com.liferay.portal.kernel.exception.SystemException;
270
271 public void removeUsers(long pk,
272 java.util.List<com.liferay.portal.model.User> users)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275 public void setUsers(long pk, long[] userPKs)
276 throws com.liferay.portal.kernel.exception.SystemException;
277
278 public void setUsers(long pk,
279 java.util.List<com.liferay.portal.model.User> users)
280 throws com.liferay.portal.kernel.exception.SystemException;
281 }