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    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            /**
149            * Returns the resource block with the primary key.
150            *
151            * @param resourceBlockId the primary key of the resource block
152            * @return the resource block
153            * @throws PortalException if a resource block with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157            public com.liferay.portal.model.ResourceBlock getResourceBlock(
158                    long resourceBlockId)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException;
161    
162            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163            public com.liferay.portal.model.PersistedModel getPersistedModel(
164                    java.io.Serializable primaryKeyObj)
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns a range of all the resource blocks.
170            *
171            * <p>
172            * 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.
173            * </p>
174            *
175            * @param start the lower bound of the range of resource blocks
176            * @param end the upper bound of the range of resource blocks (not inclusive)
177            * @return the range of resource blocks
178            * @throws SystemException if a system exception occurred
179            */
180            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181            public java.util.List<com.liferay.portal.model.ResourceBlock> getResourceBlocks(
182                    int start, int end)
183                    throws com.liferay.portal.kernel.exception.SystemException;
184    
185            /**
186            * Returns the number of resource blocks.
187            *
188            * @return the number of resource blocks
189            * @throws SystemException if a system exception occurred
190            */
191            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192            public int getResourceBlocksCount()
193                    throws com.liferay.portal.kernel.exception.SystemException;
194    
195            /**
196            * Updates the resource block in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
197            *
198            * @param resourceBlock the resource block
199            * @return the resource block that was updated
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portal.model.ResourceBlock updateResourceBlock(
203                    com.liferay.portal.model.ResourceBlock resourceBlock)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Updates the resource block in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
208            *
209            * @param resourceBlock the resource block
210            * @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.
211            * @return the resource block that was updated
212            * @throws SystemException if a system exception occurred
213            */
214            public com.liferay.portal.model.ResourceBlock updateResourceBlock(
215                    com.liferay.portal.model.ResourceBlock resourceBlock, boolean merge)
216                    throws com.liferay.portal.kernel.exception.SystemException;
217    
218            /**
219            * Returns the Spring bean ID for this bean.
220            *
221            * @return the Spring bean ID for this bean
222            */
223            public java.lang.String getBeanIdentifier();
224    
225            /**
226            * Sets the Spring bean ID for this bean.
227            *
228            * @param beanIdentifier the Spring bean ID for this bean
229            */
230            public void setBeanIdentifier(java.lang.String beanIdentifier);
231    
232            public void addCompanyScopePermission(long companyId,
233                    java.lang.String name, long roleId, java.lang.String actionId)
234                    throws com.liferay.portal.kernel.exception.PortalException,
235                            com.liferay.portal.kernel.exception.SystemException;
236    
237            public void addCompanyScopePermissions(long companyId,
238                    java.lang.String name, long roleId, long actionIdsLong)
239                    throws com.liferay.portal.kernel.exception.SystemException;
240    
241            public void addGroupScopePermission(long companyId, long groupId,
242                    java.lang.String name, long roleId, java.lang.String actionId)
243                    throws com.liferay.portal.kernel.exception.PortalException,
244                            com.liferay.portal.kernel.exception.SystemException;
245    
246            public void addGroupScopePermissions(long companyId, long groupId,
247                    java.lang.String name, long roleId, long actionIdsLong)
248                    throws com.liferay.portal.kernel.exception.SystemException;
249    
250            public void addIndividualScopePermission(long companyId, long groupId,
251                    java.lang.String name, long primKey, long roleId,
252                    java.lang.String actionId)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException;
255    
256            public void addIndividualScopePermission(long companyId, long groupId,
257                    java.lang.String name,
258                    com.liferay.portal.model.PermissionedModel permissionedModel,
259                    long roleId, java.lang.String actionId)
260                    throws com.liferay.portal.kernel.exception.PortalException,
261                            com.liferay.portal.kernel.exception.SystemException;
262    
263            public void addIndividualScopePermissions(long companyId, long groupId,
264                    java.lang.String name, long primKey, long roleId, long actionIdsLong)
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,
270                    com.liferay.portal.model.PermissionedModel permissionedModel,
271                    long roleId, long actionIdsLong)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * Adds a resource block if necessary and associates the resource block
276            * permissions with it. The resource block will have an initial reference
277            * count of one.
278            *
279            * @param companyId the primary key of the resource block's company
280            * @param groupId the primary key of the resource block's group
281            * @return the new resource block
282            * @throws SystemException if a system exception occurred
283            */
284            public com.liferay.portal.model.ResourceBlock addResourceBlock(
285                    long companyId, long groupId, java.lang.String name,
286                    java.lang.String permissionsHash,
287                    com.liferay.portal.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
288                    throws com.liferay.portal.kernel.exception.SystemException;
289    
290            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291            public long getActionId(java.lang.String name, java.lang.String actionId)
292                    throws com.liferay.portal.kernel.exception.PortalException;
293    
294            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295            public long getActionIds(java.lang.String name,
296                    java.util.List<java.lang.String> actionIds)
297                    throws com.liferay.portal.kernel.exception.PortalException;
298    
299            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300            public java.util.List<java.lang.String> getActionIds(
301                    java.lang.String name, long actionIdsLong)
302                    throws com.liferay.portal.kernel.exception.SystemException;
303    
304            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305            public java.util.List<java.lang.String> getCompanyScopePermissions(
306                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId)
307                    throws com.liferay.portal.kernel.exception.SystemException;
308    
309            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310            public java.util.List<java.lang.String> getGroupScopePermissions(
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 com.liferay.portal.model.PermissionedModel getPermissionedModel(
316                    java.lang.String name, long primKey)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException;
319    
320            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321            public java.util.List<java.lang.String> getPermissions(
322                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId)
323                    throws com.liferay.portal.kernel.exception.SystemException;
324    
325            /**
326            * Returns the permissions hash of the resource permissions. The permissions
327            * hash is a representation of all the roles with access to the resource
328            * along with the actions they can perform.
329            *
330            * @param resourceBlockPermissionsContainer the resource block permissions
331            * @return the permissions hash of the resource permissions
332            */
333            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334            public java.lang.String getPermissionsHash(
335                    com.liferay.portal.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer);
336    
337            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338            public com.liferay.portal.model.ResourceBlock getResourceBlock(
339                    java.lang.String name, long primKey)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException;
342    
343            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344            public java.util.List<java.lang.Long> getResourceBlockIds(
345                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag,
346                    java.lang.String name, java.lang.String actionId)
347                    throws com.liferay.portal.kernel.exception.PortalException;
348    
349            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350            public com.liferay.portal.security.permission.ResourceBlockIdsBag getResourceBlockIdsBag(
351                    long companyId, long groupId, java.lang.String name, long[] roleIds)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355            public boolean hasPermission(java.lang.String name, long primKey,
356                    java.lang.String actionId,
357                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag)
358                    throws com.liferay.portal.kernel.exception.PortalException,
359                            com.liferay.portal.kernel.exception.SystemException;
360    
361            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362            public boolean hasPermission(java.lang.String name,
363                    com.liferay.portal.model.PermissionedModel permissionedModel,
364                    java.lang.String actionId,
365                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag)
366                    throws com.liferay.portal.kernel.exception.PortalException;
367    
368            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369            public boolean isSupported(java.lang.String name);
370    
371            public void releasePermissionedModelResourceBlock(
372                    com.liferay.portal.model.PermissionedModel permissionedModel)
373                    throws com.liferay.portal.kernel.exception.PortalException,
374                            com.liferay.portal.kernel.exception.SystemException;
375    
376            public void releasePermissionedModelResourceBlock(java.lang.String name,
377                    long primKey)
378                    throws com.liferay.portal.kernel.exception.PortalException,
379                            com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Decrements the reference count of the resource block and updates it in
383            * the database or deletes the resource block if the reference count reaches
384            * zero.
385            *
386            * @param resourceBlockId the primary key of the resource block
387            * @throws SystemException if a system exception occurred
388            */
389            public void releaseResourceBlock(long resourceBlockId)
390                    throws com.liferay.portal.kernel.exception.PortalException,
391                            com.liferay.portal.kernel.exception.SystemException;
392    
393            /**
394            * Decrements the reference count of the resource block and updates it in
395            * the database or deletes the resource block if the reference count reaches
396            * zero.
397            *
398            * @param resourceBlock the resource block
399            * @throws SystemException if a system exception occurred
400            */
401            public void releaseResourceBlock(
402                    com.liferay.portal.model.ResourceBlock resourceBlock)
403                    throws com.liferay.portal.kernel.exception.SystemException;
404    
405            public void removeAllGroupScopePermissions(long companyId,
406                    java.lang.String name, long roleId, long actionIdsLong)
407                    throws com.liferay.portal.kernel.exception.SystemException;
408    
409            public void removeAllGroupScopePermissions(long companyId,
410                    java.lang.String name, long roleId, java.lang.String actionId)
411                    throws com.liferay.portal.kernel.exception.PortalException,
412                            com.liferay.portal.kernel.exception.SystemException;
413    
414            public void removeCompanyScopePermission(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 removeCompanyScopePermissions(long companyId,
420                    java.lang.String name, long roleId, long actionIdsLong)
421                    throws com.liferay.portal.kernel.exception.SystemException;
422    
423            public void removeGroupScopePermission(long companyId, long groupId,
424                    java.lang.String name, long roleId, java.lang.String actionId)
425                    throws com.liferay.portal.kernel.exception.PortalException,
426                            com.liferay.portal.kernel.exception.SystemException;
427    
428            public void removeGroupScopePermissions(long companyId, long groupId,
429                    java.lang.String name, long roleId, long actionIdsLong)
430                    throws com.liferay.portal.kernel.exception.SystemException;
431    
432            public void removeIndividualScopePermission(long companyId, long groupId,
433                    java.lang.String name, long primKey, long roleId,
434                    java.lang.String actionId)
435                    throws com.liferay.portal.kernel.exception.PortalException,
436                            com.liferay.portal.kernel.exception.SystemException;
437    
438            public void removeIndividualScopePermission(long companyId, long groupId,
439                    java.lang.String name,
440                    com.liferay.portal.model.PermissionedModel permissionedModel,
441                    long roleId, java.lang.String actionId)
442                    throws com.liferay.portal.kernel.exception.PortalException,
443                            com.liferay.portal.kernel.exception.SystemException;
444    
445            public void removeIndividualScopePermissions(long companyId, long groupId,
446                    java.lang.String name, long primKey, long roleId, long actionIdsLong)
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,
452                    com.liferay.portal.model.PermissionedModel permissionedModel,
453                    long roleId, long actionIdsLong)
454                    throws com.liferay.portal.kernel.exception.SystemException;
455    
456            /**
457            * Increments the reference count of the resource block and updates it in
458            * the database.
459            *
460            * @param resourceBlockId the primary key of the resource block
461            * @throws SystemException if a system exception occurred
462            */
463            public void retainResourceBlock(long resourceBlockId)
464                    throws com.liferay.portal.kernel.exception.PortalException,
465                            com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Increments the reference count of the resource block and updates it in
469            * the database.
470            *
471            * @param resourceBlock the resource block
472            * @throws SystemException if a system exception occurred
473            */
474            public void retainResourceBlock(
475                    com.liferay.portal.model.ResourceBlock resourceBlock)
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            public void setCompanyScopePermissions(long companyId,
479                    java.lang.String name, long roleId,
480                    java.util.List<java.lang.String> actionIds)
481                    throws com.liferay.portal.kernel.exception.PortalException,
482                            com.liferay.portal.kernel.exception.SystemException;
483    
484            public void setCompanyScopePermissions(long companyId,
485                    java.lang.String name, long roleId, long actionIdsLong)
486                    throws com.liferay.portal.kernel.exception.SystemException;
487    
488            public void setGroupScopePermissions(long companyId, long groupId,
489                    java.lang.String name, long roleId,
490                    java.util.List<java.lang.String> actionIds)
491                    throws com.liferay.portal.kernel.exception.PortalException,
492                            com.liferay.portal.kernel.exception.SystemException;
493    
494            public void setGroupScopePermissions(long companyId, long groupId,
495                    java.lang.String name, long roleId, long actionIdsLong)
496                    throws com.liferay.portal.kernel.exception.SystemException;
497    
498            public void setIndividualScopePermissions(long companyId, long groupId,
499                    java.lang.String name, long primKey, long roleId,
500                    java.util.List<java.lang.String> actionIds)
501                    throws com.liferay.portal.kernel.exception.PortalException,
502                            com.liferay.portal.kernel.exception.SystemException;
503    
504            public void setIndividualScopePermissions(long companyId, long groupId,
505                    java.lang.String name, long primKey, long roleId, long actionIdsLong)
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,
511                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds)
512                    throws com.liferay.portal.kernel.exception.PortalException,
513                            com.liferay.portal.kernel.exception.SystemException;
514    
515            public void setIndividualScopePermissions(long companyId, long groupId,
516                    java.lang.String name,
517                    com.liferay.portal.model.PermissionedModel permissionedModel,
518                    long roleId, java.util.List<java.lang.String> actionIds)
519                    throws com.liferay.portal.kernel.exception.PortalException,
520                            com.liferay.portal.kernel.exception.SystemException;
521    
522            public void setIndividualScopePermissions(long companyId, long groupId,
523                    java.lang.String name,
524                    com.liferay.portal.model.PermissionedModel permissionedModel,
525                    long roleId, long actionIdsLong)
526                    throws com.liferay.portal.kernel.exception.SystemException;
527    
528            public void updateCompanyScopePermissions(long companyId,
529                    java.lang.String name, long roleId, long actionIdsLong, int operator)
530                    throws com.liferay.portal.kernel.exception.SystemException;
531    
532            public void updateGroupScopePermissions(long companyId, long groupId,
533                    java.lang.String name, long roleId, long actionIdsLong, int operator)
534                    throws com.liferay.portal.kernel.exception.SystemException;
535    
536            public void updateIndividualScopePermissions(long companyId, long groupId,
537                    java.lang.String name,
538                    com.liferay.portal.model.PermissionedModel permissionedModel,
539                    long roleId, long actionIdsLong, int operator)
540                    throws com.liferay.portal.kernel.exception.SystemException;
541    
542            public com.liferay.portal.model.ResourceBlock updateResourceBlockId(
543                    long companyId, long groupId, java.lang.String name,
544                    com.liferay.portal.model.PermissionedModel permissionedModel,
545                    java.lang.String permissionsHash,
546                    com.liferay.portal.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
547                    throws com.liferay.portal.kernel.exception.SystemException;
548    
549            public void verifyResourceBlockId(long companyId, java.lang.String name,
550                    long primKey)
551                    throws com.liferay.portal.kernel.exception.PortalException,
552                            com.liferay.portal.kernel.exception.SystemException;
553    }