1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.model.Role;
18
19
32 public interface RolePersistence extends BasePersistence<Role> {
33 public void cacheResult(com.liferay.portal.model.Role role);
34
35 public void cacheResult(java.util.List<com.liferay.portal.model.Role> roles);
36
37 public com.liferay.portal.model.Role create(long roleId);
38
39 public com.liferay.portal.model.Role remove(long roleId)
40 throws com.liferay.portal.NoSuchRoleException,
41 com.liferay.portal.kernel.exception.SystemException;
42
43 public com.liferay.portal.model.Role updateImpl(
44 com.liferay.portal.model.Role role, boolean merge)
45 throws com.liferay.portal.kernel.exception.SystemException;
46
47 public com.liferay.portal.model.Role findByPrimaryKey(long roleId)
48 throws com.liferay.portal.NoSuchRoleException,
49 com.liferay.portal.kernel.exception.SystemException;
50
51 public com.liferay.portal.model.Role fetchByPrimaryKey(long roleId)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public java.util.List<com.liferay.portal.model.Role> findByCompanyId(
55 long companyId)
56 throws com.liferay.portal.kernel.exception.SystemException;
57
58 public java.util.List<com.liferay.portal.model.Role> findByCompanyId(
59 long companyId, int start, int end)
60 throws com.liferay.portal.kernel.exception.SystemException;
61
62 public java.util.List<com.liferay.portal.model.Role> findByCompanyId(
63 long companyId, int start, int end,
64 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
65 throws com.liferay.portal.kernel.exception.SystemException;
66
67 public com.liferay.portal.model.Role findByCompanyId_First(long companyId,
68 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
69 throws com.liferay.portal.NoSuchRoleException,
70 com.liferay.portal.kernel.exception.SystemException;
71
72 public com.liferay.portal.model.Role findByCompanyId_Last(long companyId,
73 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74 throws com.liferay.portal.NoSuchRoleException,
75 com.liferay.portal.kernel.exception.SystemException;
76
77 public com.liferay.portal.model.Role[] findByCompanyId_PrevAndNext(
78 long roleId, long companyId,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.NoSuchRoleException,
81 com.liferay.portal.kernel.exception.SystemException;
82
83 public java.util.List<com.liferay.portal.model.Role> findBySubtype(
84 java.lang.String subtype)
85 throws com.liferay.portal.kernel.exception.SystemException;
86
87 public java.util.List<com.liferay.portal.model.Role> findBySubtype(
88 java.lang.String subtype, int start, int end)
89 throws com.liferay.portal.kernel.exception.SystemException;
90
91 public java.util.List<com.liferay.portal.model.Role> findBySubtype(
92 java.lang.String subtype, int start, int end,
93 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
94 throws com.liferay.portal.kernel.exception.SystemException;
95
96 public com.liferay.portal.model.Role findBySubtype_First(
97 java.lang.String subtype,
98 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
99 throws com.liferay.portal.NoSuchRoleException,
100 com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portal.model.Role findBySubtype_Last(
103 java.lang.String subtype,
104 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105 throws com.liferay.portal.NoSuchRoleException,
106 com.liferay.portal.kernel.exception.SystemException;
107
108 public com.liferay.portal.model.Role[] findBySubtype_PrevAndNext(
109 long roleId, java.lang.String subtype,
110 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111 throws com.liferay.portal.NoSuchRoleException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 public com.liferay.portal.model.Role findByC_N(long companyId,
115 java.lang.String name)
116 throws com.liferay.portal.NoSuchRoleException,
117 com.liferay.portal.kernel.exception.SystemException;
118
119 public com.liferay.portal.model.Role fetchByC_N(long companyId,
120 java.lang.String name)
121 throws com.liferay.portal.kernel.exception.SystemException;
122
123 public com.liferay.portal.model.Role fetchByC_N(long companyId,
124 java.lang.String name, boolean retrieveFromCache)
125 throws com.liferay.portal.kernel.exception.SystemException;
126
127 public java.util.List<com.liferay.portal.model.Role> findByT_S(int type,
128 java.lang.String subtype)
129 throws com.liferay.portal.kernel.exception.SystemException;
130
131 public java.util.List<com.liferay.portal.model.Role> findByT_S(int type,
132 java.lang.String subtype, int start, int end)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135 public java.util.List<com.liferay.portal.model.Role> findByT_S(int type,
136 java.lang.String subtype, int start, int end,
137 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138 throws com.liferay.portal.kernel.exception.SystemException;
139
140 public com.liferay.portal.model.Role findByT_S_First(int type,
141 java.lang.String subtype,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.NoSuchRoleException,
144 com.liferay.portal.kernel.exception.SystemException;
145
146 public com.liferay.portal.model.Role findByT_S_Last(int type,
147 java.lang.String subtype,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.NoSuchRoleException,
150 com.liferay.portal.kernel.exception.SystemException;
151
152 public com.liferay.portal.model.Role[] findByT_S_PrevAndNext(long roleId,
153 int type, java.lang.String subtype,
154 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155 throws com.liferay.portal.NoSuchRoleException,
156 com.liferay.portal.kernel.exception.SystemException;
157
158 public com.liferay.portal.model.Role findByC_C_C(long companyId,
159 long classNameId, long classPK)
160 throws com.liferay.portal.NoSuchRoleException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 public com.liferay.portal.model.Role fetchByC_C_C(long companyId,
164 long classNameId, long classPK)
165 throws com.liferay.portal.kernel.exception.SystemException;
166
167 public com.liferay.portal.model.Role fetchByC_C_C(long companyId,
168 long classNameId, long classPK, boolean retrieveFromCache)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 public java.util.List<com.liferay.portal.model.Role> findAll()
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174 public java.util.List<com.liferay.portal.model.Role> findAll(int start,
175 int end) throws com.liferay.portal.kernel.exception.SystemException;
176
177 public java.util.List<com.liferay.portal.model.Role> findAll(int start,
178 int end,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182 public void removeByCompanyId(long companyId)
183 throws com.liferay.portal.kernel.exception.SystemException;
184
185 public void removeBySubtype(java.lang.String subtype)
186 throws com.liferay.portal.kernel.exception.SystemException;
187
188 public void removeByC_N(long companyId, java.lang.String name)
189 throws com.liferay.portal.NoSuchRoleException,
190 com.liferay.portal.kernel.exception.SystemException;
191
192 public void removeByT_S(int type, java.lang.String subtype)
193 throws com.liferay.portal.kernel.exception.SystemException;
194
195 public void removeByC_C_C(long companyId, long classNameId, long classPK)
196 throws com.liferay.portal.NoSuchRoleException,
197 com.liferay.portal.kernel.exception.SystemException;
198
199 public void removeAll()
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202 public int countByCompanyId(long companyId)
203 throws com.liferay.portal.kernel.exception.SystemException;
204
205 public int countBySubtype(java.lang.String subtype)
206 throws com.liferay.portal.kernel.exception.SystemException;
207
208 public int countByC_N(long companyId, java.lang.String name)
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211 public int countByT_S(int type, java.lang.String subtype)
212 throws com.liferay.portal.kernel.exception.SystemException;
213
214 public int countByC_C_C(long companyId, long classNameId, long classPK)
215 throws com.liferay.portal.kernel.exception.SystemException;
216
217 public int countAll()
218 throws com.liferay.portal.kernel.exception.SystemException;
219
220 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException;
226
227 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
228 int start, int end,
229 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230 throws com.liferay.portal.kernel.exception.SystemException;
231
232 public int getGroupsSize(long pk)
233 throws com.liferay.portal.kernel.exception.SystemException;
234
235 public boolean containsGroup(long pk, long groupPK)
236 throws com.liferay.portal.kernel.exception.SystemException;
237
238 public boolean containsGroups(long pk)
239 throws com.liferay.portal.kernel.exception.SystemException;
240
241 public void addGroup(long pk, long groupPK)
242 throws com.liferay.portal.kernel.exception.SystemException;
243
244 public void addGroup(long pk, com.liferay.portal.model.Group group)
245 throws com.liferay.portal.kernel.exception.SystemException;
246
247 public void addGroups(long pk, long[] groupPKs)
248 throws com.liferay.portal.kernel.exception.SystemException;
249
250 public void addGroups(long pk,
251 java.util.List<com.liferay.portal.model.Group> groups)
252 throws com.liferay.portal.kernel.exception.SystemException;
253
254 public void clearGroups(long pk)
255 throws com.liferay.portal.kernel.exception.SystemException;
256
257 public void removeGroup(long pk, long groupPK)
258 throws com.liferay.portal.kernel.exception.SystemException;
259
260 public void removeGroup(long pk, com.liferay.portal.model.Group group)
261 throws com.liferay.portal.kernel.exception.SystemException;
262
263 public void removeGroups(long pk, long[] groupPKs)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266 public void removeGroups(long pk,
267 java.util.List<com.liferay.portal.model.Group> groups)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270 public void setGroups(long pk, long[] groupPKs)
271 throws com.liferay.portal.kernel.exception.SystemException;
272
273 public void setGroups(long pk,
274 java.util.List<com.liferay.portal.model.Group> groups)
275 throws com.liferay.portal.kernel.exception.SystemException;
276
277 public java.util.List<com.liferay.portal.model.Permission> getPermissions(
278 long pk) throws com.liferay.portal.kernel.exception.SystemException;
279
280 public java.util.List<com.liferay.portal.model.Permission> getPermissions(
281 long pk, int start, int end)
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284 public java.util.List<com.liferay.portal.model.Permission> getPermissions(
285 long pk, int start, int end,
286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287 throws com.liferay.portal.kernel.exception.SystemException;
288
289 public int getPermissionsSize(long pk)
290 throws com.liferay.portal.kernel.exception.SystemException;
291
292 public boolean containsPermission(long pk, long permissionPK)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 public boolean containsPermissions(long pk)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298 public void addPermission(long pk, long permissionPK)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301 public void addPermission(long pk,
302 com.liferay.portal.model.Permission permission)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305 public void addPermissions(long pk, long[] permissionPKs)
306 throws com.liferay.portal.kernel.exception.SystemException;
307
308 public void addPermissions(long pk,
309 java.util.List<com.liferay.portal.model.Permission> permissions)
310 throws com.liferay.portal.kernel.exception.SystemException;
311
312 public void clearPermissions(long pk)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315 public void removePermission(long pk, long permissionPK)
316 throws com.liferay.portal.kernel.exception.SystemException;
317
318 public void removePermission(long pk,
319 com.liferay.portal.model.Permission permission)
320 throws com.liferay.portal.kernel.exception.SystemException;
321
322 public void removePermissions(long pk, long[] permissionPKs)
323 throws com.liferay.portal.kernel.exception.SystemException;
324
325 public void removePermissions(long pk,
326 java.util.List<com.liferay.portal.model.Permission> permissions)
327 throws com.liferay.portal.kernel.exception.SystemException;
328
329 public void setPermissions(long pk, long[] permissionPKs)
330 throws com.liferay.portal.kernel.exception.SystemException;
331
332 public void setPermissions(long pk,
333 java.util.List<com.liferay.portal.model.Permission> permissions)
334 throws com.liferay.portal.kernel.exception.SystemException;
335
336 public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
337 throws com.liferay.portal.kernel.exception.SystemException;
338
339 public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
340 int start, int end)
341 throws com.liferay.portal.kernel.exception.SystemException;
342
343 public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
344 int start, int end,
345 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
346 throws com.liferay.portal.kernel.exception.SystemException;
347
348 public int getUsersSize(long pk)
349 throws com.liferay.portal.kernel.exception.SystemException;
350
351 public boolean containsUser(long pk, long userPK)
352 throws com.liferay.portal.kernel.exception.SystemException;
353
354 public boolean containsUsers(long pk)
355 throws com.liferay.portal.kernel.exception.SystemException;
356
357 public void addUser(long pk, long userPK)
358 throws com.liferay.portal.kernel.exception.SystemException;
359
360 public void addUser(long pk, com.liferay.portal.model.User user)
361 throws com.liferay.portal.kernel.exception.SystemException;
362
363 public void addUsers(long pk, long[] userPKs)
364 throws com.liferay.portal.kernel.exception.SystemException;
365
366 public void addUsers(long pk,
367 java.util.List<com.liferay.portal.model.User> users)
368 throws com.liferay.portal.kernel.exception.SystemException;
369
370 public void clearUsers(long pk)
371 throws com.liferay.portal.kernel.exception.SystemException;
372
373 public void removeUser(long pk, long userPK)
374 throws com.liferay.portal.kernel.exception.SystemException;
375
376 public void removeUser(long pk, com.liferay.portal.model.User user)
377 throws com.liferay.portal.kernel.exception.SystemException;
378
379 public void removeUsers(long pk, long[] userPKs)
380 throws com.liferay.portal.kernel.exception.SystemException;
381
382 public void removeUsers(long pk,
383 java.util.List<com.liferay.portal.model.User> users)
384 throws com.liferay.portal.kernel.exception.SystemException;
385
386 public void setUsers(long pk, long[] userPKs)
387 throws com.liferay.portal.kernel.exception.SystemException;
388
389 public void setUsers(long pk,
390 java.util.List<com.liferay.portal.model.User> users)
391 throws com.liferay.portal.kernel.exception.SystemException;
392 }