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 boolean hasPermission(java.lang.String name,
382                    com.liferay.portal.model.PermissionedModel permissionedModel,
383                    java.lang.String actionId,
384                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag)
385                    throws com.liferay.portal.kernel.exception.PortalException {
386                    return getService()
387                                       .hasPermission(name, permissionedModel, actionId,
388                            resourceBlockIdsBag);
389            }
390    
391            public static boolean hasPermission(java.lang.String name, long primKey,
392                    java.lang.String actionId,
393                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag)
394                    throws com.liferay.portal.kernel.exception.PortalException {
395                    return getService()
396                                       .hasPermission(name, primKey, actionId, resourceBlockIdsBag);
397            }
398    
399            public static boolean isSupported(java.lang.String name) {
400                    return getService().isSupported(name);
401            }
402    
403            public static void releasePermissionedModelResourceBlock(
404                    java.lang.String name, long primKey)
405                    throws com.liferay.portal.kernel.exception.PortalException {
406                    getService().releasePermissionedModelResourceBlock(name, primKey);
407            }
408    
409            public static void releasePermissionedModelResourceBlock(
410                    com.liferay.portal.model.PermissionedModel permissionedModel) {
411                    getService().releasePermissionedModelResourceBlock(permissionedModel);
412            }
413    
414            /**
415            * Decrements the reference count of the resource block and updates it in
416            * the database or deletes the resource block if the reference count reaches
417            * zero.
418            *
419            * @param resourceBlock the resource block
420            */
421            public static void releaseResourceBlock(
422                    com.liferay.portal.model.ResourceBlock resourceBlock) {
423                    getService().releaseResourceBlock(resourceBlock);
424            }
425    
426            /**
427            * Decrements the reference count of the resource block and updates it in
428            * the database or deletes the resource block if the reference count reaches
429            * zero.
430            *
431            * @param resourceBlockId the primary key of the resource block
432            */
433            public static void releaseResourceBlock(long resourceBlockId) {
434                    getService().releaseResourceBlock(resourceBlockId);
435            }
436    
437            public static void removeAllGroupScopePermissions(long companyId,
438                    java.lang.String name, long roleId, java.lang.String actionId)
439                    throws com.liferay.portal.kernel.exception.PortalException {
440                    getService()
441                            .removeAllGroupScopePermissions(companyId, name, roleId, actionId);
442            }
443    
444            public static void removeAllGroupScopePermissions(long companyId,
445                    java.lang.String name, long roleId, long actionIdsLong) {
446                    getService()
447                            .removeAllGroupScopePermissions(companyId, name, roleId,
448                            actionIdsLong);
449            }
450    
451            public static void removeCompanyScopePermission(long companyId,
452                    java.lang.String name, long roleId, java.lang.String actionId)
453                    throws com.liferay.portal.kernel.exception.PortalException {
454                    getService()
455                            .removeCompanyScopePermission(companyId, name, roleId, actionId);
456            }
457    
458            public static void removeCompanyScopePermissions(long companyId,
459                    java.lang.String name, long roleId, long actionIdsLong) {
460                    getService()
461                            .removeCompanyScopePermissions(companyId, name, roleId,
462                            actionIdsLong);
463            }
464    
465            public static void removeGroupScopePermission(long companyId, long groupId,
466                    java.lang.String name, long roleId, java.lang.String actionId)
467                    throws com.liferay.portal.kernel.exception.PortalException {
468                    getService()
469                            .removeGroupScopePermission(companyId, groupId, name, roleId,
470                            actionId);
471            }
472    
473            public static void removeGroupScopePermissions(long companyId,
474                    long groupId, java.lang.String name, long roleId, long actionIdsLong) {
475                    getService()
476                            .removeGroupScopePermissions(companyId, groupId, name, roleId,
477                            actionIdsLong);
478            }
479    
480            public static void removeIndividualScopePermission(long companyId,
481                    long groupId, java.lang.String name,
482                    com.liferay.portal.model.PermissionedModel permissionedModel,
483                    long roleId, java.lang.String actionId)
484                    throws com.liferay.portal.kernel.exception.PortalException {
485                    getService()
486                            .removeIndividualScopePermission(companyId, groupId, name,
487                            permissionedModel, roleId, actionId);
488            }
489    
490            public static void removeIndividualScopePermission(long companyId,
491                    long groupId, java.lang.String name, long primKey, long roleId,
492                    java.lang.String actionId)
493                    throws com.liferay.portal.kernel.exception.PortalException {
494                    getService()
495                            .removeIndividualScopePermission(companyId, groupId, name, primKey,
496                            roleId, actionId);
497            }
498    
499            public static void removeIndividualScopePermissions(long companyId,
500                    long groupId, java.lang.String name,
501                    com.liferay.portal.model.PermissionedModel permissionedModel,
502                    long roleId, long actionIdsLong) {
503                    getService()
504                            .removeIndividualScopePermissions(companyId, groupId, name,
505                            permissionedModel, roleId, actionIdsLong);
506            }
507    
508            public static void removeIndividualScopePermissions(long companyId,
509                    long groupId, java.lang.String name, long primKey, long roleId,
510                    long actionIdsLong)
511                    throws com.liferay.portal.kernel.exception.PortalException {
512                    getService()
513                            .removeIndividualScopePermissions(companyId, groupId, name,
514                            primKey, roleId, actionIdsLong);
515            }
516    
517            /**
518            * Sets the Spring bean ID for this bean.
519            *
520            * @param beanIdentifier the Spring bean ID for this bean
521            */
522            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
523                    getService().setBeanIdentifier(beanIdentifier);
524            }
525    
526            public static void setCompanyScopePermissions(long companyId,
527                    java.lang.String name, long roleId,
528                    java.util.List<java.lang.String> actionIds)
529                    throws com.liferay.portal.kernel.exception.PortalException {
530                    getService()
531                            .setCompanyScopePermissions(companyId, name, roleId, actionIds);
532            }
533    
534            public static void setCompanyScopePermissions(long companyId,
535                    java.lang.String name, long roleId, long actionIdsLong) {
536                    getService()
537                            .setCompanyScopePermissions(companyId, name, roleId, actionIdsLong);
538            }
539    
540            public static void setGroupScopePermissions(long companyId, long groupId,
541                    java.lang.String name, long roleId,
542                    java.util.List<java.lang.String> actionIds)
543                    throws com.liferay.portal.kernel.exception.PortalException {
544                    getService()
545                            .setGroupScopePermissions(companyId, groupId, name, roleId,
546                            actionIds);
547            }
548    
549            public static void setGroupScopePermissions(long companyId, long groupId,
550                    java.lang.String name, long roleId, long actionIdsLong) {
551                    getService()
552                            .setGroupScopePermissions(companyId, groupId, name, roleId,
553                            actionIdsLong);
554            }
555    
556            public static void setIndividualScopePermissions(long companyId,
557                    long groupId, java.lang.String name,
558                    com.liferay.portal.model.PermissionedModel permissionedModel,
559                    long roleId, java.util.List<java.lang.String> actionIds)
560                    throws com.liferay.portal.kernel.exception.PortalException {
561                    getService()
562                            .setIndividualScopePermissions(companyId, groupId, name,
563                            permissionedModel, roleId, actionIds);
564            }
565    
566            public static void setIndividualScopePermissions(long companyId,
567                    long groupId, java.lang.String name,
568                    com.liferay.portal.model.PermissionedModel permissionedModel,
569                    long roleId, long actionIdsLong) {
570                    getService()
571                            .setIndividualScopePermissions(companyId, groupId, name,
572                            permissionedModel, roleId, actionIdsLong);
573            }
574    
575            public static void setIndividualScopePermissions(long companyId,
576                    long groupId, java.lang.String name, long primKey, long roleId,
577                    java.util.List<java.lang.String> actionIds)
578                    throws com.liferay.portal.kernel.exception.PortalException {
579                    getService()
580                            .setIndividualScopePermissions(companyId, groupId, name, primKey,
581                            roleId, actionIds);
582            }
583    
584            public static void setIndividualScopePermissions(long companyId,
585                    long groupId, java.lang.String name, long primKey, long roleId,
586                    long actionIdsLong)
587                    throws com.liferay.portal.kernel.exception.PortalException {
588                    getService()
589                            .setIndividualScopePermissions(companyId, groupId, name, primKey,
590                            roleId, actionIdsLong);
591            }
592    
593            public static void setIndividualScopePermissions(long companyId,
594                    long groupId, java.lang.String name, long primKey,
595                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds)
596                    throws com.liferay.portal.kernel.exception.PortalException {
597                    getService()
598                            .setIndividualScopePermissions(companyId, groupId, name, primKey,
599                            roleIdsToActionIds);
600            }
601    
602            public static void updateCompanyScopePermissions(long companyId,
603                    java.lang.String name, long roleId, long actionIdsLong, int operator) {
604                    getService()
605                            .updateCompanyScopePermissions(companyId, name, roleId,
606                            actionIdsLong, operator);
607            }
608    
609            public static void updateGroupScopePermissions(long companyId,
610                    long groupId, java.lang.String name, long roleId, long actionIdsLong,
611                    int operator) {
612                    getService()
613                            .updateGroupScopePermissions(companyId, groupId, name, roleId,
614                            actionIdsLong, operator);
615            }
616    
617            public static void updateIndividualScopePermissions(long companyId,
618                    long groupId, java.lang.String name,
619                    com.liferay.portal.model.PermissionedModel permissionedModel,
620                    long roleId, long actionIdsLong, int operator) {
621                    getService()
622                            .updateIndividualScopePermissions(companyId, groupId, name,
623                            permissionedModel, roleId, actionIdsLong, operator);
624            }
625    
626            /**
627            * Updates the resource block in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
628            *
629            * @param resourceBlock the resource block
630            * @return the resource block that was updated
631            */
632            public static com.liferay.portal.model.ResourceBlock updateResourceBlock(
633                    com.liferay.portal.model.ResourceBlock resourceBlock) {
634                    return getService().updateResourceBlock(resourceBlock);
635            }
636    
637            public static com.liferay.portal.model.ResourceBlock updateResourceBlockId(
638                    long companyId, long groupId, java.lang.String name,
639                    com.liferay.portal.model.PermissionedModel permissionedModel,
640                    java.lang.String permissionsHash,
641                    com.liferay.portal.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer) {
642                    return getService()
643                                       .updateResourceBlockId(companyId, groupId, name,
644                            permissionedModel, permissionsHash,
645                            resourceBlockPermissionsContainer);
646            }
647    
648            public static void verifyResourceBlockId(long companyId,
649                    java.lang.String name, long primKey)
650                    throws com.liferay.portal.kernel.exception.PortalException {
651                    getService().verifyResourceBlockId(companyId, name, primKey);
652            }
653    
654            public static ResourceBlockLocalService getService() {
655                    if (_service == null) {
656                            _service = (ResourceBlockLocalService)PortalBeanLocatorUtil.locate(ResourceBlockLocalService.class.getName());
657    
658                            ReferenceRegistry.registerReference(ResourceBlockLocalServiceUtil.class,
659                                    "_service");
660                    }
661    
662                    return _service;
663            }
664    
665            /**
666             * @deprecated As of 6.2.0
667             */
668            @Deprecated
669            public void setService(ResourceBlockLocalService service) {
670            }
671    
672            private static ResourceBlockLocalService _service;
673    }