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