001    /**
002     * Copyright (c) 2000-2012 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.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.transaction.Isolation;
020    import com.liferay.portal.kernel.transaction.Propagation;
021    import com.liferay.portal.kernel.transaction.Transactional;
022    
023    /**
024     * The interface for the resource block local service.
025     *
026     * <p>
027     * 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.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see ResourceBlockLocalServiceUtil
032     * @see com.liferay.portal.service.base.ResourceBlockLocalServiceBaseImpl
033     * @see com.liferay.portal.service.impl.ResourceBlockLocalServiceImpl
034     * @generated
035     */
036    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
037            PortalException.class, SystemException.class})
038    public interface ResourceBlockLocalService extends PermissionedModelLocalService {
039            /*
040             * NOTE FOR DEVELOPERS:
041             *
042             * Never modify or reference this interface directly. Always use {@link ResourceBlockLocalServiceUtil} to access the resource block local service. Add custom service methods to {@link com.liferay.portal.service.impl.ResourceBlockLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
043             */
044    
045            /**
046            * Adds the resource block to the database. Also notifies the appropriate model listeners.
047            *
048            * @param resourceBlock the resource block
049            * @return the resource block that was added
050            * @throws SystemException if a system exception occurred
051            */
052            public com.liferay.portal.model.ResourceBlock addResourceBlock(
053                    com.liferay.portal.model.ResourceBlock resourceBlock)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            /**
057            * Creates a new resource block with the primary key. Does not add the resource block to the database.
058            *
059            * @param resourceBlockId the primary key for the new resource block
060            * @return the new resource block
061            */
062            public com.liferay.portal.model.ResourceBlock createResourceBlock(
063                    long resourceBlockId);
064    
065            /**
066            * Deletes the resource block with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param resourceBlockId the primary key of the resource block
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 void deleteResourceBlock(long resourceBlockId)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            /**
077            * Deletes the resource block from the database. Also notifies the appropriate model listeners.
078            *
079            * @param resourceBlock the resource block
080            * @throws SystemException if a system exception occurred
081            */
082            public void deleteResourceBlock(
083                    com.liferay.portal.model.ResourceBlock resourceBlock)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            /**
087            * Performs a dynamic query on the database and returns the matching rows.
088            *
089            * @param dynamicQuery the dynamic query
090            * @return the matching rows
091            * @throws SystemException if a system exception occurred
092            */
093            @SuppressWarnings("rawtypes")
094            public java.util.List dynamicQuery(
095                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            /**
099            * Performs a dynamic query on the database and returns a range of the matching rows.
100            *
101            * <p>
102            * 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.
103            * </p>
104            *
105            * @param dynamicQuery the dynamic query
106            * @param start the lower bound of the range of model instances
107            * @param end the upper bound of the range of model instances (not inclusive)
108            * @return the range of matching rows
109            * @throws SystemException if a system exception occurred
110            */
111            @SuppressWarnings("rawtypes")
112            public java.util.List dynamicQuery(
113                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114                    int end) throws com.liferay.portal.kernel.exception.SystemException;
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    
137            /**
138            * Returns the number of rows that match the dynamic query.
139            *
140            * @param dynamicQuery the dynamic query
141            * @return the number of rows that match the dynamic query
142            * @throws SystemException if a system exception occurred
143            */
144            public long dynamicQueryCount(
145                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149            public com.liferay.portal.model.ResourceBlock fetchResourceBlock(
150                    long resourceBlockId)
151                    throws com.liferay.portal.kernel.exception.SystemException;
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            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162            public com.liferay.portal.model.ResourceBlock getResourceBlock(
163                    long resourceBlockId)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException;
166    
167            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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    
173            /**
174            * Returns a range of all the resource blocks.
175            *
176            * <p>
177            * 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.
178            * </p>
179            *
180            * @param start the lower bound of the range of resource blocks
181            * @param end the upper bound of the range of resource blocks (not inclusive)
182            * @return the range of resource blocks
183            * @throws SystemException if a system exception occurred
184            */
185            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186            public java.util.List<com.liferay.portal.model.ResourceBlock> getResourceBlocks(
187                    int start, int end)
188                    throws com.liferay.portal.kernel.exception.SystemException;
189    
190            /**
191            * Returns the number of resource blocks.
192            *
193            * @return the number of resource blocks
194            * @throws SystemException if a system exception occurred
195            */
196            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197            public int getResourceBlocksCount()
198                    throws com.liferay.portal.kernel.exception.SystemException;
199    
200            /**
201            * Updates the resource block in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
202            *
203            * @param resourceBlock the resource block
204            * @return the resource block that was updated
205            * @throws SystemException if a system exception occurred
206            */
207            public com.liferay.portal.model.ResourceBlock updateResourceBlock(
208                    com.liferay.portal.model.ResourceBlock resourceBlock)
209                    throws com.liferay.portal.kernel.exception.SystemException;
210    
211            /**
212            * Updates the resource block in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
213            *
214            * @param resourceBlock the resource block
215            * @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.
216            * @return the resource block that was updated
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portal.model.ResourceBlock updateResourceBlock(
220                    com.liferay.portal.model.ResourceBlock resourceBlock, boolean merge)
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Returns the Spring bean ID for this bean.
225            *
226            * @return the Spring bean ID for this bean
227            */
228            public java.lang.String getBeanIdentifier();
229    
230            /**
231            * Sets the Spring bean ID for this bean.
232            *
233            * @param beanIdentifier the Spring bean ID for this bean
234            */
235            public void setBeanIdentifier(java.lang.String beanIdentifier);
236    
237            public void addCompanyScopePermission(long companyId,
238                    java.lang.String name, long roleId, java.lang.String actionId)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException;
241    
242            public void addCompanyScopePermissions(long companyId,
243                    java.lang.String name, long roleId, long actionIdsLong)
244                    throws com.liferay.portal.kernel.exception.SystemException;
245    
246            public void addGroupScopePermission(long companyId, long groupId,
247                    java.lang.String name, long roleId, java.lang.String actionId)
248                    throws com.liferay.portal.kernel.exception.PortalException,
249                            com.liferay.portal.kernel.exception.SystemException;
250    
251            public void addGroupScopePermissions(long companyId, long groupId,
252                    java.lang.String name, long roleId, long actionIdsLong)
253                    throws com.liferay.portal.kernel.exception.SystemException;
254    
255            public void addIndividualScopePermission(long companyId, long groupId,
256                    java.lang.String name, long primKey, long roleId,
257                    java.lang.String actionId)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException;
260    
261            public void addIndividualScopePermission(long companyId, long groupId,
262                    java.lang.String name,
263                    com.liferay.portal.model.PermissionedModel permissionedModel,
264                    long roleId, java.lang.String actionId)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException;
267    
268            public void addIndividualScopePermissions(long companyId, long groupId,
269                    java.lang.String name, long primKey, long roleId, long actionIdsLong)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException;
272    
273            public void addIndividualScopePermissions(long companyId, long groupId,
274                    java.lang.String name,
275                    com.liferay.portal.model.PermissionedModel permissionedModel,
276                    long roleId, long actionIdsLong)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            /**
280            * Adds a resource block if necessary and associates the resource block
281            * permissions with it. The resource block will have an initial reference
282            * count of one.
283            *
284            * @param companyId the primary key of the resource block's company
285            * @param groupId the primary key of the resource block's group
286            * @return the new resource block
287            * @throws SystemException if a system exception occurred
288            */
289            public com.liferay.portal.model.ResourceBlock addResourceBlock(
290                    long companyId, long groupId, java.lang.String name,
291                    java.lang.String permissionsHash,
292                    com.liferay.portal.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
293                    throws com.liferay.portal.kernel.exception.SystemException;
294    
295            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296            public long getActionId(java.lang.String name, java.lang.String actionId)
297                    throws com.liferay.portal.kernel.exception.PortalException;
298    
299            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300            public long getActionIds(java.lang.String name,
301                    java.util.List<java.lang.String> actionIds)
302                    throws com.liferay.portal.kernel.exception.PortalException;
303    
304            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305            public java.util.List<java.lang.String> getActionIds(
306                    java.lang.String name, long actionIdsLong)
307                    throws com.liferay.portal.kernel.exception.SystemException;
308    
309            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310            public java.util.List<java.lang.String> getCompanyScopePermissions(
311                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId)
312                    throws com.liferay.portal.kernel.exception.SystemException;
313    
314            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315            public java.util.List<java.lang.String> getGroupScopePermissions(
316                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId)
317                    throws com.liferay.portal.kernel.exception.SystemException;
318    
319            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320            public com.liferay.portal.model.PermissionedModel getPermissionedModel(
321                    java.lang.String name, long primKey)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException;
324    
325            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326            public java.util.List<java.lang.String> getPermissions(
327                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId)
328                    throws com.liferay.portal.kernel.exception.SystemException;
329    
330            /**
331            * Returns the permissions hash of the resource permissions. The permissions
332            * hash is a representation of all the roles with access to the resource
333            * along with the actions they can perform.
334            *
335            * @param resourceBlockPermissionsContainer the resource block permissions
336            * @return the permissions hash of the resource permissions
337            */
338            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339            public java.lang.String getPermissionsHash(
340                    com.liferay.portal.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer);
341    
342            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
343            public com.liferay.portal.model.ResourceBlock getResourceBlock(
344                    java.lang.String name, long primKey)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException;
347    
348            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
349            public java.util.List<java.lang.Long> getResourceBlockIds(
350                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag,
351                    java.lang.String name, java.lang.String actionId)
352                    throws com.liferay.portal.kernel.exception.PortalException;
353    
354            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355            public com.liferay.portal.security.permission.ResourceBlockIdsBag getResourceBlockIdsBag(
356                    long companyId, long groupId, java.lang.String name, long[] roleIds)
357                    throws com.liferay.portal.kernel.exception.SystemException;
358    
359            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360            public boolean hasPermission(java.lang.String name, long primKey,
361                    java.lang.String actionId,
362                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException;
365    
366            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367            public boolean hasPermission(java.lang.String name,
368                    com.liferay.portal.model.PermissionedModel permissionedModel,
369                    java.lang.String actionId,
370                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag)
371                    throws com.liferay.portal.kernel.exception.PortalException;
372    
373            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374            public boolean isSupported(java.lang.String name);
375    
376            public void releasePermissionedModelResourceBlock(
377                    com.liferay.portal.model.PermissionedModel permissionedModel)
378                    throws com.liferay.portal.kernel.exception.PortalException,
379                            com.liferay.portal.kernel.exception.SystemException;
380    
381            public void releasePermissionedModelResourceBlock(java.lang.String name,
382                    long primKey)
383                    throws com.liferay.portal.kernel.exception.PortalException,
384                            com.liferay.portal.kernel.exception.SystemException;
385    
386            /**
387            * Decrements the reference count of the resource block and updates it in
388            * the database or deletes the resource block if the reference count reaches
389            * zero.
390            *
391            * @param resourceBlockId the primary key of the resource block
392            * @throws SystemException if a system exception occurred
393            */
394            public void releaseResourceBlock(long resourceBlockId)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException;
397    
398            /**
399            * Decrements the reference count of the resource block and updates it in
400            * the database or deletes the resource block if the reference count reaches
401            * zero.
402            *
403            * @param resourceBlock the resource block
404            * @throws SystemException if a system exception occurred
405            */
406            public void releaseResourceBlock(
407                    com.liferay.portal.model.ResourceBlock resourceBlock)
408                    throws com.liferay.portal.kernel.exception.SystemException;
409    
410            public void removeAllGroupScopePermissions(long companyId,
411                    java.lang.String name, long roleId, long actionIdsLong)
412                    throws com.liferay.portal.kernel.exception.SystemException;
413    
414            public void removeAllGroupScopePermissions(long companyId,
415                    java.lang.String name, long roleId, java.lang.String actionId)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException;
418    
419            public void removeCompanyScopePermission(long companyId,
420                    java.lang.String name, long roleId, java.lang.String actionId)
421                    throws com.liferay.portal.kernel.exception.PortalException,
422                            com.liferay.portal.kernel.exception.SystemException;
423    
424            public void removeCompanyScopePermissions(long companyId,
425                    java.lang.String name, long roleId, long actionIdsLong)
426                    throws com.liferay.portal.kernel.exception.SystemException;
427    
428            public void removeGroupScopePermission(long companyId, long groupId,
429                    java.lang.String name, long roleId, java.lang.String actionId)
430                    throws com.liferay.portal.kernel.exception.PortalException,
431                            com.liferay.portal.kernel.exception.SystemException;
432    
433            public void removeGroupScopePermissions(long companyId, long groupId,
434                    java.lang.String name, long roleId, long actionIdsLong)
435                    throws com.liferay.portal.kernel.exception.SystemException;
436    
437            public void removeIndividualScopePermission(long companyId, long groupId,
438                    java.lang.String name, long primKey, long roleId,
439                    java.lang.String actionId)
440                    throws com.liferay.portal.kernel.exception.PortalException,
441                            com.liferay.portal.kernel.exception.SystemException;
442    
443            public void removeIndividualScopePermission(long companyId, long groupId,
444                    java.lang.String name,
445                    com.liferay.portal.model.PermissionedModel permissionedModel,
446                    long roleId, java.lang.String actionId)
447                    throws com.liferay.portal.kernel.exception.PortalException,
448                            com.liferay.portal.kernel.exception.SystemException;
449    
450            public void removeIndividualScopePermissions(long companyId, long groupId,
451                    java.lang.String name, long primKey, long roleId, long actionIdsLong)
452                    throws com.liferay.portal.kernel.exception.PortalException,
453                            com.liferay.portal.kernel.exception.SystemException;
454    
455            public void removeIndividualScopePermissions(long companyId, long groupId,
456                    java.lang.String name,
457                    com.liferay.portal.model.PermissionedModel permissionedModel,
458                    long roleId, long actionIdsLong)
459                    throws com.liferay.portal.kernel.exception.SystemException;
460    
461            /**
462            * Increments the reference count of the resource block and updates it in
463            * the database.
464            *
465            * @param resourceBlockId the primary key of the resource block
466            * @throws SystemException if a system exception occurred
467            */
468            public void retainResourceBlock(long resourceBlockId)
469                    throws com.liferay.portal.kernel.exception.PortalException,
470                            com.liferay.portal.kernel.exception.SystemException;
471    
472            /**
473            * Increments the reference count of the resource block and updates it in
474            * the database.
475            *
476            * @param resourceBlock the resource block
477            * @throws SystemException if a system exception occurred
478            */
479            public void retainResourceBlock(
480                    com.liferay.portal.model.ResourceBlock resourceBlock)
481                    throws com.liferay.portal.kernel.exception.SystemException;
482    
483            public void setCompanyScopePermissions(long companyId,
484                    java.lang.String name, long roleId,
485                    java.util.List<java.lang.String> actionIds)
486                    throws com.liferay.portal.kernel.exception.PortalException,
487                            com.liferay.portal.kernel.exception.SystemException;
488    
489            public void setCompanyScopePermissions(long companyId,
490                    java.lang.String name, long roleId, long actionIdsLong)
491                    throws com.liferay.portal.kernel.exception.SystemException;
492    
493            public void setGroupScopePermissions(long companyId, long groupId,
494                    java.lang.String name, long roleId,
495                    java.util.List<java.lang.String> actionIds)
496                    throws com.liferay.portal.kernel.exception.PortalException,
497                            com.liferay.portal.kernel.exception.SystemException;
498    
499            public void setGroupScopePermissions(long companyId, long groupId,
500                    java.lang.String name, long roleId, long actionIdsLong)
501                    throws com.liferay.portal.kernel.exception.SystemException;
502    
503            public void setIndividualScopePermissions(long companyId, long groupId,
504                    java.lang.String name, long primKey, long roleId,
505                    java.util.List<java.lang.String> actionIds)
506                    throws com.liferay.portal.kernel.exception.PortalException,
507                            com.liferay.portal.kernel.exception.SystemException;
508    
509            public void setIndividualScopePermissions(long companyId, long groupId,
510                    java.lang.String name, long primKey, long roleId, long actionIdsLong)
511                    throws com.liferay.portal.kernel.exception.PortalException,
512                            com.liferay.portal.kernel.exception.SystemException;
513    
514            public void setIndividualScopePermissions(long companyId, long groupId,
515                    java.lang.String name, long primKey,
516                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds)
517                    throws com.liferay.portal.kernel.exception.PortalException,
518                            com.liferay.portal.kernel.exception.SystemException;
519    
520            public void setIndividualScopePermissions(long companyId, long groupId,
521                    java.lang.String name,
522                    com.liferay.portal.model.PermissionedModel permissionedModel,
523                    long roleId, java.util.List<java.lang.String> actionIds)
524                    throws com.liferay.portal.kernel.exception.PortalException,
525                            com.liferay.portal.kernel.exception.SystemException;
526    
527            public void setIndividualScopePermissions(long companyId, long groupId,
528                    java.lang.String name,
529                    com.liferay.portal.model.PermissionedModel permissionedModel,
530                    long roleId, long actionIdsLong)
531                    throws com.liferay.portal.kernel.exception.SystemException;
532    
533            public void updateCompanyScopePermissions(long companyId,
534                    java.lang.String name, long roleId, long actionIdsLong, int operator)
535                    throws com.liferay.portal.kernel.exception.SystemException;
536    
537            public void updateGroupScopePermissions(long companyId, long groupId,
538                    java.lang.String name, long roleId, long actionIdsLong, int operator)
539                    throws com.liferay.portal.kernel.exception.SystemException;
540    
541            public void updateIndividualScopePermissions(long companyId, long groupId,
542                    java.lang.String name,
543                    com.liferay.portal.model.PermissionedModel permissionedModel,
544                    long roleId, long actionIdsLong, int operator)
545                    throws com.liferay.portal.kernel.exception.SystemException;
546    
547            public com.liferay.portal.model.ResourceBlock updateResourceBlockId(
548                    long companyId, long groupId, java.lang.String name,
549                    com.liferay.portal.model.PermissionedModel permissionedModel,
550                    java.lang.String permissionsHash,
551                    com.liferay.portal.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            public void verifyResourceBlockId(long companyId, java.lang.String name,
555                    long primKey)
556                    throws com.liferay.portal.kernel.exception.PortalException,
557                            com.liferay.portal.kernel.exception.SystemException;
558    }