001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for ResourceBlock. This utility wraps
024     * {@link com.liferay.portal.service.impl.ResourceBlockLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see ResourceBlockLocalService
032     * @see com.liferay.portal.service.base.ResourceBlockLocalServiceBaseImpl
033     * @see com.liferay.portal.service.impl.ResourceBlockLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class ResourceBlockLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.ResourceBlockLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static void addCompanyScopePermission(long companyId,
044                    java.lang.String name, long roleId, java.lang.String actionId)
045                    throws com.liferay.portal.kernel.exception.PortalException {
046                    getService().addCompanyScopePermission(companyId, name, roleId, actionId);
047            }
048    
049            public static void addCompanyScopePermissions(long companyId,
050                    java.lang.String name, long roleId, long actionIdsLong) {
051                    getService()
052                            .addCompanyScopePermissions(companyId, name, roleId, actionIdsLong);
053            }
054    
055            public static void addGroupScopePermission(long companyId, long groupId,
056                    java.lang.String name, long roleId, java.lang.String actionId)
057                    throws com.liferay.portal.kernel.exception.PortalException {
058                    getService()
059                            .addGroupScopePermission(companyId, groupId, name, roleId, actionId);
060            }
061    
062            public static void addGroupScopePermissions(long companyId, long groupId,
063                    java.lang.String name, long roleId, long actionIdsLong) {
064                    getService()
065                            .addGroupScopePermissions(companyId, groupId, name, roleId,
066                            actionIdsLong);
067            }
068    
069            public static void addIndividualScopePermission(long companyId,
070                    long groupId, java.lang.String name,
071                    com.liferay.portal.model.PermissionedModel permissionedModel,
072                    long roleId, java.lang.String actionId)
073                    throws com.liferay.portal.kernel.exception.PortalException {
074                    getService()
075                            .addIndividualScopePermission(companyId, groupId, name,
076                            permissionedModel, roleId, actionId);
077            }
078    
079            public static void addIndividualScopePermission(long companyId,
080                    long groupId, java.lang.String name, long primKey, long roleId,
081                    java.lang.String actionId)
082                    throws com.liferay.portal.kernel.exception.PortalException {
083                    getService()
084                            .addIndividualScopePermission(companyId, groupId, name, primKey,
085                            roleId, actionId);
086            }
087    
088            public static void addIndividualScopePermissions(long companyId,
089                    long groupId, java.lang.String name,
090                    com.liferay.portal.model.PermissionedModel permissionedModel,
091                    long roleId, long actionIdsLong) {
092                    getService()
093                            .addIndividualScopePermissions(companyId, groupId, name,
094                            permissionedModel, roleId, actionIdsLong);
095            }
096    
097            public static void addIndividualScopePermissions(long companyId,
098                    long groupId, java.lang.String name, long primKey, long roleId,
099                    long actionIdsLong)
100                    throws com.liferay.portal.kernel.exception.PortalException {
101                    getService()
102                            .addIndividualScopePermissions(companyId, groupId, name, primKey,
103                            roleId, actionIdsLong);
104            }
105    
106            /**
107            * Adds a resource block if necessary and associates the resource block
108            * permissions with it. The resource block will have an initial reference
109            * count of one.
110            *
111            * @param companyId the primary key of the resource block's company
112            * @param groupId the primary key of the resource block's group
113            * @param name the resource block's name
114            * @param permissionsHash the resource block's permission hash
115            * @param resourceBlockPermissionsContainer the resource block's
116            permissions container
117            * @return the new resource block
118            */
119            public static com.liferay.portal.model.ResourceBlock addResourceBlock(
120                    long companyId, long groupId, java.lang.String name,
121                    java.lang.String permissionsHash,
122                    com.liferay.portal.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer) {
123                    return getService()
124                                       .addResourceBlock(companyId, groupId, name, permissionsHash,
125                            resourceBlockPermissionsContainer);
126            }
127    
128            /**
129            * Adds the resource block to the database. Also notifies the appropriate model listeners.
130            *
131            * @param resourceBlock the resource block
132            * @return the resource block that was added
133            */
134            public static com.liferay.portal.model.ResourceBlock addResourceBlock(
135                    com.liferay.portal.model.ResourceBlock resourceBlock) {
136                    return getService().addResourceBlock(resourceBlock);
137            }
138    
139            /**
140            * Creates a new resource block with the primary key. Does not add the resource block to the database.
141            *
142            * @param resourceBlockId the primary key for the new resource block
143            * @return the new resource block
144            */
145            public static com.liferay.portal.model.ResourceBlock createResourceBlock(
146                    long resourceBlockId) {
147                    return getService().createResourceBlock(resourceBlockId);
148            }
149    
150            /**
151            * @throws PortalException
152            */
153            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
154                    com.liferay.portal.model.PersistedModel persistedModel)
155                    throws com.liferay.portal.kernel.exception.PortalException {
156                    return getService().deletePersistedModel(persistedModel);
157            }
158    
159            /**
160            * Deletes the resource block from the database. Also notifies the appropriate model listeners.
161            *
162            * @param resourceBlock the resource block
163            * @return the resource block that was removed
164            */
165            public static com.liferay.portal.model.ResourceBlock deleteResourceBlock(
166                    com.liferay.portal.model.ResourceBlock resourceBlock) {
167                    return getService().deleteResourceBlock(resourceBlock);
168            }
169    
170            /**
171            * Deletes the resource block with the primary key from the database. Also notifies the appropriate model listeners.
172            *
173            * @param resourceBlockId the primary key of the resource block
174            * @return the resource block that was removed
175            * @throws PortalException if a resource block with the primary key could not be found
176            */
177            public static com.liferay.portal.model.ResourceBlock deleteResourceBlock(
178                    long resourceBlockId)
179                    throws com.liferay.portal.kernel.exception.PortalException {
180                    return getService().deleteResourceBlock(resourceBlockId);
181            }
182    
183            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
184                    return getService().dynamicQuery();
185            }
186    
187            /**
188            * Performs a dynamic query on the database and returns the matching rows.
189            *
190            * @param dynamicQuery the dynamic query
191            * @return the matching rows
192            */
193            public static <T> java.util.List<T> dynamicQuery(
194                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
195                    return getService().dynamicQuery(dynamicQuery);
196            }
197    
198            /**
199            * Performs a dynamic query on the database and returns a range of the matching rows.
200            *
201            * <p>
202            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
203            * </p>
204            *
205            * @param dynamicQuery the dynamic query
206            * @param start the lower bound of the range of model instances
207            * @param end the upper bound of the range of model instances (not inclusive)
208            * @return the range of matching rows
209            */
210            public static <T> java.util.List<T> dynamicQuery(
211                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
212                    int end) {
213                    return getService().dynamicQuery(dynamicQuery, start, end);
214            }
215    
216            /**
217            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
218            *
219            * <p>
220            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
221            * </p>
222            *
223            * @param dynamicQuery the dynamic query
224            * @param start the lower bound of the range of model instances
225            * @param end the upper bound of the range of model instances (not inclusive)
226            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
227            * @return the ordered range of matching rows
228            */
229            public static <T> java.util.List<T> dynamicQuery(
230                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
231                    int end,
232                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
233                    return getService()
234                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
235            }
236    
237            /**
238            * Returns the number of rows matching the dynamic query.
239            *
240            * @param dynamicQuery the dynamic query
241            * @return the number of rows matching the dynamic query
242            */
243            public static long dynamicQueryCount(
244                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
245                    return getService().dynamicQueryCount(dynamicQuery);
246            }
247    
248            /**
249            * Returns the number of rows matching the dynamic query.
250            *
251            * @param dynamicQuery the dynamic query
252            * @param projection the projection to apply to the query
253            * @return the number of rows matching the dynamic query
254            */
255            public static long dynamicQueryCount(
256                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
257                    com.liferay.portal.kernel.dao.orm.Projection projection) {
258                    return getService().dynamicQueryCount(dynamicQuery, projection);
259            }
260    
261            public static com.liferay.portal.model.ResourceBlock fetchResourceBlock(
262                    long resourceBlockId) {
263                    return getService().fetchResourceBlock(resourceBlockId);
264            }
265    
266            public static long getActionId(java.lang.String name,
267                    java.lang.String actionId)
268                    throws com.liferay.portal.kernel.exception.PortalException {
269                    return getService().getActionId(name, actionId);
270            }
271    
272            public static long getActionIds(java.lang.String name,
273                    java.util.List<java.lang.String> actionIds)
274                    throws com.liferay.portal.kernel.exception.PortalException {
275                    return getService().getActionIds(name, actionIds);
276            }
277    
278            public static java.util.List<java.lang.String> getActionIds(
279                    java.lang.String name, long actionIdsLong) {
280                    return getService().getActionIds(name, actionIdsLong);
281            }
282    
283            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
284                    return getService().getActionableDynamicQuery();
285            }
286    
287            public static java.util.List<java.lang.String> getCompanyScopePermissions(
288                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId) {
289                    return getService().getCompanyScopePermissions(resourceBlock, roleId);
290            }
291    
292            public static java.util.List<java.lang.String> getGroupScopePermissions(
293                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId) {
294                    return getService().getGroupScopePermissions(resourceBlock, roleId);
295            }
296    
297            public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
298                    return getService().getIndexableActionableDynamicQuery();
299            }
300    
301            /**
302            * Returns the OSGi service identifier.
303            *
304            * @return the OSGi service identifier
305            */
306            public static java.lang.String getOSGiServiceIdentifier() {
307                    return getService().getOSGiServiceIdentifier();
308            }
309    
310            public static com.liferay.portal.model.PermissionedModel getPermissionedModel(
311                    java.lang.String name, long primKey)
312                    throws com.liferay.portal.kernel.exception.PortalException {
313                    return getService().getPermissionedModel(name, primKey);
314            }
315    
316            public static java.util.List<java.lang.String> getPermissions(
317                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId) {
318                    return getService().getPermissions(resourceBlock, roleId);
319            }
320    
321            public static com.liferay.portal.model.PersistedModel getPersistedModel(
322                    java.io.Serializable primaryKeyObj)
323                    throws com.liferay.portal.kernel.exception.PortalException {
324                    return getService().getPersistedModel(primaryKeyObj);
325            }
326    
327            public static com.liferay.portal.model.ResourceBlock getResourceBlock(
328                    java.lang.String name, long primKey)
329                    throws com.liferay.portal.kernel.exception.PortalException {
330                    return getService().getResourceBlock(name, primKey);
331            }
332    
333            /**
334            * Returns the resource block with the primary key.
335            *
336            * @param resourceBlockId the primary key of the resource block
337            * @return the resource block
338            * @throws PortalException if a resource block with the primary key could not be found
339            */
340            public static com.liferay.portal.model.ResourceBlock getResourceBlock(
341                    long resourceBlockId)
342                    throws com.liferay.portal.kernel.exception.PortalException {
343                    return getService().getResourceBlock(resourceBlockId);
344            }
345    
346            public static java.util.List<java.lang.Long> getResourceBlockIds(
347                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag,
348                    java.lang.String name, java.lang.String actionId)
349                    throws com.liferay.portal.kernel.exception.PortalException {
350                    return getService()
351                                       .getResourceBlockIds(resourceBlockIdsBag, name, actionId);
352            }
353    
354            public static com.liferay.portal.security.permission.ResourceBlockIdsBag getResourceBlockIdsBag(
355                    long companyId, long groupId, java.lang.String name, long[] roleIds) {
356                    return getService()
357                                       .getResourceBlockIdsBag(companyId, groupId, name, roleIds);
358            }
359    
360            /**
361            * Returns a range of all the resource blocks.
362            *
363            * <p>
364            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
365            * </p>
366            *
367            * @param start the lower bound of the range of resource blocks
368            * @param end the upper bound of the range of resource blocks (not inclusive)
369            * @return the range of resource blocks
370            */
371            public static java.util.List<com.liferay.portal.model.ResourceBlock> getResourceBlocks(
372                    int start, int end) {
373                    return getService().getResourceBlocks(start, end);
374            }
375    
376            /**
377            * Returns the number of resource blocks.
378            *
379            * @return the number of resource blocks
380            */
381            public static int getResourceBlocksCount() {
382                    return getService().getResourceBlocksCount();
383            }
384    
385            public static java.util.List<com.liferay.portal.model.Role> getRoles(
386                    java.lang.String name, long primKey, java.lang.String actionId)
387                    throws com.liferay.portal.kernel.exception.PortalException {
388                    return getService().getRoles(name, primKey, actionId);
389            }
390    
391            public static boolean hasPermission(java.lang.String name,
392                    com.liferay.portal.model.PermissionedModel permissionedModel,
393                    java.lang.String actionId,
394                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag)
395                    throws com.liferay.portal.kernel.exception.PortalException {
396                    return getService()
397                                       .hasPermission(name, permissionedModel, actionId,
398                            resourceBlockIdsBag);
399            }
400    
401            public static boolean hasPermission(java.lang.String name, long primKey,
402                    java.lang.String actionId,
403                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag)
404                    throws com.liferay.portal.kernel.exception.PortalException {
405                    return getService()
406                                       .hasPermission(name, primKey, actionId, resourceBlockIdsBag);
407            }
408    
409            public static boolean isSupported(java.lang.String name) {
410                    return getService().isSupported(name);
411            }
412    
413            public static void releasePermissionedModelResourceBlock(
414                    java.lang.String name, long primKey)
415                    throws com.liferay.portal.kernel.exception.PortalException {
416                    getService().releasePermissionedModelResourceBlock(name, primKey);
417            }
418    
419            public static void releasePermissionedModelResourceBlock(
420                    com.liferay.portal.model.PermissionedModel permissionedModel) {
421                    getService().releasePermissionedModelResourceBlock(permissionedModel);
422            }
423    
424            /**
425            * Decrements the reference count of the resource block and updates it in
426            * the database or deletes the resource block if the reference count reaches
427            * zero.
428            *
429            * @param resourceBlock the resource block
430            */
431            public static void releaseResourceBlock(
432                    com.liferay.portal.model.ResourceBlock resourceBlock) {
433                    getService().releaseResourceBlock(resourceBlock);
434            }
435    
436            /**
437            * Decrements the reference count of the resource block and updates it in
438            * the database or deletes the resource block if the reference count reaches
439            * zero.
440            *
441            * @param resourceBlockId the primary key of the resource block
442            */
443            public static void releaseResourceBlock(long resourceBlockId) {
444                    getService().releaseResourceBlock(resourceBlockId);
445            }
446    
447            public static void removeAllGroupScopePermissions(long companyId,
448                    java.lang.String name, long roleId, java.lang.String actionId)
449                    throws com.liferay.portal.kernel.exception.PortalException {
450                    getService()
451                            .removeAllGroupScopePermissions(companyId, name, roleId, actionId);
452            }
453    
454            public static void removeAllGroupScopePermissions(long companyId,
455                    java.lang.String name, long roleId, long actionIdsLong) {
456                    getService()
457                            .removeAllGroupScopePermissions(companyId, name, roleId,
458                            actionIdsLong);
459            }
460    
461            public static void removeCompanyScopePermission(long companyId,
462                    java.lang.String name, long roleId, java.lang.String actionId)
463                    throws com.liferay.portal.kernel.exception.PortalException {
464                    getService()
465                            .removeCompanyScopePermission(companyId, name, roleId, actionId);
466            }
467    
468            public static void removeCompanyScopePermissions(long companyId,
469                    java.lang.String name, long roleId, long actionIdsLong) {
470                    getService()
471                            .removeCompanyScopePermissions(companyId, name, roleId,
472                            actionIdsLong);
473            }
474    
475            public static void removeGroupScopePermission(long companyId, long groupId,
476                    java.lang.String name, long roleId, java.lang.String actionId)
477                    throws com.liferay.portal.kernel.exception.PortalException {
478                    getService()
479                            .removeGroupScopePermission(companyId, groupId, name, roleId,
480                            actionId);
481            }
482    
483            public static void removeGroupScopePermissions(long companyId,
484                    long groupId, java.lang.String name, long roleId, long actionIdsLong) {
485                    getService()
486                            .removeGroupScopePermissions(companyId, groupId, name, roleId,
487                            actionIdsLong);
488            }
489    
490            public static void removeIndividualScopePermission(long companyId,
491                    long groupId, java.lang.String name,
492                    com.liferay.portal.model.PermissionedModel permissionedModel,
493                    long roleId, java.lang.String actionId)
494                    throws com.liferay.portal.kernel.exception.PortalException {
495                    getService()
496                            .removeIndividualScopePermission(companyId, groupId, name,
497                            permissionedModel, roleId, actionId);
498            }
499    
500            public static void removeIndividualScopePermission(long companyId,
501                    long groupId, java.lang.String name, long primKey, long roleId,
502                    java.lang.String actionId)
503                    throws com.liferay.portal.kernel.exception.PortalException {
504                    getService()
505                            .removeIndividualScopePermission(companyId, groupId, name, primKey,
506                            roleId, actionId);
507            }
508    
509            public static void removeIndividualScopePermissions(long companyId,
510                    long groupId, java.lang.String name,
511                    com.liferay.portal.model.PermissionedModel permissionedModel,
512                    long roleId, long actionIdsLong) {
513                    getService()
514                            .removeIndividualScopePermissions(companyId, groupId, name,
515                            permissionedModel, roleId, actionIdsLong);
516            }
517    
518            public static void removeIndividualScopePermissions(long companyId,
519                    long groupId, java.lang.String name, long primKey, long roleId,
520                    long actionIdsLong)
521                    throws com.liferay.portal.kernel.exception.PortalException {
522                    getService()
523                            .removeIndividualScopePermissions(companyId, groupId, name,
524                            primKey, roleId, actionIdsLong);
525            }
526    
527            public static void setCompanyScopePermissions(long companyId,
528                    java.lang.String name, long roleId,
529                    java.util.List<java.lang.String> actionIds)
530                    throws com.liferay.portal.kernel.exception.PortalException {
531                    getService()
532                            .setCompanyScopePermissions(companyId, name, roleId, actionIds);
533            }
534    
535            public static void setCompanyScopePermissions(long companyId,
536                    java.lang.String name, long roleId, long actionIdsLong) {
537                    getService()
538                            .setCompanyScopePermissions(companyId, name, roleId, actionIdsLong);
539            }
540    
541            public static void setGroupScopePermissions(long companyId, long groupId,
542                    java.lang.String name, long roleId,
543                    java.util.List<java.lang.String> actionIds)
544                    throws com.liferay.portal.kernel.exception.PortalException {
545                    getService()
546                            .setGroupScopePermissions(companyId, groupId, name, roleId,
547                            actionIds);
548            }
549    
550            public static void setGroupScopePermissions(long companyId, long groupId,
551                    java.lang.String name, long roleId, long actionIdsLong) {
552                    getService()
553                            .setGroupScopePermissions(companyId, groupId, name, roleId,
554                            actionIdsLong);
555            }
556    
557            public static void setIndividualScopePermissions(long companyId,
558                    long groupId, java.lang.String name,
559                    com.liferay.portal.model.PermissionedModel permissionedModel,
560                    long roleId, java.util.List<java.lang.String> actionIds)
561                    throws com.liferay.portal.kernel.exception.PortalException {
562                    getService()
563                            .setIndividualScopePermissions(companyId, groupId, name,
564                            permissionedModel, roleId, actionIds);
565            }
566    
567            public static void setIndividualScopePermissions(long companyId,
568                    long groupId, java.lang.String name,
569                    com.liferay.portal.model.PermissionedModel permissionedModel,
570                    long roleId, long actionIdsLong) {
571                    getService()
572                            .setIndividualScopePermissions(companyId, groupId, name,
573                            permissionedModel, roleId, actionIdsLong);
574            }
575    
576            public static void setIndividualScopePermissions(long companyId,
577                    long groupId, java.lang.String name, long primKey, long roleId,
578                    java.util.List<java.lang.String> actionIds)
579                    throws com.liferay.portal.kernel.exception.PortalException {
580                    getService()
581                            .setIndividualScopePermissions(companyId, groupId, name, primKey,
582                            roleId, actionIds);
583            }
584    
585            public static void setIndividualScopePermissions(long companyId,
586                    long groupId, java.lang.String name, long primKey, long roleId,
587                    long actionIdsLong)
588                    throws com.liferay.portal.kernel.exception.PortalException {
589                    getService()
590                            .setIndividualScopePermissions(companyId, groupId, name, primKey,
591                            roleId, actionIdsLong);
592            }
593    
594            public static void setIndividualScopePermissions(long companyId,
595                    long groupId, java.lang.String name, long primKey,
596                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds)
597                    throws com.liferay.portal.kernel.exception.PortalException {
598                    getService()
599                            .setIndividualScopePermissions(companyId, groupId, name, primKey,
600                            roleIdsToActionIds);
601            }
602    
603            public static void updateCompanyScopePermissions(long companyId,
604                    java.lang.String name, long roleId, long actionIdsLong, int operator) {
605                    getService()
606                            .updateCompanyScopePermissions(companyId, name, roleId,
607                            actionIdsLong, operator);
608            }
609    
610            public static void updateGroupScopePermissions(long companyId,
611                    long groupId, java.lang.String name, long roleId, long actionIdsLong,
612                    int operator) {
613                    getService()
614                            .updateGroupScopePermissions(companyId, groupId, name, roleId,
615                            actionIdsLong, operator);
616            }
617    
618            public static void updateIndividualScopePermissions(long companyId,
619                    long groupId, java.lang.String name,
620                    com.liferay.portal.model.PermissionedModel permissionedModel,
621                    long roleId, long actionIdsLong, int operator) {
622                    getService()
623                            .updateIndividualScopePermissions(companyId, groupId, name,
624                            permissionedModel, roleId, actionIdsLong, operator);
625            }
626    
627            /**
628            * Updates the resource block in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
629            *
630            * @param resourceBlock the resource block
631            * @return the resource block that was updated
632            */
633            public static com.liferay.portal.model.ResourceBlock updateResourceBlock(
634                    com.liferay.portal.model.ResourceBlock resourceBlock) {
635                    return getService().updateResourceBlock(resourceBlock);
636            }
637    
638            public static com.liferay.portal.model.ResourceBlock updateResourceBlockId(
639                    long companyId, long groupId, java.lang.String name,
640                    com.liferay.portal.model.PermissionedModel permissionedModel,
641                    java.lang.String permissionsHash,
642                    com.liferay.portal.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer) {
643                    return getService()
644                                       .updateResourceBlockId(companyId, groupId, name,
645                            permissionedModel, permissionsHash,
646                            resourceBlockPermissionsContainer);
647            }
648    
649            public static void verifyResourceBlockId(long companyId,
650                    java.lang.String name, long primKey)
651                    throws com.liferay.portal.kernel.exception.PortalException {
652                    getService().verifyResourceBlockId(companyId, name, primKey);
653            }
654    
655            public static ResourceBlockLocalService getService() {
656                    if (_service == null) {
657                            _service = (ResourceBlockLocalService)PortalBeanLocatorUtil.locate(ResourceBlockLocalService.class.getName());
658    
659                            ReferenceRegistry.registerReference(ResourceBlockLocalServiceUtil.class,
660                                    "_service");
661                    }
662    
663                    return _service;
664            }
665    
666            private static ResourceBlockLocalService _service;
667    }