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