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            /**
288            * Returns the Spring bean ID for this bean.
289            *
290            * @return the Spring bean ID for this bean
291            */
292            public static java.lang.String getBeanIdentifier() {
293                    return getService().getBeanIdentifier();
294            }
295    
296            public static java.util.List<java.lang.String> getCompanyScopePermissions(
297                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId) {
298                    return getService().getCompanyScopePermissions(resourceBlock, roleId);
299            }
300    
301            public static java.util.List<java.lang.String> getGroupScopePermissions(
302                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId) {
303                    return getService().getGroupScopePermissions(resourceBlock, roleId);
304            }
305    
306            public static com.liferay.portal.model.PermissionedModel getPermissionedModel(
307                    java.lang.String name, long primKey)
308                    throws com.liferay.portal.kernel.exception.PortalException {
309                    return getService().getPermissionedModel(name, primKey);
310            }
311    
312            public static java.util.List<java.lang.String> getPermissions(
313                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId) {
314                    return getService().getPermissions(resourceBlock, roleId);
315            }
316    
317            public static com.liferay.portal.model.PersistedModel getPersistedModel(
318                    java.io.Serializable primaryKeyObj)
319                    throws com.liferay.portal.kernel.exception.PortalException {
320                    return getService().getPersistedModel(primaryKeyObj);
321            }
322    
323            public static com.liferay.portal.model.ResourceBlock getResourceBlock(
324                    java.lang.String name, long primKey)
325                    throws com.liferay.portal.kernel.exception.PortalException {
326                    return getService().getResourceBlock(name, primKey);
327            }
328    
329            /**
330            * Returns the resource block with the primary key.
331            *
332            * @param resourceBlockId the primary key of the resource block
333            * @return the resource block
334            * @throws PortalException if a resource block with the primary key could not be found
335            */
336            public static com.liferay.portal.model.ResourceBlock getResourceBlock(
337                    long resourceBlockId)
338                    throws com.liferay.portal.kernel.exception.PortalException {
339                    return getService().getResourceBlock(resourceBlockId);
340            }
341    
342            public static java.util.List<java.lang.Long> getResourceBlockIds(
343                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag,
344                    java.lang.String name, java.lang.String actionId)
345                    throws com.liferay.portal.kernel.exception.PortalException {
346                    return getService()
347                                       .getResourceBlockIds(resourceBlockIdsBag, name, actionId);
348            }
349    
350            public static com.liferay.portal.security.permission.ResourceBlockIdsBag getResourceBlockIdsBag(
351                    long companyId, long groupId, java.lang.String name, long[] roleIds) {
352                    return getService()
353                                       .getResourceBlockIdsBag(companyId, groupId, name, roleIds);
354            }
355    
356            /**
357            * Returns a range of all the resource blocks.
358            *
359            * <p>
360            * 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.
361            * </p>
362            *
363            * @param start the lower bound of the range of resource blocks
364            * @param end the upper bound of the range of resource blocks (not inclusive)
365            * @return the range of resource blocks
366            */
367            public static java.util.List<com.liferay.portal.model.ResourceBlock> getResourceBlocks(
368                    int start, int end) {
369                    return getService().getResourceBlocks(start, end);
370            }
371    
372            /**
373            * Returns the number of resource blocks.
374            *
375            * @return the number of resource blocks
376            */
377            public static int getResourceBlocksCount() {
378                    return getService().getResourceBlocksCount();
379            }
380    
381            public static java.util.List<com.liferay.portal.model.Role> getRoles(
382                    java.lang.String name, long primKey, java.lang.String actionId)
383                    throws com.liferay.portal.kernel.exception.PortalException {
384                    return getService().getRoles(name, primKey, actionId);
385            }
386    
387            public static boolean hasPermission(java.lang.String name,
388                    com.liferay.portal.model.PermissionedModel permissionedModel,
389                    java.lang.String actionId,
390                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag)
391                    throws com.liferay.portal.kernel.exception.PortalException {
392                    return getService()
393                                       .hasPermission(name, permissionedModel, actionId,
394                            resourceBlockIdsBag);
395            }
396    
397            public static boolean hasPermission(java.lang.String name, long primKey,
398                    java.lang.String actionId,
399                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag)
400                    throws com.liferay.portal.kernel.exception.PortalException {
401                    return getService()
402                                       .hasPermission(name, primKey, actionId, resourceBlockIdsBag);
403            }
404    
405            public static boolean isSupported(java.lang.String name) {
406                    return getService().isSupported(name);
407            }
408    
409            public static void releasePermissionedModelResourceBlock(
410                    java.lang.String name, long primKey)
411                    throws com.liferay.portal.kernel.exception.PortalException {
412                    getService().releasePermissionedModelResourceBlock(name, primKey);
413            }
414    
415            public static void releasePermissionedModelResourceBlock(
416                    com.liferay.portal.model.PermissionedModel permissionedModel) {
417                    getService().releasePermissionedModelResourceBlock(permissionedModel);
418            }
419    
420            /**
421            * Decrements the reference count of the resource block and updates it in
422            * the database or deletes the resource block if the reference count reaches
423            * zero.
424            *
425            * @param resourceBlock the resource block
426            */
427            public static void releaseResourceBlock(
428                    com.liferay.portal.model.ResourceBlock resourceBlock) {
429                    getService().releaseResourceBlock(resourceBlock);
430            }
431    
432            /**
433            * Decrements the reference count of the resource block and updates it in
434            * the database or deletes the resource block if the reference count reaches
435            * zero.
436            *
437            * @param resourceBlockId the primary key of the resource block
438            */
439            public static void releaseResourceBlock(long resourceBlockId) {
440                    getService().releaseResourceBlock(resourceBlockId);
441            }
442    
443            public static void removeAllGroupScopePermissions(long companyId,
444                    java.lang.String name, long roleId, java.lang.String actionId)
445                    throws com.liferay.portal.kernel.exception.PortalException {
446                    getService()
447                            .removeAllGroupScopePermissions(companyId, name, roleId, actionId);
448            }
449    
450            public static void removeAllGroupScopePermissions(long companyId,
451                    java.lang.String name, long roleId, long actionIdsLong) {
452                    getService()
453                            .removeAllGroupScopePermissions(companyId, name, roleId,
454                            actionIdsLong);
455            }
456    
457            public static void removeCompanyScopePermission(long companyId,
458                    java.lang.String name, long roleId, java.lang.String actionId)
459                    throws com.liferay.portal.kernel.exception.PortalException {
460                    getService()
461                            .removeCompanyScopePermission(companyId, name, roleId, actionId);
462            }
463    
464            public static void removeCompanyScopePermissions(long companyId,
465                    java.lang.String name, long roleId, long actionIdsLong) {
466                    getService()
467                            .removeCompanyScopePermissions(companyId, name, roleId,
468                            actionIdsLong);
469            }
470    
471            public static void removeGroupScopePermission(long companyId, long groupId,
472                    java.lang.String name, long roleId, java.lang.String actionId)
473                    throws com.liferay.portal.kernel.exception.PortalException {
474                    getService()
475                            .removeGroupScopePermission(companyId, groupId, name, roleId,
476                            actionId);
477            }
478    
479            public static void removeGroupScopePermissions(long companyId,
480                    long groupId, java.lang.String name, long roleId, long actionIdsLong) {
481                    getService()
482                            .removeGroupScopePermissions(companyId, groupId, name, roleId,
483                            actionIdsLong);
484            }
485    
486            public static void removeIndividualScopePermission(long companyId,
487                    long groupId, java.lang.String name,
488                    com.liferay.portal.model.PermissionedModel permissionedModel,
489                    long roleId, java.lang.String actionId)
490                    throws com.liferay.portal.kernel.exception.PortalException {
491                    getService()
492                            .removeIndividualScopePermission(companyId, groupId, name,
493                            permissionedModel, roleId, actionId);
494            }
495    
496            public static void removeIndividualScopePermission(long companyId,
497                    long groupId, java.lang.String name, long primKey, long roleId,
498                    java.lang.String actionId)
499                    throws com.liferay.portal.kernel.exception.PortalException {
500                    getService()
501                            .removeIndividualScopePermission(companyId, groupId, name, primKey,
502                            roleId, actionId);
503            }
504    
505            public static void removeIndividualScopePermissions(long companyId,
506                    long groupId, java.lang.String name,
507                    com.liferay.portal.model.PermissionedModel permissionedModel,
508                    long roleId, long actionIdsLong) {
509                    getService()
510                            .removeIndividualScopePermissions(companyId, groupId, name,
511                            permissionedModel, roleId, actionIdsLong);
512            }
513    
514            public static void removeIndividualScopePermissions(long companyId,
515                    long groupId, java.lang.String name, long primKey, long roleId,
516                    long actionIdsLong)
517                    throws com.liferay.portal.kernel.exception.PortalException {
518                    getService()
519                            .removeIndividualScopePermissions(companyId, groupId, name,
520                            primKey, roleId, actionIdsLong);
521            }
522    
523            /**
524            * Sets the Spring bean ID for this bean.
525            *
526            * @param beanIdentifier the Spring bean ID for this bean
527            */
528            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
529                    getService().setBeanIdentifier(beanIdentifier);
530            }
531    
532            public static void setCompanyScopePermissions(long companyId,
533                    java.lang.String name, long roleId,
534                    java.util.List<java.lang.String> actionIds)
535                    throws com.liferay.portal.kernel.exception.PortalException {
536                    getService()
537                            .setCompanyScopePermissions(companyId, name, roleId, actionIds);
538            }
539    
540            public static void setCompanyScopePermissions(long companyId,
541                    java.lang.String name, long roleId, long actionIdsLong) {
542                    getService()
543                            .setCompanyScopePermissions(companyId, name, roleId, actionIdsLong);
544            }
545    
546            public static void setGroupScopePermissions(long companyId, long groupId,
547                    java.lang.String name, long roleId,
548                    java.util.List<java.lang.String> actionIds)
549                    throws com.liferay.portal.kernel.exception.PortalException {
550                    getService()
551                            .setGroupScopePermissions(companyId, groupId, name, roleId,
552                            actionIds);
553            }
554    
555            public static void setGroupScopePermissions(long companyId, long groupId,
556                    java.lang.String name, long roleId, long actionIdsLong) {
557                    getService()
558                            .setGroupScopePermissions(companyId, groupId, name, roleId,
559                            actionIdsLong);
560            }
561    
562            public static void setIndividualScopePermissions(long companyId,
563                    long groupId, java.lang.String name,
564                    com.liferay.portal.model.PermissionedModel permissionedModel,
565                    long roleId, java.util.List<java.lang.String> actionIds)
566                    throws com.liferay.portal.kernel.exception.PortalException {
567                    getService()
568                            .setIndividualScopePermissions(companyId, groupId, name,
569                            permissionedModel, roleId, actionIds);
570            }
571    
572            public static void setIndividualScopePermissions(long companyId,
573                    long groupId, java.lang.String name,
574                    com.liferay.portal.model.PermissionedModel permissionedModel,
575                    long roleId, long actionIdsLong) {
576                    getService()
577                            .setIndividualScopePermissions(companyId, groupId, name,
578                            permissionedModel, roleId, actionIdsLong);
579            }
580    
581            public static void setIndividualScopePermissions(long companyId,
582                    long groupId, java.lang.String name, long primKey, long roleId,
583                    java.util.List<java.lang.String> actionIds)
584                    throws com.liferay.portal.kernel.exception.PortalException {
585                    getService()
586                            .setIndividualScopePermissions(companyId, groupId, name, primKey,
587                            roleId, actionIds);
588            }
589    
590            public static void setIndividualScopePermissions(long companyId,
591                    long groupId, java.lang.String name, long primKey, long roleId,
592                    long actionIdsLong)
593                    throws com.liferay.portal.kernel.exception.PortalException {
594                    getService()
595                            .setIndividualScopePermissions(companyId, groupId, name, primKey,
596                            roleId, actionIdsLong);
597            }
598    
599            public static void setIndividualScopePermissions(long companyId,
600                    long groupId, java.lang.String name, long primKey,
601                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds)
602                    throws com.liferay.portal.kernel.exception.PortalException {
603                    getService()
604                            .setIndividualScopePermissions(companyId, groupId, name, primKey,
605                            roleIdsToActionIds);
606            }
607    
608            public static void updateCompanyScopePermissions(long companyId,
609                    java.lang.String name, long roleId, long actionIdsLong, int operator) {
610                    getService()
611                            .updateCompanyScopePermissions(companyId, name, roleId,
612                            actionIdsLong, operator);
613            }
614    
615            public static void updateGroupScopePermissions(long companyId,
616                    long groupId, java.lang.String name, long roleId, long actionIdsLong,
617                    int operator) {
618                    getService()
619                            .updateGroupScopePermissions(companyId, groupId, name, roleId,
620                            actionIdsLong, operator);
621            }
622    
623            public static void updateIndividualScopePermissions(long companyId,
624                    long groupId, java.lang.String name,
625                    com.liferay.portal.model.PermissionedModel permissionedModel,
626                    long roleId, long actionIdsLong, int operator) {
627                    getService()
628                            .updateIndividualScopePermissions(companyId, groupId, name,
629                            permissionedModel, roleId, actionIdsLong, operator);
630            }
631    
632            /**
633            * Updates the resource block in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
634            *
635            * @param resourceBlock the resource block
636            * @return the resource block that was updated
637            */
638            public static com.liferay.portal.model.ResourceBlock updateResourceBlock(
639                    com.liferay.portal.model.ResourceBlock resourceBlock) {
640                    return getService().updateResourceBlock(resourceBlock);
641            }
642    
643            public static com.liferay.portal.model.ResourceBlock updateResourceBlockId(
644                    long companyId, long groupId, java.lang.String name,
645                    com.liferay.portal.model.PermissionedModel permissionedModel,
646                    java.lang.String permissionsHash,
647                    com.liferay.portal.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer) {
648                    return getService()
649                                       .updateResourceBlockId(companyId, groupId, name,
650                            permissionedModel, permissionsHash,
651                            resourceBlockPermissionsContainer);
652            }
653    
654            public static void verifyResourceBlockId(long companyId,
655                    java.lang.String name, long primKey)
656                    throws com.liferay.portal.kernel.exception.PortalException {
657                    getService().verifyResourceBlockId(companyId, name, primKey);
658            }
659    
660            public static ResourceBlockLocalService getService() {
661                    if (_service == null) {
662                            _service = (ResourceBlockLocalService)PortalBeanLocatorUtil.locate(ResourceBlockLocalService.class.getName());
663    
664                            ReferenceRegistry.registerReference(ResourceBlockLocalServiceUtil.class,
665                                    "_service");
666                    }
667    
668                    return _service;
669            }
670    
671            /**
672             * @deprecated As of 6.2.0
673             */
674            @Deprecated
675            public void setService(ResourceBlockLocalService service) {
676            }
677    
678            private static ResourceBlockLocalService _service;
679    }