1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class PermissionUtil {
32 public static com.liferay.portal.model.Permission create(long permissionId) {
33 return getPersistence().create(permissionId);
34 }
35
36 public static com.liferay.portal.model.Permission remove(long permissionId)
37 throws com.liferay.portal.SystemException,
38 com.liferay.portal.NoSuchPermissionException {
39 return getPersistence().remove(permissionId);
40 }
41
42 public static com.liferay.portal.model.Permission remove(
43 com.liferay.portal.model.Permission permission)
44 throws com.liferay.portal.SystemException {
45 return getPersistence().remove(permission);
46 }
47
48 public static com.liferay.portal.model.Permission update(
49 com.liferay.portal.model.Permission permission)
50 throws com.liferay.portal.SystemException {
51 return getPersistence().update(permission);
52 }
53
54 public static com.liferay.portal.model.Permission update(
55 com.liferay.portal.model.Permission permission, boolean merge)
56 throws com.liferay.portal.SystemException {
57 return getPersistence().update(permission, merge);
58 }
59
60 public static com.liferay.portal.model.Permission updateImpl(
61 com.liferay.portal.model.Permission permission, boolean merge)
62 throws com.liferay.portal.SystemException {
63 return getPersistence().updateImpl(permission, merge);
64 }
65
66 public static com.liferay.portal.model.Permission findByPrimaryKey(
67 long permissionId)
68 throws com.liferay.portal.SystemException,
69 com.liferay.portal.NoSuchPermissionException {
70 return getPersistence().findByPrimaryKey(permissionId);
71 }
72
73 public static com.liferay.portal.model.Permission fetchByPrimaryKey(
74 long permissionId) throws com.liferay.portal.SystemException {
75 return getPersistence().fetchByPrimaryKey(permissionId);
76 }
77
78 public static java.util.List findByResourceId(long resourceId)
79 throws com.liferay.portal.SystemException {
80 return getPersistence().findByResourceId(resourceId);
81 }
82
83 public static java.util.List findByResourceId(long resourceId, int begin,
84 int end) throws com.liferay.portal.SystemException {
85 return getPersistence().findByResourceId(resourceId, begin, end);
86 }
87
88 public static java.util.List findByResourceId(long resourceId, int begin,
89 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
90 throws com.liferay.portal.SystemException {
91 return getPersistence().findByResourceId(resourceId, begin, end, obc);
92 }
93
94 public static com.liferay.portal.model.Permission findByResourceId_First(
95 long resourceId, com.liferay.portal.kernel.util.OrderByComparator obc)
96 throws com.liferay.portal.SystemException,
97 com.liferay.portal.NoSuchPermissionException {
98 return getPersistence().findByResourceId_First(resourceId, obc);
99 }
100
101 public static com.liferay.portal.model.Permission findByResourceId_Last(
102 long resourceId, com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.SystemException,
104 com.liferay.portal.NoSuchPermissionException {
105 return getPersistence().findByResourceId_Last(resourceId, obc);
106 }
107
108 public static com.liferay.portal.model.Permission[] findByResourceId_PrevAndNext(
109 long permissionId, long resourceId,
110 com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portal.NoSuchPermissionException {
113 return getPersistence().findByResourceId_PrevAndNext(permissionId,
114 resourceId, obc);
115 }
116
117 public static com.liferay.portal.model.Permission findByA_R(
118 java.lang.String actionId, long resourceId)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portal.NoSuchPermissionException {
121 return getPersistence().findByA_R(actionId, resourceId);
122 }
123
124 public static com.liferay.portal.model.Permission fetchByA_R(
125 java.lang.String actionId, long resourceId)
126 throws com.liferay.portal.SystemException {
127 return getPersistence().fetchByA_R(actionId, resourceId);
128 }
129
130 public static java.util.List findWithDynamicQuery(
131 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
132 throws com.liferay.portal.SystemException {
133 return getPersistence().findWithDynamicQuery(queryInitializer);
134 }
135
136 public static java.util.List findWithDynamicQuery(
137 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
138 int begin, int end) throws com.liferay.portal.SystemException {
139 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
140 end);
141 }
142
143 public static java.util.List findAll()
144 throws com.liferay.portal.SystemException {
145 return getPersistence().findAll();
146 }
147
148 public static java.util.List findAll(int begin, int end)
149 throws com.liferay.portal.SystemException {
150 return getPersistence().findAll(begin, end);
151 }
152
153 public static java.util.List findAll(int begin, int end,
154 com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException {
156 return getPersistence().findAll(begin, end, obc);
157 }
158
159 public static void removeByResourceId(long resourceId)
160 throws com.liferay.portal.SystemException {
161 getPersistence().removeByResourceId(resourceId);
162 }
163
164 public static void removeByA_R(java.lang.String actionId, long resourceId)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portal.NoSuchPermissionException {
167 getPersistence().removeByA_R(actionId, resourceId);
168 }
169
170 public static void removeAll() throws com.liferay.portal.SystemException {
171 getPersistence().removeAll();
172 }
173
174 public static int countByResourceId(long resourceId)
175 throws com.liferay.portal.SystemException {
176 return getPersistence().countByResourceId(resourceId);
177 }
178
179 public static int countByA_R(java.lang.String actionId, long resourceId)
180 throws com.liferay.portal.SystemException {
181 return getPersistence().countByA_R(actionId, resourceId);
182 }
183
184 public static int countAll() throws com.liferay.portal.SystemException {
185 return getPersistence().countAll();
186 }
187
188 public static java.util.List getGroups(long pk)
189 throws com.liferay.portal.SystemException,
190 com.liferay.portal.NoSuchPermissionException {
191 return getPersistence().getGroups(pk);
192 }
193
194 public static java.util.List getGroups(long pk, int begin, int end)
195 throws com.liferay.portal.SystemException,
196 com.liferay.portal.NoSuchPermissionException {
197 return getPersistence().getGroups(pk, begin, end);
198 }
199
200 public static java.util.List getGroups(long pk, int begin, int end,
201 com.liferay.portal.kernel.util.OrderByComparator obc)
202 throws com.liferay.portal.SystemException,
203 com.liferay.portal.NoSuchPermissionException {
204 return getPersistence().getGroups(pk, begin, end, obc);
205 }
206
207 public static int getGroupsSize(long pk)
208 throws com.liferay.portal.SystemException {
209 return getPersistence().getGroupsSize(pk);
210 }
211
212 public static boolean containsGroup(long pk, long groupPK)
213 throws com.liferay.portal.SystemException {
214 return getPersistence().containsGroup(pk, groupPK);
215 }
216
217 public static boolean containsGroups(long pk)
218 throws com.liferay.portal.SystemException {
219 return getPersistence().containsGroups(pk);
220 }
221
222 public static void addGroup(long pk, long groupPK)
223 throws com.liferay.portal.SystemException,
224 com.liferay.portal.NoSuchGroupException,
225 com.liferay.portal.NoSuchPermissionException {
226 getPersistence().addGroup(pk, groupPK);
227 }
228
229 public static void addGroup(long pk, com.liferay.portal.model.Group group)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portal.NoSuchGroupException,
232 com.liferay.portal.NoSuchPermissionException {
233 getPersistence().addGroup(pk, group);
234 }
235
236 public static void addGroups(long pk, long[] groupPKs)
237 throws com.liferay.portal.SystemException,
238 com.liferay.portal.NoSuchGroupException,
239 com.liferay.portal.NoSuchPermissionException {
240 getPersistence().addGroups(pk, groupPKs);
241 }
242
243 public static void addGroups(long pk, java.util.List groups)
244 throws com.liferay.portal.SystemException,
245 com.liferay.portal.NoSuchGroupException,
246 com.liferay.portal.NoSuchPermissionException {
247 getPersistence().addGroups(pk, groups);
248 }
249
250 public static void clearGroups(long pk)
251 throws com.liferay.portal.SystemException,
252 com.liferay.portal.NoSuchPermissionException {
253 getPersistence().clearGroups(pk);
254 }
255
256 public static void removeGroup(long pk, long groupPK)
257 throws com.liferay.portal.SystemException,
258 com.liferay.portal.NoSuchGroupException,
259 com.liferay.portal.NoSuchPermissionException {
260 getPersistence().removeGroup(pk, groupPK);
261 }
262
263 public static void removeGroup(long pk, com.liferay.portal.model.Group group)
264 throws com.liferay.portal.SystemException,
265 com.liferay.portal.NoSuchGroupException,
266 com.liferay.portal.NoSuchPermissionException {
267 getPersistence().removeGroup(pk, group);
268 }
269
270 public static void removeGroups(long pk, long[] groupPKs)
271 throws com.liferay.portal.SystemException,
272 com.liferay.portal.NoSuchGroupException,
273 com.liferay.portal.NoSuchPermissionException {
274 getPersistence().removeGroups(pk, groupPKs);
275 }
276
277 public static void removeGroups(long pk, java.util.List groups)
278 throws com.liferay.portal.SystemException,
279 com.liferay.portal.NoSuchGroupException,
280 com.liferay.portal.NoSuchPermissionException {
281 getPersistence().removeGroups(pk, groups);
282 }
283
284 public static void setGroups(long pk, long[] groupPKs)
285 throws com.liferay.portal.SystemException,
286 com.liferay.portal.NoSuchGroupException,
287 com.liferay.portal.NoSuchPermissionException {
288 getPersistence().setGroups(pk, groupPKs);
289 }
290
291 public static void setGroups(long pk, java.util.List groups)
292 throws com.liferay.portal.SystemException,
293 com.liferay.portal.NoSuchGroupException,
294 com.liferay.portal.NoSuchPermissionException {
295 getPersistence().setGroups(pk, groups);
296 }
297
298 public static java.util.List getRoles(long pk)
299 throws com.liferay.portal.SystemException,
300 com.liferay.portal.NoSuchPermissionException {
301 return getPersistence().getRoles(pk);
302 }
303
304 public static java.util.List getRoles(long pk, int begin, int end)
305 throws com.liferay.portal.SystemException,
306 com.liferay.portal.NoSuchPermissionException {
307 return getPersistence().getRoles(pk, begin, end);
308 }
309
310 public static java.util.List getRoles(long pk, int begin, int end,
311 com.liferay.portal.kernel.util.OrderByComparator obc)
312 throws com.liferay.portal.SystemException,
313 com.liferay.portal.NoSuchPermissionException {
314 return getPersistence().getRoles(pk, begin, end, obc);
315 }
316
317 public static int getRolesSize(long pk)
318 throws com.liferay.portal.SystemException {
319 return getPersistence().getRolesSize(pk);
320 }
321
322 public static boolean containsRole(long pk, long rolePK)
323 throws com.liferay.portal.SystemException {
324 return getPersistence().containsRole(pk, rolePK);
325 }
326
327 public static boolean containsRoles(long pk)
328 throws com.liferay.portal.SystemException {
329 return getPersistence().containsRoles(pk);
330 }
331
332 public static void addRole(long pk, long rolePK)
333 throws com.liferay.portal.SystemException,
334 com.liferay.portal.NoSuchRoleException,
335 com.liferay.portal.NoSuchPermissionException {
336 getPersistence().addRole(pk, rolePK);
337 }
338
339 public static void addRole(long pk, com.liferay.portal.model.Role role)
340 throws com.liferay.portal.SystemException,
341 com.liferay.portal.NoSuchRoleException,
342 com.liferay.portal.NoSuchPermissionException {
343 getPersistence().addRole(pk, role);
344 }
345
346 public static void addRoles(long pk, long[] rolePKs)
347 throws com.liferay.portal.SystemException,
348 com.liferay.portal.NoSuchRoleException,
349 com.liferay.portal.NoSuchPermissionException {
350 getPersistence().addRoles(pk, rolePKs);
351 }
352
353 public static void addRoles(long pk, java.util.List roles)
354 throws com.liferay.portal.SystemException,
355 com.liferay.portal.NoSuchRoleException,
356 com.liferay.portal.NoSuchPermissionException {
357 getPersistence().addRoles(pk, roles);
358 }
359
360 public static void clearRoles(long pk)
361 throws com.liferay.portal.SystemException,
362 com.liferay.portal.NoSuchPermissionException {
363 getPersistence().clearRoles(pk);
364 }
365
366 public static void removeRole(long pk, long rolePK)
367 throws com.liferay.portal.SystemException,
368 com.liferay.portal.NoSuchRoleException,
369 com.liferay.portal.NoSuchPermissionException {
370 getPersistence().removeRole(pk, rolePK);
371 }
372
373 public static void removeRole(long pk, com.liferay.portal.model.Role role)
374 throws com.liferay.portal.SystemException,
375 com.liferay.portal.NoSuchRoleException,
376 com.liferay.portal.NoSuchPermissionException {
377 getPersistence().removeRole(pk, role);
378 }
379
380 public static void removeRoles(long pk, long[] rolePKs)
381 throws com.liferay.portal.SystemException,
382 com.liferay.portal.NoSuchRoleException,
383 com.liferay.portal.NoSuchPermissionException {
384 getPersistence().removeRoles(pk, rolePKs);
385 }
386
387 public static void removeRoles(long pk, java.util.List roles)
388 throws com.liferay.portal.SystemException,
389 com.liferay.portal.NoSuchRoleException,
390 com.liferay.portal.NoSuchPermissionException {
391 getPersistence().removeRoles(pk, roles);
392 }
393
394 public static void setRoles(long pk, long[] rolePKs)
395 throws com.liferay.portal.SystemException,
396 com.liferay.portal.NoSuchRoleException,
397 com.liferay.portal.NoSuchPermissionException {
398 getPersistence().setRoles(pk, rolePKs);
399 }
400
401 public static void setRoles(long pk, java.util.List roles)
402 throws com.liferay.portal.SystemException,
403 com.liferay.portal.NoSuchRoleException,
404 com.liferay.portal.NoSuchPermissionException {
405 getPersistence().setRoles(pk, roles);
406 }
407
408 public static java.util.List getUsers(long pk)
409 throws com.liferay.portal.SystemException,
410 com.liferay.portal.NoSuchPermissionException {
411 return getPersistence().getUsers(pk);
412 }
413
414 public static java.util.List getUsers(long pk, int begin, int end)
415 throws com.liferay.portal.SystemException,
416 com.liferay.portal.NoSuchPermissionException {
417 return getPersistence().getUsers(pk, begin, end);
418 }
419
420 public static java.util.List getUsers(long pk, int begin, int end,
421 com.liferay.portal.kernel.util.OrderByComparator obc)
422 throws com.liferay.portal.SystemException,
423 com.liferay.portal.NoSuchPermissionException {
424 return getPersistence().getUsers(pk, begin, end, obc);
425 }
426
427 public static int getUsersSize(long pk)
428 throws com.liferay.portal.SystemException {
429 return getPersistence().getUsersSize(pk);
430 }
431
432 public static boolean containsUser(long pk, long userPK)
433 throws com.liferay.portal.SystemException {
434 return getPersistence().containsUser(pk, userPK);
435 }
436
437 public static boolean containsUsers(long pk)
438 throws com.liferay.portal.SystemException {
439 return getPersistence().containsUsers(pk);
440 }
441
442 public static void addUser(long pk, long userPK)
443 throws com.liferay.portal.SystemException,
444 com.liferay.portal.NoSuchPermissionException,
445 com.liferay.portal.NoSuchUserException {
446 getPersistence().addUser(pk, userPK);
447 }
448
449 public static void addUser(long pk, com.liferay.portal.model.User user)
450 throws com.liferay.portal.SystemException,
451 com.liferay.portal.NoSuchPermissionException,
452 com.liferay.portal.NoSuchUserException {
453 getPersistence().addUser(pk, user);
454 }
455
456 public static void addUsers(long pk, long[] userPKs)
457 throws com.liferay.portal.SystemException,
458 com.liferay.portal.NoSuchPermissionException,
459 com.liferay.portal.NoSuchUserException {
460 getPersistence().addUsers(pk, userPKs);
461 }
462
463 public static void addUsers(long pk, java.util.List users)
464 throws com.liferay.portal.SystemException,
465 com.liferay.portal.NoSuchPermissionException,
466 com.liferay.portal.NoSuchUserException {
467 getPersistence().addUsers(pk, users);
468 }
469
470 public static void clearUsers(long pk)
471 throws com.liferay.portal.SystemException,
472 com.liferay.portal.NoSuchPermissionException {
473 getPersistence().clearUsers(pk);
474 }
475
476 public static void removeUser(long pk, long userPK)
477 throws com.liferay.portal.SystemException,
478 com.liferay.portal.NoSuchPermissionException,
479 com.liferay.portal.NoSuchUserException {
480 getPersistence().removeUser(pk, userPK);
481 }
482
483 public static void removeUser(long pk, com.liferay.portal.model.User user)
484 throws com.liferay.portal.SystemException,
485 com.liferay.portal.NoSuchPermissionException,
486 com.liferay.portal.NoSuchUserException {
487 getPersistence().removeUser(pk, user);
488 }
489
490 public static void removeUsers(long pk, long[] userPKs)
491 throws com.liferay.portal.SystemException,
492 com.liferay.portal.NoSuchPermissionException,
493 com.liferay.portal.NoSuchUserException {
494 getPersistence().removeUsers(pk, userPKs);
495 }
496
497 public static void removeUsers(long pk, java.util.List users)
498 throws com.liferay.portal.SystemException,
499 com.liferay.portal.NoSuchPermissionException,
500 com.liferay.portal.NoSuchUserException {
501 getPersistence().removeUsers(pk, users);
502 }
503
504 public static void setUsers(long pk, long[] userPKs)
505 throws com.liferay.portal.SystemException,
506 com.liferay.portal.NoSuchPermissionException,
507 com.liferay.portal.NoSuchUserException {
508 getPersistence().setUsers(pk, userPKs);
509 }
510
511 public static void setUsers(long pk, java.util.List users)
512 throws com.liferay.portal.SystemException,
513 com.liferay.portal.NoSuchPermissionException,
514 com.liferay.portal.NoSuchUserException {
515 getPersistence().setUsers(pk, users);
516 }
517
518 public static PermissionPersistence getPersistence() {
519 return _getUtil()._persistence;
520 }
521
522 public void setPersistence(PermissionPersistence persistence) {
523 _persistence = persistence;
524 }
525
526 private static PermissionUtil _getUtil() {
527 if (_util == null) {
528 _util = (PermissionUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
529 }
530
531 return _util;
532 }
533
534 private static final String _UTIL = PermissionUtil.class.getName();
535 private static PermissionUtil _util;
536 private PermissionPersistence _persistence;
537 }