1
19
20 package com.liferay.portal.service.persistence;
21
22
28 public class RoleUtil {
29 public static com.liferay.portal.model.Role create(long roleId) {
30 return getPersistence().create(roleId);
31 }
32
33 public static com.liferay.portal.model.Role remove(long roleId)
34 throws com.liferay.portal.NoSuchRoleException,
35 com.liferay.portal.SystemException {
36 return getPersistence().remove(roleId);
37 }
38
39 public static com.liferay.portal.model.Role remove(
40 com.liferay.portal.model.Role role)
41 throws com.liferay.portal.SystemException {
42 return getPersistence().remove(role);
43 }
44
45
48 public static com.liferay.portal.model.Role update(
49 com.liferay.portal.model.Role role)
50 throws com.liferay.portal.SystemException {
51 return getPersistence().update(role);
52 }
53
54
67 public static com.liferay.portal.model.Role update(
68 com.liferay.portal.model.Role role, boolean merge)
69 throws com.liferay.portal.SystemException {
70 return getPersistence().update(role, merge);
71 }
72
73 public static com.liferay.portal.model.Role updateImpl(
74 com.liferay.portal.model.Role role, boolean merge)
75 throws com.liferay.portal.SystemException {
76 return getPersistence().updateImpl(role, merge);
77 }
78
79 public static com.liferay.portal.model.Role findByPrimaryKey(long roleId)
80 throws com.liferay.portal.NoSuchRoleException,
81 com.liferay.portal.SystemException {
82 return getPersistence().findByPrimaryKey(roleId);
83 }
84
85 public static com.liferay.portal.model.Role fetchByPrimaryKey(long roleId)
86 throws com.liferay.portal.SystemException {
87 return getPersistence().fetchByPrimaryKey(roleId);
88 }
89
90 public static java.util.List<com.liferay.portal.model.Role> findByCompanyId(
91 long companyId) throws com.liferay.portal.SystemException {
92 return getPersistence().findByCompanyId(companyId);
93 }
94
95 public static java.util.List<com.liferay.portal.model.Role> findByCompanyId(
96 long companyId, int start, int end)
97 throws com.liferay.portal.SystemException {
98 return getPersistence().findByCompanyId(companyId, start, end);
99 }
100
101 public static java.util.List<com.liferay.portal.model.Role> findByCompanyId(
102 long companyId, int start, int end,
103 com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException {
105 return getPersistence().findByCompanyId(companyId, start, end, obc);
106 }
107
108 public static com.liferay.portal.model.Role findByCompanyId_First(
109 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.NoSuchRoleException,
111 com.liferay.portal.SystemException {
112 return getPersistence().findByCompanyId_First(companyId, obc);
113 }
114
115 public static com.liferay.portal.model.Role findByCompanyId_Last(
116 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.NoSuchRoleException,
118 com.liferay.portal.SystemException {
119 return getPersistence().findByCompanyId_Last(companyId, obc);
120 }
121
122 public static com.liferay.portal.model.Role[] findByCompanyId_PrevAndNext(
123 long roleId, long companyId,
124 com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.NoSuchRoleException,
126 com.liferay.portal.SystemException {
127 return getPersistence()
128 .findByCompanyId_PrevAndNext(roleId, companyId, obc);
129 }
130
131 public static com.liferay.portal.model.Role findByC_N(long companyId,
132 java.lang.String name)
133 throws com.liferay.portal.NoSuchRoleException,
134 com.liferay.portal.SystemException {
135 return getPersistence().findByC_N(companyId, name);
136 }
137
138 public static com.liferay.portal.model.Role fetchByC_N(long companyId,
139 java.lang.String name) throws com.liferay.portal.SystemException {
140 return getPersistence().fetchByC_N(companyId, name);
141 }
142
143 public static com.liferay.portal.model.Role findByC_C_C(long companyId,
144 long classNameId, long classPK)
145 throws com.liferay.portal.NoSuchRoleException,
146 com.liferay.portal.SystemException {
147 return getPersistence().findByC_C_C(companyId, classNameId, classPK);
148 }
149
150 public static com.liferay.portal.model.Role fetchByC_C_C(long companyId,
151 long classNameId, long classPK)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().fetchByC_C_C(companyId, classNameId, classPK);
154 }
155
156 public static java.util.List<Object> findWithDynamicQuery(
157 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158 throws com.liferay.portal.SystemException {
159 return getPersistence().findWithDynamicQuery(dynamicQuery);
160 }
161
162 public static java.util.List<Object> findWithDynamicQuery(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
164 int end) throws com.liferay.portal.SystemException {
165 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
166 }
167
168 public static java.util.List<com.liferay.portal.model.Role> findAll()
169 throws com.liferay.portal.SystemException {
170 return getPersistence().findAll();
171 }
172
173 public static java.util.List<com.liferay.portal.model.Role> findAll(
174 int start, int end) throws com.liferay.portal.SystemException {
175 return getPersistence().findAll(start, end);
176 }
177
178 public static java.util.List<com.liferay.portal.model.Role> findAll(
179 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.SystemException {
181 return getPersistence().findAll(start, end, obc);
182 }
183
184 public static void removeByCompanyId(long companyId)
185 throws com.liferay.portal.SystemException {
186 getPersistence().removeByCompanyId(companyId);
187 }
188
189 public static void removeByC_N(long companyId, java.lang.String name)
190 throws com.liferay.portal.NoSuchRoleException,
191 com.liferay.portal.SystemException {
192 getPersistence().removeByC_N(companyId, name);
193 }
194
195 public static void removeByC_C_C(long companyId, long classNameId,
196 long classPK)
197 throws com.liferay.portal.NoSuchRoleException,
198 com.liferay.portal.SystemException {
199 getPersistence().removeByC_C_C(companyId, classNameId, classPK);
200 }
201
202 public static void removeAll() throws com.liferay.portal.SystemException {
203 getPersistence().removeAll();
204 }
205
206 public static int countByCompanyId(long companyId)
207 throws com.liferay.portal.SystemException {
208 return getPersistence().countByCompanyId(companyId);
209 }
210
211 public static int countByC_N(long companyId, java.lang.String name)
212 throws com.liferay.portal.SystemException {
213 return getPersistence().countByC_N(companyId, name);
214 }
215
216 public static int countByC_C_C(long companyId, long classNameId,
217 long classPK) throws com.liferay.portal.SystemException {
218 return getPersistence().countByC_C_C(companyId, classNameId, classPK);
219 }
220
221 public static int countAll() throws com.liferay.portal.SystemException {
222 return getPersistence().countAll();
223 }
224
225 public static java.util.List<com.liferay.portal.model.Group> getGroups(
226 long pk) throws com.liferay.portal.SystemException {
227 return getPersistence().getGroups(pk);
228 }
229
230 public static java.util.List<com.liferay.portal.model.Group> getGroups(
231 long pk, int start, int end) throws com.liferay.portal.SystemException {
232 return getPersistence().getGroups(pk, start, end);
233 }
234
235 public static java.util.List<com.liferay.portal.model.Group> getGroups(
236 long pk, int start, int end,
237 com.liferay.portal.kernel.util.OrderByComparator obc)
238 throws com.liferay.portal.SystemException {
239 return getPersistence().getGroups(pk, start, end, obc);
240 }
241
242 public static int getGroupsSize(long pk)
243 throws com.liferay.portal.SystemException {
244 return getPersistence().getGroupsSize(pk);
245 }
246
247 public static boolean containsGroup(long pk, long groupPK)
248 throws com.liferay.portal.SystemException {
249 return getPersistence().containsGroup(pk, groupPK);
250 }
251
252 public static boolean containsGroups(long pk)
253 throws com.liferay.portal.SystemException {
254 return getPersistence().containsGroups(pk);
255 }
256
257 public static void addGroup(long pk, long groupPK)
258 throws com.liferay.portal.SystemException {
259 getPersistence().addGroup(pk, groupPK);
260 }
261
262 public static void addGroup(long pk, com.liferay.portal.model.Group group)
263 throws com.liferay.portal.SystemException {
264 getPersistence().addGroup(pk, group);
265 }
266
267 public static void addGroups(long pk, long[] groupPKs)
268 throws com.liferay.portal.SystemException {
269 getPersistence().addGroups(pk, groupPKs);
270 }
271
272 public static void addGroups(long pk,
273 java.util.List<com.liferay.portal.model.Group> groups)
274 throws com.liferay.portal.SystemException {
275 getPersistence().addGroups(pk, groups);
276 }
277
278 public static void clearGroups(long pk)
279 throws com.liferay.portal.SystemException {
280 getPersistence().clearGroups(pk);
281 }
282
283 public static void removeGroup(long pk, long groupPK)
284 throws com.liferay.portal.SystemException {
285 getPersistence().removeGroup(pk, groupPK);
286 }
287
288 public static void removeGroup(long pk, com.liferay.portal.model.Group group)
289 throws com.liferay.portal.SystemException {
290 getPersistence().removeGroup(pk, group);
291 }
292
293 public static void removeGroups(long pk, long[] groupPKs)
294 throws com.liferay.portal.SystemException {
295 getPersistence().removeGroups(pk, groupPKs);
296 }
297
298 public static void removeGroups(long pk,
299 java.util.List<com.liferay.portal.model.Group> groups)
300 throws com.liferay.portal.SystemException {
301 getPersistence().removeGroups(pk, groups);
302 }
303
304 public static void setGroups(long pk, long[] groupPKs)
305 throws com.liferay.portal.SystemException {
306 getPersistence().setGroups(pk, groupPKs);
307 }
308
309 public static void setGroups(long pk,
310 java.util.List<com.liferay.portal.model.Group> groups)
311 throws com.liferay.portal.SystemException {
312 getPersistence().setGroups(pk, groups);
313 }
314
315 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
316 long pk) throws com.liferay.portal.SystemException {
317 return getPersistence().getPermissions(pk);
318 }
319
320 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
321 long pk, int start, int end) throws com.liferay.portal.SystemException {
322 return getPersistence().getPermissions(pk, start, end);
323 }
324
325 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
326 long pk, int start, int end,
327 com.liferay.portal.kernel.util.OrderByComparator obc)
328 throws com.liferay.portal.SystemException {
329 return getPersistence().getPermissions(pk, start, end, obc);
330 }
331
332 public static int getPermissionsSize(long pk)
333 throws com.liferay.portal.SystemException {
334 return getPersistence().getPermissionsSize(pk);
335 }
336
337 public static boolean containsPermission(long pk, long permissionPK)
338 throws com.liferay.portal.SystemException {
339 return getPersistence().containsPermission(pk, permissionPK);
340 }
341
342 public static boolean containsPermissions(long pk)
343 throws com.liferay.portal.SystemException {
344 return getPersistence().containsPermissions(pk);
345 }
346
347 public static void addPermission(long pk, long permissionPK)
348 throws com.liferay.portal.SystemException {
349 getPersistence().addPermission(pk, permissionPK);
350 }
351
352 public static void addPermission(long pk,
353 com.liferay.portal.model.Permission permission)
354 throws com.liferay.portal.SystemException {
355 getPersistence().addPermission(pk, permission);
356 }
357
358 public static void addPermissions(long pk, long[] permissionPKs)
359 throws com.liferay.portal.SystemException {
360 getPersistence().addPermissions(pk, permissionPKs);
361 }
362
363 public static void addPermissions(long pk,
364 java.util.List<com.liferay.portal.model.Permission> permissions)
365 throws com.liferay.portal.SystemException {
366 getPersistence().addPermissions(pk, permissions);
367 }
368
369 public static void clearPermissions(long pk)
370 throws com.liferay.portal.SystemException {
371 getPersistence().clearPermissions(pk);
372 }
373
374 public static void removePermission(long pk, long permissionPK)
375 throws com.liferay.portal.SystemException {
376 getPersistence().removePermission(pk, permissionPK);
377 }
378
379 public static void removePermission(long pk,
380 com.liferay.portal.model.Permission permission)
381 throws com.liferay.portal.SystemException {
382 getPersistence().removePermission(pk, permission);
383 }
384
385 public static void removePermissions(long pk, long[] permissionPKs)
386 throws com.liferay.portal.SystemException {
387 getPersistence().removePermissions(pk, permissionPKs);
388 }
389
390 public static void removePermissions(long pk,
391 java.util.List<com.liferay.portal.model.Permission> permissions)
392 throws com.liferay.portal.SystemException {
393 getPersistence().removePermissions(pk, permissions);
394 }
395
396 public static void setPermissions(long pk, long[] permissionPKs)
397 throws com.liferay.portal.SystemException {
398 getPersistence().setPermissions(pk, permissionPKs);
399 }
400
401 public static void setPermissions(long pk,
402 java.util.List<com.liferay.portal.model.Permission> permissions)
403 throws com.liferay.portal.SystemException {
404 getPersistence().setPermissions(pk, permissions);
405 }
406
407 public static java.util.List<com.liferay.portal.model.User> getUsers(
408 long pk) throws com.liferay.portal.SystemException {
409 return getPersistence().getUsers(pk);
410 }
411
412 public static java.util.List<com.liferay.portal.model.User> getUsers(
413 long pk, int start, int end) throws com.liferay.portal.SystemException {
414 return getPersistence().getUsers(pk, start, end);
415 }
416
417 public static java.util.List<com.liferay.portal.model.User> getUsers(
418 long pk, int start, int end,
419 com.liferay.portal.kernel.util.OrderByComparator obc)
420 throws com.liferay.portal.SystemException {
421 return getPersistence().getUsers(pk, start, end, obc);
422 }
423
424 public static int getUsersSize(long pk)
425 throws com.liferay.portal.SystemException {
426 return getPersistence().getUsersSize(pk);
427 }
428
429 public static boolean containsUser(long pk, long userPK)
430 throws com.liferay.portal.SystemException {
431 return getPersistence().containsUser(pk, userPK);
432 }
433
434 public static boolean containsUsers(long pk)
435 throws com.liferay.portal.SystemException {
436 return getPersistence().containsUsers(pk);
437 }
438
439 public static void addUser(long pk, long userPK)
440 throws com.liferay.portal.SystemException {
441 getPersistence().addUser(pk, userPK);
442 }
443
444 public static void addUser(long pk, com.liferay.portal.model.User user)
445 throws com.liferay.portal.SystemException {
446 getPersistence().addUser(pk, user);
447 }
448
449 public static void addUsers(long pk, long[] userPKs)
450 throws com.liferay.portal.SystemException {
451 getPersistence().addUsers(pk, userPKs);
452 }
453
454 public static void addUsers(long pk,
455 java.util.List<com.liferay.portal.model.User> users)
456 throws com.liferay.portal.SystemException {
457 getPersistence().addUsers(pk, users);
458 }
459
460 public static void clearUsers(long pk)
461 throws com.liferay.portal.SystemException {
462 getPersistence().clearUsers(pk);
463 }
464
465 public static void removeUser(long pk, long userPK)
466 throws com.liferay.portal.SystemException {
467 getPersistence().removeUser(pk, userPK);
468 }
469
470 public static void removeUser(long pk, com.liferay.portal.model.User user)
471 throws com.liferay.portal.SystemException {
472 getPersistence().removeUser(pk, user);
473 }
474
475 public static void removeUsers(long pk, long[] userPKs)
476 throws com.liferay.portal.SystemException {
477 getPersistence().removeUsers(pk, userPKs);
478 }
479
480 public static void removeUsers(long pk,
481 java.util.List<com.liferay.portal.model.User> users)
482 throws com.liferay.portal.SystemException {
483 getPersistence().removeUsers(pk, users);
484 }
485
486 public static void setUsers(long pk, long[] userPKs)
487 throws com.liferay.portal.SystemException {
488 getPersistence().setUsers(pk, userPKs);
489 }
490
491 public static void setUsers(long pk,
492 java.util.List<com.liferay.portal.model.User> users)
493 throws com.liferay.portal.SystemException {
494 getPersistence().setUsers(pk, users);
495 }
496
497 public static RolePersistence getPersistence() {
498 return _persistence;
499 }
500
501 public void setPersistence(RolePersistence persistence) {
502 _persistence = persistence;
503 }
504
505 private static RolePersistence _persistence;
506 }