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