001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * The utility for the permission local service. This utility wraps {@link com.liferay.portal.service.impl.PermissionLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
022     *
023     * <p>
024     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see PermissionLocalService
029     * @see com.liferay.portal.service.base.PermissionLocalServiceBaseImpl
030     * @see com.liferay.portal.service.impl.PermissionLocalServiceImpl
031     * @generated
032     */
033    public class PermissionLocalServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.PermissionLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
038             */
039    
040            /**
041            * Adds the permission to the database. Also notifies the appropriate model listeners.
042            *
043            * @param permission the permission
044            * @return the permission that was added
045            * @throws SystemException if a system exception occurred
046            */
047            public static com.liferay.portal.model.Permission addPermission(
048                    com.liferay.portal.model.Permission permission)
049                    throws com.liferay.portal.kernel.exception.SystemException {
050                    return getService().addPermission(permission);
051            }
052    
053            /**
054            * Creates a new permission with the primary key. Does not add the permission to the database.
055            *
056            * @param permissionId the primary key for the new permission
057            * @return the new permission
058            */
059            public static com.liferay.portal.model.Permission createPermission(
060                    long permissionId) {
061                    return getService().createPermission(permissionId);
062            }
063    
064            /**
065            * Deletes the permission with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param permissionId the primary key of the permission
068            * @return the permission that was removed
069            * @throws PortalException if a permission with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public static com.liferay.portal.model.Permission deletePermission(
073                    long permissionId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService().deletePermission(permissionId);
077            }
078    
079            /**
080            * Deletes the permission from the database. Also notifies the appropriate model listeners.
081            *
082            * @param permission the permission
083            * @return the permission that was removed
084            * @throws SystemException if a system exception occurred
085            */
086            public static com.liferay.portal.model.Permission deletePermission(
087                    com.liferay.portal.model.Permission permission)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return getService().deletePermission(permission);
090            }
091    
092            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093                    return getService().dynamicQuery();
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns the matching rows.
098            *
099            * @param dynamicQuery the dynamic query
100            * @return the matching rows
101            * @throws SystemException if a system exception occurred
102            */
103            @SuppressWarnings("rawtypes")
104            public static java.util.List dynamicQuery(
105                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return getService().dynamicQuery(dynamicQuery);
108            }
109    
110            /**
111            * Performs a dynamic query on the database and returns a range of the matching rows.
112            *
113            * <p>
114            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
115            * </p>
116            *
117            * @param dynamicQuery the dynamic query
118            * @param start the lower bound of the range of model instances
119            * @param end the upper bound of the range of model instances (not inclusive)
120            * @return the range of matching rows
121            * @throws SystemException if a system exception occurred
122            */
123            @SuppressWarnings("rawtypes")
124            public static java.util.List dynamicQuery(
125                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126                    int end) throws com.liferay.portal.kernel.exception.SystemException {
127                    return getService().dynamicQuery(dynamicQuery, start, end);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @SuppressWarnings("rawtypes")
145            public static java.util.List dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147                    int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getService()
151                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152            }
153    
154            /**
155            * Returns the number of rows that match the dynamic query.
156            *
157            * @param dynamicQuery the dynamic query
158            * @return the number of rows that match the dynamic query
159            * @throws SystemException if a system exception occurred
160            */
161            public static long dynamicQueryCount(
162                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getService().dynamicQueryCount(dynamicQuery);
165            }
166    
167            public static com.liferay.portal.model.Permission fetchPermission(
168                    long permissionId)
169                    throws com.liferay.portal.kernel.exception.SystemException {
170                    return getService().fetchPermission(permissionId);
171            }
172    
173            /**
174            * Returns the permission with the primary key.
175            *
176            * @param permissionId the primary key of the permission
177            * @return the permission
178            * @throws PortalException if a permission with the primary key could not be found
179            * @throws SystemException if a system exception occurred
180            */
181            public static com.liferay.portal.model.Permission getPermission(
182                    long permissionId)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    return getService().getPermission(permissionId);
186            }
187    
188            public static com.liferay.portal.model.PersistedModel getPersistedModel(
189                    java.io.Serializable primaryKeyObj)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException {
192                    return getService().getPersistedModel(primaryKeyObj);
193            }
194    
195            /**
196            * Returns a range of all the permissions.
197            *
198            * <p>
199            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
200            * </p>
201            *
202            * @param start the lower bound of the range of permissions
203            * @param end the upper bound of the range of permissions (not inclusive)
204            * @return the range of permissions
205            * @throws SystemException if a system exception occurred
206            */
207            public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
208                    int start, int end)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return getService().getPermissions(start, end);
211            }
212    
213            /**
214            * Returns the number of permissions.
215            *
216            * @return the number of permissions
217            * @throws SystemException if a system exception occurred
218            */
219            public static int getPermissionsCount()
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return getService().getPermissionsCount();
222            }
223    
224            /**
225            * Updates the permission in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
226            *
227            * @param permission the permission
228            * @return the permission that was updated
229            * @throws SystemException if a system exception occurred
230            */
231            public static com.liferay.portal.model.Permission updatePermission(
232                    com.liferay.portal.model.Permission permission)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return getService().updatePermission(permission);
235            }
236    
237            /**
238            * Updates the permission in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
239            *
240            * @param permission the permission
241            * @param merge whether to merge the permission with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
242            * @return the permission that was updated
243            * @throws SystemException if a system exception occurred
244            */
245            public static com.liferay.portal.model.Permission updatePermission(
246                    com.liferay.portal.model.Permission permission, boolean merge)
247                    throws com.liferay.portal.kernel.exception.SystemException {
248                    return getService().updatePermission(permission, merge);
249            }
250    
251            /**
252            * @throws SystemException if a system exception occurred
253            */
254            public static void addGroupPermission(long groupId, long permissionId)
255                    throws com.liferay.portal.kernel.exception.SystemException {
256                    getService().addGroupPermission(groupId, permissionId);
257            }
258    
259            /**
260            * @throws SystemException if a system exception occurred
261            */
262            public static void addGroupPermission(long groupId,
263                    com.liferay.portal.model.Permission permission)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    getService().addGroupPermission(groupId, permission);
266            }
267    
268            /**
269            * @throws SystemException if a system exception occurred
270            */
271            public static void addGroupPermissions(long groupId, long[] permissionIds)
272                    throws com.liferay.portal.kernel.exception.SystemException {
273                    getService().addGroupPermissions(groupId, permissionIds);
274            }
275    
276            /**
277            * @throws SystemException if a system exception occurred
278            */
279            public static void addGroupPermissions(long groupId,
280                    java.util.List<com.liferay.portal.model.Permission> Permissions)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    getService().addGroupPermissions(groupId, Permissions);
283            }
284    
285            /**
286            * @throws SystemException if a system exception occurred
287            */
288            public static void clearGroupPermissions(long groupId)
289                    throws com.liferay.portal.kernel.exception.SystemException {
290                    getService().clearGroupPermissions(groupId);
291            }
292    
293            /**
294            * @throws SystemException if a system exception occurred
295            */
296            public static void deleteGroupPermission(long groupId, long permissionId)
297                    throws com.liferay.portal.kernel.exception.SystemException {
298                    getService().deleteGroupPermission(groupId, permissionId);
299            }
300    
301            /**
302            * @throws SystemException if a system exception occurred
303            */
304            public static void deleteGroupPermission(long groupId,
305                    com.liferay.portal.model.Permission permission)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    getService().deleteGroupPermission(groupId, permission);
308            }
309    
310            /**
311            * @throws SystemException if a system exception occurred
312            */
313            public static void deleteGroupPermissions(long groupId, long[] permissionIds)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    getService().deleteGroupPermissions(groupId, permissionIds);
316            }
317    
318            /**
319            * @throws SystemException if a system exception occurred
320            */
321            public static void deleteGroupPermissions(long groupId,
322                    java.util.List<com.liferay.portal.model.Permission> Permissions)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    getService().deleteGroupPermissions(groupId, Permissions);
325            }
326    
327            /**
328            * @throws SystemException if a system exception occurred
329            */
330            public static java.util.List<com.liferay.portal.model.Permission> getGroupPermissions(
331                    long groupId)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return getService().getGroupPermissions(groupId);
334            }
335    
336            /**
337            * @throws SystemException if a system exception occurred
338            */
339            public static java.util.List<com.liferay.portal.model.Permission> getGroupPermissions(
340                    long groupId, int start, int end)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return getService().getGroupPermissions(groupId, start, end);
343            }
344    
345            /**
346            * @throws SystemException if a system exception occurred
347            */
348            public static java.util.List<com.liferay.portal.model.Permission> getGroupPermissions(
349                    long groupId, int start, int end,
350                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return getService()
353                                       .getGroupPermissions(groupId, start, end, orderByComparator);
354            }
355    
356            /**
357            * @throws SystemException if a system exception occurred
358            */
359            public static int getGroupPermissionsCount(long groupId)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return getService().getGroupPermissionsCount(groupId);
362            }
363    
364            /**
365            * @throws SystemException if a system exception occurred
366            */
367            public static boolean hasGroupPermission(long groupId, long permissionId)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return getService().hasGroupPermission(groupId, permissionId);
370            }
371    
372            /**
373            * @throws SystemException if a system exception occurred
374            */
375            public static boolean hasGroupPermissions(long groupId)
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    return getService().hasGroupPermissions(groupId);
378            }
379    
380            /**
381            * @throws SystemException if a system exception occurred
382            */
383            public static void setGroupPermissions(long groupId, long[] permissionIds)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    getService().setGroupPermissions(groupId, permissionIds);
386            }
387    
388            /**
389            * @throws SystemException if a system exception occurred
390            */
391            public static void addRolePermission(long roleId, long permissionId)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    getService().addRolePermission(roleId, permissionId);
394            }
395    
396            /**
397            * @throws SystemException if a system exception occurred
398            */
399            public static void addRolePermission(long roleId,
400                    com.liferay.portal.model.Permission permission)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    getService().addRolePermission(roleId, permission);
403            }
404    
405            /**
406            * @throws SystemException if a system exception occurred
407            */
408            public static void addRolePermissions(long roleId, long[] permissionIds)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    getService().addRolePermissions(roleId, permissionIds);
411            }
412    
413            /**
414            * @throws SystemException if a system exception occurred
415            */
416            public static void addRolePermissions(long roleId,
417                    java.util.List<com.liferay.portal.model.Permission> Permissions)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    getService().addRolePermissions(roleId, Permissions);
420            }
421    
422            /**
423            * @throws SystemException if a system exception occurred
424            */
425            public static void clearRolePermissions(long roleId)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    getService().clearRolePermissions(roleId);
428            }
429    
430            /**
431            * @throws SystemException if a system exception occurred
432            */
433            public static void deleteRolePermission(long roleId, long permissionId)
434                    throws com.liferay.portal.kernel.exception.SystemException {
435                    getService().deleteRolePermission(roleId, permissionId);
436            }
437    
438            /**
439            * @throws SystemException if a system exception occurred
440            */
441            public static void deleteRolePermission(long roleId,
442                    com.liferay.portal.model.Permission permission)
443                    throws com.liferay.portal.kernel.exception.SystemException {
444                    getService().deleteRolePermission(roleId, permission);
445            }
446    
447            /**
448            * @throws SystemException if a system exception occurred
449            */
450            public static void deleteRolePermissions(long roleId, long[] permissionIds)
451                    throws com.liferay.portal.kernel.exception.SystemException {
452                    getService().deleteRolePermissions(roleId, permissionIds);
453            }
454    
455            /**
456            * @throws SystemException if a system exception occurred
457            */
458            public static void deleteRolePermissions(long roleId,
459                    java.util.List<com.liferay.portal.model.Permission> Permissions)
460                    throws com.liferay.portal.kernel.exception.SystemException {
461                    getService().deleteRolePermissions(roleId, Permissions);
462            }
463    
464            /**
465            * @throws SystemException if a system exception occurred
466            */
467            public static java.util.List<com.liferay.portal.model.Permission> getRolePermissions(
468                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
469                    return getService().getRolePermissions(roleId);
470            }
471    
472            /**
473            * @throws SystemException if a system exception occurred
474            */
475            public static java.util.List<com.liferay.portal.model.Permission> getRolePermissions(
476                    long roleId, int start, int end)
477                    throws com.liferay.portal.kernel.exception.SystemException {
478                    return getService().getRolePermissions(roleId, start, end);
479            }
480    
481            /**
482            * @throws SystemException if a system exception occurred
483            */
484            public static java.util.List<com.liferay.portal.model.Permission> getRolePermissions(
485                    long roleId, int start, int end,
486                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    return getService()
489                                       .getRolePermissions(roleId, start, end, orderByComparator);
490            }
491    
492            /**
493            * @throws SystemException if a system exception occurred
494            */
495            public static int getRolePermissionsCount(long roleId)
496                    throws com.liferay.portal.kernel.exception.SystemException {
497                    return getService().getRolePermissionsCount(roleId);
498            }
499    
500            /**
501            * @throws SystemException if a system exception occurred
502            */
503            public static boolean hasRolePermission(long roleId, long permissionId)
504                    throws com.liferay.portal.kernel.exception.SystemException {
505                    return getService().hasRolePermission(roleId, permissionId);
506            }
507    
508            /**
509            * @throws SystemException if a system exception occurred
510            */
511            public static boolean hasRolePermissions(long roleId)
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    return getService().hasRolePermissions(roleId);
514            }
515    
516            /**
517            * @throws SystemException if a system exception occurred
518            */
519            public static void setRolePermissions(long roleId, long[] permissionIds)
520                    throws com.liferay.portal.kernel.exception.SystemException {
521                    getService().setRolePermissions(roleId, permissionIds);
522            }
523    
524            /**
525            * @throws SystemException if a system exception occurred
526            */
527            public static void addUserPermission(long userId, long permissionId)
528                    throws com.liferay.portal.kernel.exception.SystemException {
529                    getService().addUserPermission(userId, permissionId);
530            }
531    
532            /**
533            * @throws SystemException if a system exception occurred
534            */
535            public static void addUserPermission(long userId,
536                    com.liferay.portal.model.Permission permission)
537                    throws com.liferay.portal.kernel.exception.SystemException {
538                    getService().addUserPermission(userId, permission);
539            }
540    
541            /**
542            * @throws SystemException if a system exception occurred
543            */
544            public static void addUserPermissions(long userId, long[] permissionIds)
545                    throws com.liferay.portal.kernel.exception.SystemException {
546                    getService().addUserPermissions(userId, permissionIds);
547            }
548    
549            /**
550            * @throws SystemException if a system exception occurred
551            */
552            public static void addUserPermissions(long userId,
553                    java.util.List<com.liferay.portal.model.Permission> Permissions)
554                    throws com.liferay.portal.kernel.exception.SystemException {
555                    getService().addUserPermissions(userId, Permissions);
556            }
557    
558            /**
559            * @throws SystemException if a system exception occurred
560            */
561            public static void clearUserPermissions(long userId)
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    getService().clearUserPermissions(userId);
564            }
565    
566            /**
567            * @throws SystemException if a system exception occurred
568            */
569            public static void deleteUserPermission(long userId, long permissionId)
570                    throws com.liferay.portal.kernel.exception.SystemException {
571                    getService().deleteUserPermission(userId, permissionId);
572            }
573    
574            /**
575            * @throws SystemException if a system exception occurred
576            */
577            public static void deleteUserPermission(long userId,
578                    com.liferay.portal.model.Permission permission)
579                    throws com.liferay.portal.kernel.exception.SystemException {
580                    getService().deleteUserPermission(userId, permission);
581            }
582    
583            /**
584            * @throws SystemException if a system exception occurred
585            */
586            public static void deleteUserPermissions(long userId, long[] permissionIds)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    getService().deleteUserPermissions(userId, permissionIds);
589            }
590    
591            /**
592            * @throws SystemException if a system exception occurred
593            */
594            public static void deleteUserPermissions(long userId,
595                    java.util.List<com.liferay.portal.model.Permission> Permissions)
596                    throws com.liferay.portal.kernel.exception.SystemException {
597                    getService().deleteUserPermissions(userId, Permissions);
598            }
599    
600            /**
601            * @throws SystemException if a system exception occurred
602            */
603            public static java.util.List<com.liferay.portal.model.Permission> getUserPermissions(
604                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
605                    return getService().getUserPermissions(userId);
606            }
607    
608            /**
609            * @throws SystemException if a system exception occurred
610            */
611            public static java.util.List<com.liferay.portal.model.Permission> getUserPermissions(
612                    long userId, int start, int end)
613                    throws com.liferay.portal.kernel.exception.SystemException {
614                    return getService().getUserPermissions(userId, start, end);
615            }
616    
617            /**
618            * @throws SystemException if a system exception occurred
619            */
620            public static java.util.List<com.liferay.portal.model.Permission> getUserPermissions(
621                    long userId, int start, int end,
622                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
623                    throws com.liferay.portal.kernel.exception.SystemException {
624                    return getService()
625                                       .getUserPermissions(userId, start, end, orderByComparator);
626            }
627    
628            /**
629            * @throws SystemException if a system exception occurred
630            */
631            public static int getUserPermissionsCount(long userId)
632                    throws com.liferay.portal.kernel.exception.SystemException {
633                    return getService().getUserPermissionsCount(userId);
634            }
635    
636            /**
637            * @throws SystemException if a system exception occurred
638            */
639            public static boolean hasUserPermission(long userId, long permissionId)
640                    throws com.liferay.portal.kernel.exception.SystemException {
641                    return getService().hasUserPermission(userId, permissionId);
642            }
643    
644            /**
645            * @throws SystemException if a system exception occurred
646            */
647            public static boolean hasUserPermissions(long userId)
648                    throws com.liferay.portal.kernel.exception.SystemException {
649                    return getService().hasUserPermissions(userId);
650            }
651    
652            /**
653            * @throws SystemException if a system exception occurred
654            */
655            public static void setUserPermissions(long userId, long[] permissionIds)
656                    throws com.liferay.portal.kernel.exception.SystemException {
657                    getService().setUserPermissions(userId, permissionIds);
658            }
659    
660            /**
661            * Returns the Spring bean ID for this bean.
662            *
663            * @return the Spring bean ID for this bean
664            */
665            public static java.lang.String getBeanIdentifier() {
666                    return getService().getBeanIdentifier();
667            }
668    
669            /**
670            * Sets the Spring bean ID for this bean.
671            *
672            * @param beanIdentifier the Spring bean ID for this bean
673            */
674            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
675                    getService().setBeanIdentifier(beanIdentifier);
676            }
677    
678            /**
679            * Adds a permission to perform the action on the resource.
680            *
681            * <p>
682            * This method will retrieve the permission of the company, action, and
683            * resource with the primary keys. The method creates the permission if it
684            * fails to retrieve it.
685            * </p>
686            *
687            * @param companyId the primary key of the company
688            * @param actionId the action's ID
689            * @param resourceId the primary key of the resource
690            * @return the permission of the company, action, and resource with the
691            primary keys
692            * @throws SystemException if a system exception occurred
693            */
694            public static com.liferay.portal.model.Permission addPermission(
695                    long companyId, java.lang.String actionId, long resourceId)
696                    throws com.liferay.portal.kernel.exception.SystemException {
697                    return getService().addPermission(companyId, actionId, resourceId);
698            }
699    
700            /**
701            * Adds permissions to perform the actions on the resource.
702            *
703            * <p>
704            * This method will retrieve the permissions of the company, actions, and
705            * resource with the primary keys. The method creates any permissions it
706            * fails to retrieve.
707            * </p>
708            *
709            * @param companyId the primary key of the company
710            * @param actionIds the primary keys of the actions
711            * @param resourceId the primary key of the resource
712            * @return the permissions to perform the actions on the resource
713            * @throws SystemException if a system exception occurred
714            */
715            public static java.util.List<com.liferay.portal.model.Permission> addPermissions(
716                    long companyId, java.util.List<java.lang.String> actionIds,
717                    long resourceId)
718                    throws com.liferay.portal.kernel.exception.SystemException {
719                    return getService().addPermissions(companyId, actionIds, resourceId);
720            }
721    
722            /**
723            * Adds permissions to perform either the portlet resource actions or model
724            * resource actions on the resource.
725            *
726            * <p>
727            * This method will retrieve the permissions of the company, actions, and
728            * resource with the primary keys. The method creates any permissions it
729            * fails to retrieve.
730            * </p>
731            *
732            * @param companyId the primary key of the company
733            * @param name the resource name
734            * @param resourceId the primary key of the resource
735            * @param portletActions whether to retrieve the action primary keys from
736            the portlet or the model resource
737            * @return the permissions to perform the actions on the resource
738            * @throws SystemException if a system exception occurred
739            */
740            public static java.util.List<com.liferay.portal.model.Permission> addPermissions(
741                    long companyId, java.lang.String name, long resourceId,
742                    boolean portletActions)
743                    throws com.liferay.portal.kernel.exception.SystemException {
744                    return getService()
745                                       .addPermissions(companyId, name, resourceId, portletActions);
746            }
747    
748            /**
749            * Adds user permissions to perform the actions on the resource.
750            *
751            * @param userId the primary key of the user
752            * @param actionIds the primary keys of the actions
753            * @param resourceId the primary key of the resource
754            * @throws PortalException if a user with the primary key could not be found
755            * @throws SystemException if a system exception occurred
756            */
757            public static void addUserPermissions(long userId,
758                    java.lang.String[] actionIds, long resourceId)
759                    throws com.liferay.portal.kernel.exception.PortalException,
760                            com.liferay.portal.kernel.exception.SystemException {
761                    getService().addUserPermissions(userId, actionIds, resourceId);
762            }
763    
764            /**
765            * Checks to see if the actions are permitted on the named resource.
766            *
767            * @param name the resource name
768            * @param actionIds the primary keys of the actions
769            * @throws PortalException if the resource company or name could not be
770            found or were invalid
771            * @throws SystemException if a system exception occurred
772            */
773            public static void checkPermissions(java.lang.String name,
774                    java.util.List<java.lang.String> actionIds)
775                    throws com.liferay.portal.kernel.exception.PortalException,
776                            com.liferay.portal.kernel.exception.SystemException {
777                    getService().checkPermissions(name, actionIds);
778            }
779    
780            /**
781            * Returns the IDs of all the actions belonging to the permissions.
782            *
783            * @param permissions the permissions
784            * @return the IDs of all the actions belonging to the permissions
785            */
786            public static java.util.List<java.lang.String> getActions(
787                    java.util.List<com.liferay.portal.model.Permission> permissions) {
788                    return getService().getActions(permissions);
789            }
790    
791            /**
792            * Returns all the group's permissions on the resource.
793            *
794            * @param groupId the primary key of the group
795            * @param resourceId the primary key of the resource
796            * @return the group's permissions on the resource
797            * @throws SystemException if a system exception occurred
798            */
799            public static java.util.List<com.liferay.portal.model.Permission> getGroupPermissions(
800                    long groupId, long resourceId)
801                    throws com.liferay.portal.kernel.exception.SystemException {
802                    return getService().getGroupPermissions(groupId, resourceId);
803            }
804    
805            /**
806            * Returns all the group's permissions on the named resource with the scope
807            * and primKey.
808            *
809            * @param groupId the primary key of the group
810            * @param companyId the primary key of the company
811            * @param name the resource name
812            * @param scope the resource scope
813            * @param primKey the resource primKey
814            * @return the group's permissions on the named resource with the scope and
815            primKey
816            * @throws SystemException if a system exception occurred
817            */
818            public static java.util.List<com.liferay.portal.model.Permission> getGroupPermissions(
819                    long groupId, long companyId, java.lang.String name, int scope,
820                    java.lang.String primKey)
821                    throws com.liferay.portal.kernel.exception.SystemException {
822                    return getService()
823                                       .getGroupPermissions(groupId, companyId, name, scope, primKey);
824            }
825    
826            /**
827            * Returns the primary key of the latest permission created.
828            *
829            * @return the primary key of the latest permission created
830            * @throws SystemException if a system exception occurred
831            */
832            public static long getLatestPermissionId()
833                    throws com.liferay.portal.kernel.exception.SystemException {
834                    return getService().getLatestPermissionId();
835            }
836    
837            /**
838            * Returns all the permissions of the organization's group with respect to
839            * the resource.
840            *
841            * @param organizationId the primary key of the organization
842            * @param groupId the primary key of the group
843            * @param resourceId the primary key of the resource
844            * @return the permissions of the organization's group with respect to the
845            resource
846            * @throws SystemException if a system exception occurred
847            */
848            public static java.util.List<com.liferay.portal.model.Permission> getOrgGroupPermissions(
849                    long organizationId, long groupId, long resourceId)
850                    throws com.liferay.portal.kernel.exception.SystemException {
851                    return getService()
852                                       .getOrgGroupPermissions(organizationId, groupId, resourceId);
853            }
854    
855            /**
856            * Returns all the permissions to perform the actions on the resource,
857            * creating new permissions for any permissions not found.
858            *
859            * @param companyId the primary key of the company
860            * @param actionIds the primary keys of the actions
861            * @param resourceId the primary key of the resource
862            * @return the permissions to perform the actions on the resource
863            * @throws SystemException if a system exception occurred
864            * @see #addPermission(long, String, long)
865            */
866            public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
867                    long companyId, java.lang.String[] actionIds, long resourceId)
868                    throws com.liferay.portal.kernel.exception.SystemException {
869                    return getService().getPermissions(companyId, actionIds, resourceId);
870            }
871    
872            public static java.util.List<com.liferay.portal.model.Permission> getRolePermissions(
873                    long roleId, int[] scopes)
874                    throws com.liferay.portal.kernel.exception.SystemException {
875                    return getService().getRolePermissions(roleId, scopes);
876            }
877    
878            /**
879            * Returns all the role's permissions on the resource.
880            *
881            * @param roleId the primary key of the role
882            * @param resourceId the primary key of the resource
883            * @return the role's permissions on the resource
884            * @throws SystemException if a system exception occurred
885            */
886            public static java.util.List<com.liferay.portal.model.Permission> getRolePermissions(
887                    long roleId, long resourceId)
888                    throws com.liferay.portal.kernel.exception.SystemException {
889                    return getService().getRolePermissions(roleId, resourceId);
890            }
891    
892            /**
893            * Returns all the user's permissions on the resource.
894            *
895            * @param userId the primary key of the user
896            * @param resourceId the primary key of the resource
897            * @return the user's permissions on the resource
898            * @throws SystemException if a system exception occurred
899            */
900            public static java.util.List<com.liferay.portal.model.Permission> getUserPermissions(
901                    long userId, long resourceId)
902                    throws com.liferay.portal.kernel.exception.SystemException {
903                    return getService().getUserPermissions(userId, resourceId);
904            }
905    
906            /**
907            * Returns all the user's permissions on the named resource with the scope
908            * and primKey.
909            *
910            * @param userId the primary key of the user
911            * @param companyId the primary key of the company
912            * @param name the resource name
913            * @param scope the resource scope
914            * @param primKey the resource primKey
915            * @return the user permissions of the resource name, scope, and primKey
916            * @throws SystemException if a system exception occurred
917            */
918            public static java.util.List<com.liferay.portal.model.Permission> getUserPermissions(
919                    long userId, long companyId, java.lang.String name, int scope,
920                    java.lang.String primKey)
921                    throws com.liferay.portal.kernel.exception.SystemException {
922                    return getService()
923                                       .getUserPermissions(userId, companyId, name, scope, primKey);
924            }
925    
926            /**
927            * Returns <code>true</code> if the group has permission to perform the
928            * action on the resource.
929            *
930            * @param groupId the primary key of the group
931            * @param actionId the action's ID
932            * @param resourceId the primary key of the resource
933            * @return <code>true</code> if the group has permission to perform the
934            action on the resource; <code>false</code> otherwise
935            * @throws SystemException if a system exception occurred
936            */
937            public static boolean hasGroupPermission(long groupId,
938                    java.lang.String actionId, long resourceId)
939                    throws com.liferay.portal.kernel.exception.SystemException {
940                    return getService().hasGroupPermission(groupId, actionId, resourceId);
941            }
942    
943            /**
944            * Returns <code>true</code> if the role has permission to perform the
945            * action on the named resource with the scope.
946            *
947            * @param roleId the primary key of the role
948            * @param companyId the primary key of the company
949            * @param name the resource name
950            * @param scope the resource scope
951            * @param actionId the action's ID
952            * @return <code>true</code> if the role has permission to perform the
953            action on the named resource with the scope; <code>false</code>
954            otherwise
955            * @throws SystemException if a system exception occurred
956            */
957            public static boolean hasRolePermission(long roleId, long companyId,
958                    java.lang.String name, int scope, java.lang.String actionId)
959                    throws com.liferay.portal.kernel.exception.SystemException {
960                    return getService()
961                                       .hasRolePermission(roleId, companyId, name, scope, actionId);
962            }
963    
964            /**
965            * Returns <code>true</code> if the role has permission to perform the
966            * action on the named resource with the scope and primKey.
967            *
968            * @param roleId the primary key of the role
969            * @param companyId the primary key of the company
970            * @param name the resource name
971            * @param scope the resource scope
972            * @param primKey the resource primKey
973            * @param actionId the action's ID
974            * @return <code>true</code> if the role has permission to perform the
975            action on the named resource with the scope and primKey;
976            <code>false</code> otherwise
977            * @throws SystemException if a system exception occurred
978            */
979            public static boolean hasRolePermission(long roleId, long companyId,
980                    java.lang.String name, int scope, java.lang.String primKey,
981                    java.lang.String actionId)
982                    throws com.liferay.portal.kernel.exception.SystemException {
983                    return getService()
984                                       .hasRolePermission(roleId, companyId, name, scope, primKey,
985                            actionId);
986            }
987    
988            /**
989            * Returns <code>true</code> if the user has permission to perform the
990            * action on the resource.
991            *
992            * @param userId the primary key of the user
993            * @param actionId the action's ID
994            * @param resourceId the primary key of the resource
995            * @return <code>true</code> if the user has permission to perform the
996            action on the resource; <code>false</code> otherwise
997            * @throws SystemException if a system exception occurred
998            */
999            public static boolean hasUserPermission(long userId,
1000                    java.lang.String actionId, long resourceId)
1001                    throws com.liferay.portal.kernel.exception.SystemException {
1002                    return getService().hasUserPermission(userId, actionId, resourceId);
1003            }
1004    
1005            /**
1006            * Returns <code>true</code> if the user has permission to perform the
1007            * action on the resources.
1008            *
1009            * <p>
1010            * This method does not support resources managed by the resource block
1011            * system.
1012            * </p>
1013            *
1014            * @param userId the primary key of the user
1015            * @param groupId the primary key of the group containing the resource
1016            * @param resources representations of the resource at each scope level
1017            returned by {@link
1018            com.liferay.portal.security.permission.AdvancedPermissionChecker#getResources(
1019            long, long, String, String, String)}
1020            * @param actionId the action's ID
1021            * @param permissionCheckerBag the permission checker bag
1022            * @return <code>true</code> if the user has permission to perform the
1023            action on the resources; <code>false</code> otherwise
1024            * @throws PortalException if a resource action based on any one of the
1025            resources and the action ID could not be found
1026            * @throws SystemException if a system exception occurred
1027            */
1028            public static boolean hasUserPermissions(long userId, long groupId,
1029                    java.util.List<com.liferay.portal.model.Resource> resources,
1030                    java.lang.String actionId,
1031                    com.liferay.portal.security.permission.PermissionCheckerBag permissionCheckerBag)
1032                    throws com.liferay.portal.kernel.exception.PortalException,
1033                            com.liferay.portal.kernel.exception.SystemException {
1034                    return getService()
1035                                       .hasUserPermissions(userId, groupId, resources, actionId,
1036                            permissionCheckerBag);
1037            }
1038    
1039            /**
1040            * Sets the container wide permissions of either the role or the default
1041            * user of each company to perform the actions on the named resource.
1042            *
1043            * @param name the resource name
1044            * @param roleName the role name. Supported role names include {@link
1045            com.liferay.portal.model.RoleConstants#ORGANIZATION_USER}, {@link
1046            com.liferay.portal.model.RoleConstants#OWNER}, and {@link
1047            com.liferay.portal.model.RoleConstants#SITE_MEMBER}.
1048            * @param actionId the action's ID
1049            * @throws PortalException if a matching role could not be found or if a
1050            default user for the company could not be found
1051            * @throws SystemException if a system exception occurred
1052            */
1053            public static void setContainerResourcePermissions(java.lang.String name,
1054                    java.lang.String roleName, java.lang.String actionId)
1055                    throws com.liferay.portal.kernel.exception.PortalException,
1056                            com.liferay.portal.kernel.exception.SystemException {
1057                    getService().setContainerResourcePermissions(name, roleName, actionId);
1058            }
1059    
1060            /**
1061            * Sets the group's permissions to perform the actions on the resource,
1062            * replacing the group's existing permissions on the resource.
1063            *
1064            * @param groupId the primary key of the group
1065            * @param actionIds the primary keys of the actions
1066            * @param resourceId the primary key of the resource
1067            * @throws PortalException if a group with the primary key could not be
1068            found
1069            * @throws SystemException if a system exception occurred
1070            */
1071            public static void setGroupPermissions(long groupId,
1072                    java.lang.String[] actionIds, long resourceId)
1073                    throws com.liferay.portal.kernel.exception.PortalException,
1074                            com.liferay.portal.kernel.exception.SystemException {
1075                    getService().setGroupPermissions(groupId, actionIds, resourceId);
1076            }
1077    
1078            /**
1079            * Sets the entity's group permissions to perform the actions on the
1080            * resource, replacing the entity's existing group permissions on the
1081            * resource. Only {@link com.liferay.portal.model.Organization} and {@link
1082            * com.liferay.portal.model.UserGroup} class entities are supported.
1083            *
1084            * @param className the class name of an organization or user group
1085            * @param classPK the primary key of the class
1086            * @param groupId the primary key of the group
1087            * @param actionIds the primary keys of the actions
1088            * @param resourceId the primary key of the resource
1089            * @throws PortalException if an entity with the class name and primary key
1090            could not be found or if the entity's associated group could not
1091            be found
1092            * @throws SystemException if a system exception occurred
1093            */
1094            public static void setGroupPermissions(java.lang.String className,
1095                    java.lang.String classPK, long groupId, java.lang.String[] actionIds,
1096                    long resourceId)
1097                    throws com.liferay.portal.kernel.exception.PortalException,
1098                            com.liferay.portal.kernel.exception.SystemException {
1099                    getService()
1100                            .setGroupPermissions(className, classPK, groupId, actionIds,
1101                            resourceId);
1102            }
1103    
1104            /**
1105            * Sets the organization's group permissions to perform the actions on the
1106            * resource, replacing the organization's existing group permissions on the
1107            * resource.
1108            *
1109            * @param organizationId the primary key of the organization
1110            * @param groupId the primary key of the group in which to scope the
1111            permissions
1112            * @param actionIds the primary keys of the actions
1113            * @param resourceId the primary key of the resource
1114            * @throws PortalException if an organization with the primary key could not
1115            be found
1116            * @throws SystemException if a system exception occurred
1117            */
1118            public static void setOrgGroupPermissions(long organizationId,
1119                    long groupId, java.lang.String[] actionIds, long resourceId)
1120                    throws com.liferay.portal.kernel.exception.PortalException,
1121                            com.liferay.portal.kernel.exception.SystemException {
1122                    getService()
1123                            .setOrgGroupPermissions(organizationId, groupId, actionIds,
1124                            resourceId);
1125            }
1126    
1127            /**
1128            * Sets the role's permissions to perform the action on the named resource,
1129            * replacing the role's existing permissions on the resource.
1130            *
1131            * @param roleId the primary key of the role
1132            * @param companyId the primary key of the company
1133            * @param name the resource name
1134            * @param scope the resource scope
1135            * @param primKey the resource primKey
1136            * @param actionId the action's ID
1137            * @throws PortalException if the scope was {@link
1138            com.liferay.portal.model.ResourceConstants#SCOPE_INDIVIDUAL}
1139            * @throws SystemException if a system exception occurred
1140            */
1141            public static void setRolePermission(long roleId, long companyId,
1142                    java.lang.String name, int scope, java.lang.String primKey,
1143                    java.lang.String actionId)
1144                    throws com.liferay.portal.kernel.exception.PortalException,
1145                            com.liferay.portal.kernel.exception.SystemException {
1146                    getService()
1147                            .setRolePermission(roleId, companyId, name, scope, primKey, actionId);
1148            }
1149    
1150            /**
1151            * Sets the role's permissions to perform the actions on the named resource,
1152            * replacing the role's existing permission for each of these actions on the
1153            * resource.
1154            *
1155            * @param roleId the primary key of the role
1156            * @param companyId the primary key of the company
1157            * @param name the resource name
1158            * @param scope the resource scope
1159            * @param primKey the resource primKey
1160            * @param actionIds the primary keys of the actions
1161            * @throws PortalException if the scope was {@link
1162            com.liferay.portal.model.ResourceConstants#SCOPE_INDIVIDUAL}
1163            * @throws SystemException if a system exception occurred
1164            */
1165            public static void setRolePermissions(long roleId, long companyId,
1166                    java.lang.String name, int scope, java.lang.String primKey,
1167                    java.lang.String[] actionIds)
1168                    throws com.liferay.portal.kernel.exception.PortalException,
1169                            com.liferay.portal.kernel.exception.SystemException {
1170                    getService()
1171                            .setRolePermissions(roleId, companyId, name, scope, primKey,
1172                            actionIds);
1173            }
1174    
1175            /**
1176            * Sets the role's permissions to perform the actions on the resource,
1177            * replacing the role's existing permissions on the resource.
1178            *
1179            * @param roleId the primary key of the role
1180            * @param actionIds the primary keys of the actions
1181            * @param resourceId the primary key of the resource
1182            * @throws PortalException if a role with the primary key could not be found
1183            * @throws SystemException if a system exception occurred
1184            */
1185            public static void setRolePermissions(long roleId,
1186                    java.lang.String[] actionIds, long resourceId)
1187                    throws com.liferay.portal.kernel.exception.PortalException,
1188                            com.liferay.portal.kernel.exception.SystemException {
1189                    getService().setRolePermissions(roleId, actionIds, resourceId);
1190            }
1191    
1192            /**
1193            * Sets the permissions of each role to perform respective actions on the
1194            * resource, replacing the existing permissions of each role on the
1195            * resource.
1196            *
1197            * @param companyId the primary key of the company
1198            * @param roleIdsToActionIds the map of roles to their new actions on the
1199            resource
1200            * @param resourceId the primary key of the resource
1201            * @throws SystemException if a system exception occurred
1202            */
1203            public static void setRolesPermissions(long companyId,
1204                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds,
1205                    long resourceId)
1206                    throws com.liferay.portal.kernel.exception.SystemException {
1207                    getService()
1208                            .setRolesPermissions(companyId, roleIdsToActionIds, resourceId);
1209            }
1210    
1211            /**
1212            * Sets the permissions of each role to perform respective actions on the
1213            * named resource, replacing the existing permissions of each role on the
1214            * resource.
1215            *
1216            * @param companyId the primary key of the company
1217            * @param roleIdsToActionIds the map of roles to their new actions on the
1218            resource
1219            * @param name the resource name
1220            * @param scope the resource scope
1221            * @param primKey the resource primKey
1222            * @throws SystemException if a system exception occurred
1223            */
1224            public static void setRolesPermissions(long companyId,
1225                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds,
1226                    java.lang.String name, int scope, java.lang.String primKey)
1227                    throws com.liferay.portal.kernel.exception.SystemException {
1228                    getService()
1229                            .setRolesPermissions(companyId, roleIdsToActionIds, name, scope,
1230                            primKey);
1231            }
1232    
1233            /**
1234            * Sets the user's permissions to perform the actions on the resource,
1235            * replacing the user's existing permissions on the resource.
1236            *
1237            * @param userId the primary key of the user
1238            * @param actionIds the primary keys of the actions
1239            * @param resourceId the primary key of the resource
1240            * @throws PortalException if a user with the primary key could not be found
1241            * @throws SystemException if a system exception occurred
1242            */
1243            public static void setUserPermissions(long userId,
1244                    java.lang.String[] actionIds, long resourceId)
1245                    throws com.liferay.portal.kernel.exception.PortalException,
1246                            com.liferay.portal.kernel.exception.SystemException {
1247                    getService().setUserPermissions(userId, actionIds, resourceId);
1248            }
1249    
1250            /**
1251            * Removes the permission from the role.
1252            *
1253            * @param roleId the primary key of the role
1254            * @param permissionId the primary key of the permission
1255            * @throws SystemException if a system exception occurred
1256            */
1257            public static void unsetRolePermission(long roleId, long permissionId)
1258                    throws com.liferay.portal.kernel.exception.SystemException {
1259                    getService().unsetRolePermission(roleId, permissionId);
1260            }
1261    
1262            /**
1263            * Removes the role's permissions to perform the action on the named
1264            * resource with the scope and primKey.
1265            *
1266            * @param roleId the primary key of the role
1267            * @param companyId the primary key of the company
1268            * @param name the resource name
1269            * @param scope the resource scope
1270            * @param primKey the resource primKey
1271            * @param actionId the action's ID
1272            * @throws SystemException if a system exception occurred
1273            */
1274            public static void unsetRolePermission(long roleId, long companyId,
1275                    java.lang.String name, int scope, java.lang.String primKey,
1276                    java.lang.String actionId)
1277                    throws com.liferay.portal.kernel.exception.SystemException {
1278                    getService()
1279                            .unsetRolePermission(roleId, companyId, name, scope, primKey,
1280                            actionId);
1281            }
1282    
1283            /**
1284            * Removes the role's permissions to perform the action on the named
1285            * resource.
1286            *
1287            * @param roleId the primary key of the role
1288            * @param companyId the primary key of the company
1289            * @param name the resource name
1290            * @param scope the resource scope
1291            * @param actionId the action's ID
1292            * @throws SystemException if a system exception occurred
1293            */
1294            public static void unsetRolePermissions(long roleId, long companyId,
1295                    java.lang.String name, int scope, java.lang.String actionId)
1296                    throws com.liferay.portal.kernel.exception.SystemException {
1297                    getService()
1298                            .unsetRolePermissions(roleId, companyId, name, scope, actionId);
1299            }
1300    
1301            /**
1302            * Removes the user's permissions to perform the actions on the resource.
1303            *
1304            * @param userId the primary key of the user
1305            * @param actionIds the primary keys of the actions
1306            * @param resourceId the primary key of the resource
1307            * @throws SystemException if a system exception occurred
1308            */
1309            public static void unsetUserPermissions(long userId,
1310                    java.lang.String[] actionIds, long resourceId)
1311                    throws com.liferay.portal.kernel.exception.SystemException {
1312                    getService().unsetUserPermissions(userId, actionIds, resourceId);
1313            }
1314    
1315            public static PermissionLocalService getService() {
1316                    if (_service == null) {
1317                            _service = (PermissionLocalService)PortalBeanLocatorUtil.locate(PermissionLocalService.class.getName());
1318    
1319                            ReferenceRegistry.registerReference(PermissionLocalServiceUtil.class,
1320                                    "_service");
1321                    }
1322    
1323                    return _service;
1324            }
1325    
1326            /**
1327             * @deprecated
1328             */
1329            public void setService(PermissionLocalService service) {
1330            }
1331    
1332            private static PermissionLocalService _service;
1333    }