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