001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import com.liferay.portal.kernel.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     * Provides the local service interface for ResourceBlock. Methods of this
025     * service will not have security checks based on the propagated JAAS
026     * credentials because this service can only be accessed from within the same
027     * VM.
028     *
029     * @author Brian Wing Shun Chan
030     * @see ResourceBlockLocalServiceUtil
031     * @see com.liferay.portal.service.base.ResourceBlockLocalServiceBaseImpl
032     * @see com.liferay.portal.service.impl.ResourceBlockLocalServiceImpl
033     * @generated
034     */
035    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
036            PortalException.class, SystemException.class})
037    public interface ResourceBlockLocalService extends BaseLocalService,
038            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            * @return the resource block that was removed
070            * @throws PortalException if a resource block with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portal.model.ResourceBlock deleteResourceBlock(
074                    long resourceBlockId)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException;
077    
078            /**
079            * Deletes the resource block from the database. Also notifies the appropriate model listeners.
080            *
081            * @param resourceBlock the resource block
082            * @return the resource block that was removed
083            * @throws SystemException if a system exception occurred
084            */
085            public com.liferay.portal.model.ResourceBlock deleteResourceBlock(
086                    com.liferay.portal.model.ResourceBlock resourceBlock)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Performs a dynamic query on the database and returns a range of the matching rows.
105            *
106            * <p>
107            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
108            * </p>
109            *
110            * @param dynamicQuery the dynamic query
111            * @param start the lower bound of the range of model instances
112            * @param end the upper bound of the range of model instances (not inclusive)
113            * @return the range of matching rows
114            * @throws SystemException if a system exception occurred
115            */
116            @SuppressWarnings("rawtypes")
117            public java.util.List dynamicQuery(
118                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
119                    int end) throws com.liferay.portal.kernel.exception.SystemException;
120    
121            /**
122            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
123            *
124            * <p>
125            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
126            * </p>
127            *
128            * @param dynamicQuery the dynamic query
129            * @param start the lower bound of the range of model instances
130            * @param end the upper bound of the range of model instances (not inclusive)
131            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
132            * @return the ordered range of matching rows
133            * @throws SystemException if a system exception occurred
134            */
135            @SuppressWarnings("rawtypes")
136            public java.util.List dynamicQuery(
137                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
138                    int end,
139                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            /**
143            * Returns the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query
146            * @return the number of rows that match the dynamic query
147            * @throws SystemException if a system exception occurred
148            */
149            public long dynamicQueryCount(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            /**
154            * Returns the number of rows that match the dynamic query.
155            *
156            * @param dynamicQuery the dynamic query
157            * @param projection the projection to apply to the query
158            * @return the number of rows that match the dynamic query
159            * @throws SystemException if a system exception occurred
160            */
161            public long dynamicQueryCount(
162                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
163                    com.liferay.portal.kernel.dao.orm.Projection projection)
164                    throws com.liferay.portal.kernel.exception.SystemException;
165    
166            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167            public com.liferay.portal.model.ResourceBlock fetchResourceBlock(
168                    long resourceBlockId)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the resource block with the primary key.
173            *
174            * @param resourceBlockId the primary key of the resource block
175            * @return the resource block
176            * @throws PortalException if a resource block with the primary key could not be found
177            * @throws SystemException if a system exception occurred
178            */
179            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180            public com.liferay.portal.model.ResourceBlock getResourceBlock(
181                    long resourceBlockId)
182                    throws com.liferay.portal.kernel.exception.PortalException,
183                            com.liferay.portal.kernel.exception.SystemException;
184    
185            @Override
186            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187            public com.liferay.portal.model.PersistedModel getPersistedModel(
188                    java.io.Serializable primaryKeyObj)
189                    throws com.liferay.portal.kernel.exception.PortalException,
190                            com.liferay.portal.kernel.exception.SystemException;
191    
192            /**
193            * Returns a range of all the resource blocks.
194            *
195            * <p>
196            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
197            * </p>
198            *
199            * @param start the lower bound of the range of resource blocks
200            * @param end the upper bound of the range of resource blocks (not inclusive)
201            * @return the range of resource blocks
202            * @throws SystemException if a system exception occurred
203            */
204            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205            public java.util.List<com.liferay.portal.model.ResourceBlock> getResourceBlocks(
206                    int start, int end)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns the number of resource blocks.
211            *
212            * @return the number of resource blocks
213            * @throws SystemException if a system exception occurred
214            */
215            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216            public int getResourceBlocksCount()
217                    throws com.liferay.portal.kernel.exception.SystemException;
218    
219            /**
220            * Updates the resource block in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param resourceBlock the resource block
223            * @return the resource block that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portal.model.ResourceBlock updateResourceBlock(
227                    com.liferay.portal.model.ResourceBlock resourceBlock)
228                    throws com.liferay.portal.kernel.exception.SystemException;
229    
230            /**
231            * Returns the Spring bean ID for this bean.
232            *
233            * @return the Spring bean ID for this bean
234            */
235            public java.lang.String getBeanIdentifier();
236    
237            /**
238            * Sets the Spring bean ID for this bean.
239            *
240            * @param beanIdentifier the Spring bean ID for this bean
241            */
242            public void setBeanIdentifier(java.lang.String beanIdentifier);
243    
244            public void addCompanyScopePermission(long companyId,
245                    java.lang.String name, long roleId, java.lang.String actionId)
246                    throws com.liferay.portal.kernel.exception.PortalException,
247                            com.liferay.portal.kernel.exception.SystemException;
248    
249            public void addCompanyScopePermissions(long companyId,
250                    java.lang.String name, long roleId, long actionIdsLong)
251                    throws com.liferay.portal.kernel.exception.SystemException;
252    
253            public void addGroupScopePermission(long companyId, long groupId,
254                    java.lang.String name, long roleId, java.lang.String actionId)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException;
257    
258            public void addGroupScopePermissions(long companyId, long groupId,
259                    java.lang.String name, long roleId, long actionIdsLong)
260                    throws com.liferay.portal.kernel.exception.SystemException;
261    
262            public void addIndividualScopePermission(long companyId, long groupId,
263                    java.lang.String name, long primKey, long roleId,
264                    java.lang.String actionId)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException;
267    
268            public void addIndividualScopePermission(long companyId, long groupId,
269                    java.lang.String name,
270                    com.liferay.portal.model.PermissionedModel permissionedModel,
271                    long roleId, java.lang.String actionId)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException;
274    
275            public void addIndividualScopePermissions(long companyId, long groupId,
276                    java.lang.String name, long primKey, long roleId, long actionIdsLong)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException;
279    
280            public void addIndividualScopePermissions(long companyId, long groupId,
281                    java.lang.String name,
282                    com.liferay.portal.model.PermissionedModel permissionedModel,
283                    long roleId, long actionIdsLong)
284                    throws com.liferay.portal.kernel.exception.SystemException;
285    
286            /**
287            * Adds a resource block if necessary and associates the resource block
288            * permissions with it. The resource block will have an initial reference
289            * count of one.
290            *
291            * @param companyId the primary key of the resource block's company
292            * @param groupId the primary key of the resource block's group
293            * @param name the resource block's name
294            * @param permissionsHash the resource block's permission hash
295            * @param resourceBlockPermissionsContainer the resource block's
296            permissions container
297            * @return the new resource block
298            * @throws SystemException if a system exception occurred
299            */
300            public com.liferay.portal.model.ResourceBlock addResourceBlock(
301                    long companyId, long groupId, java.lang.String name,
302                    java.lang.String permissionsHash,
303                    com.liferay.portal.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
304                    throws com.liferay.portal.kernel.exception.SystemException;
305    
306            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307            public long getActionId(java.lang.String name, java.lang.String actionId)
308                    throws com.liferay.portal.kernel.exception.PortalException;
309    
310            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311            public long getActionIds(java.lang.String name,
312                    java.util.List<java.lang.String> actionIds)
313                    throws com.liferay.portal.kernel.exception.PortalException;
314    
315            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316            public java.util.List<java.lang.String> getActionIds(
317                    java.lang.String name, long actionIdsLong)
318                    throws com.liferay.portal.kernel.exception.SystemException;
319    
320            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321            public java.util.List<java.lang.String> getCompanyScopePermissions(
322                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId)
323                    throws com.liferay.portal.kernel.exception.SystemException;
324    
325            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326            public java.util.List<java.lang.String> getGroupScopePermissions(
327                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId)
328                    throws com.liferay.portal.kernel.exception.SystemException;
329    
330            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331            public com.liferay.portal.model.PermissionedModel getPermissionedModel(
332                    java.lang.String name, long primKey)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException;
335    
336            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337            public java.util.List<java.lang.String> getPermissions(
338                    com.liferay.portal.model.ResourceBlock resourceBlock, long roleId)
339                    throws com.liferay.portal.kernel.exception.SystemException;
340    
341            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342            public com.liferay.portal.model.ResourceBlock getResourceBlock(
343                    java.lang.String name, long primKey)
344                    throws com.liferay.portal.kernel.exception.PortalException,
345                            com.liferay.portal.kernel.exception.SystemException;
346    
347            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348            public java.util.List<java.lang.Long> getResourceBlockIds(
349                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag,
350                    java.lang.String name, java.lang.String actionId)
351                    throws com.liferay.portal.kernel.exception.PortalException;
352    
353            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354            public com.liferay.portal.security.permission.ResourceBlockIdsBag getResourceBlockIdsBag(
355                    long companyId, long groupId, java.lang.String name, long[] roleIds)
356                    throws com.liferay.portal.kernel.exception.SystemException;
357    
358            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359            public boolean hasPermission(java.lang.String name, long primKey,
360                    java.lang.String actionId,
361                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException;
364    
365            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366            public boolean hasPermission(java.lang.String name,
367                    com.liferay.portal.model.PermissionedModel permissionedModel,
368                    java.lang.String actionId,
369                    com.liferay.portal.security.permission.ResourceBlockIdsBag resourceBlockIdsBag)
370                    throws com.liferay.portal.kernel.exception.PortalException;
371    
372            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373            public boolean isSupported(java.lang.String name);
374    
375            public void releasePermissionedModelResourceBlock(
376                    com.liferay.portal.model.PermissionedModel permissionedModel)
377                    throws com.liferay.portal.kernel.exception.SystemException;
378    
379            public void releasePermissionedModelResourceBlock(java.lang.String name,
380                    long primKey)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException;
383    
384            /**
385            * Decrements the reference count of the resource block and updates it in
386            * the database or deletes the resource block if the reference count reaches
387            * zero.
388            *
389            * @param resourceBlockId the primary key of the resource block
390            * @throws SystemException if a system exception occurred
391            */
392            public void releaseResourceBlock(long resourceBlockId)
393                    throws com.liferay.portal.kernel.exception.SystemException;
394    
395            /**
396            * Decrements the reference count of the resource block and updates it in
397            * the database or deletes the resource block if the reference count reaches
398            * zero.
399            *
400            * @param resourceBlock the resource block
401            * @throws SystemException if a system exception occurred
402            */
403            public void releaseResourceBlock(
404                    com.liferay.portal.model.ResourceBlock resourceBlock)
405                    throws com.liferay.portal.kernel.exception.SystemException;
406    
407            public void removeAllGroupScopePermissions(long companyId,
408                    java.lang.String name, long roleId, long actionIdsLong)
409                    throws com.liferay.portal.kernel.exception.SystemException;
410    
411            public void removeAllGroupScopePermissions(long companyId,
412                    java.lang.String name, long roleId, java.lang.String actionId)
413                    throws com.liferay.portal.kernel.exception.PortalException,
414                            com.liferay.portal.kernel.exception.SystemException;
415    
416            public void removeCompanyScopePermission(long companyId,
417                    java.lang.String name, long roleId, java.lang.String actionId)
418                    throws com.liferay.portal.kernel.exception.PortalException,
419                            com.liferay.portal.kernel.exception.SystemException;
420    
421            public void removeCompanyScopePermissions(long companyId,
422                    java.lang.String name, long roleId, long actionIdsLong)
423                    throws com.liferay.portal.kernel.exception.SystemException;
424    
425            public void removeGroupScopePermission(long companyId, long groupId,
426                    java.lang.String name, long roleId, java.lang.String actionId)
427                    throws com.liferay.portal.kernel.exception.PortalException,
428                            com.liferay.portal.kernel.exception.SystemException;
429    
430            public void removeGroupScopePermissions(long companyId, long groupId,
431                    java.lang.String name, long roleId, long actionIdsLong)
432                    throws com.liferay.portal.kernel.exception.SystemException;
433    
434            public void removeIndividualScopePermission(long companyId, long groupId,
435                    java.lang.String name, long primKey, long roleId,
436                    java.lang.String actionId)
437                    throws com.liferay.portal.kernel.exception.PortalException,
438                            com.liferay.portal.kernel.exception.SystemException;
439    
440            public void removeIndividualScopePermission(long companyId, long groupId,
441                    java.lang.String name,
442                    com.liferay.portal.model.PermissionedModel permissionedModel,
443                    long roleId, java.lang.String actionId)
444                    throws com.liferay.portal.kernel.exception.PortalException,
445                            com.liferay.portal.kernel.exception.SystemException;
446    
447            public void removeIndividualScopePermissions(long companyId, long groupId,
448                    java.lang.String name, long primKey, long roleId, long actionIdsLong)
449                    throws com.liferay.portal.kernel.exception.PortalException,
450                            com.liferay.portal.kernel.exception.SystemException;
451    
452            public void removeIndividualScopePermissions(long companyId, long groupId,
453                    java.lang.String name,
454                    com.liferay.portal.model.PermissionedModel permissionedModel,
455                    long roleId, long actionIdsLong)
456                    throws com.liferay.portal.kernel.exception.SystemException;
457    
458            public void setCompanyScopePermissions(long companyId,
459                    java.lang.String name, long roleId,
460                    java.util.List<java.lang.String> actionIds)
461                    throws com.liferay.portal.kernel.exception.PortalException,
462                            com.liferay.portal.kernel.exception.SystemException;
463    
464            public void setCompanyScopePermissions(long companyId,
465                    java.lang.String name, long roleId, long actionIdsLong)
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            public void setGroupScopePermissions(long companyId, long groupId,
469                    java.lang.String name, long roleId,
470                    java.util.List<java.lang.String> actionIds)
471                    throws com.liferay.portal.kernel.exception.PortalException,
472                            com.liferay.portal.kernel.exception.SystemException;
473    
474            public void setGroupScopePermissions(long companyId, long groupId,
475                    java.lang.String name, long roleId, long actionIdsLong)
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            public void setIndividualScopePermissions(long companyId, long groupId,
479                    java.lang.String name, long primKey, 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 setIndividualScopePermissions(long companyId, long groupId,
485                    java.lang.String name, long primKey, long roleId, long actionIdsLong)
486                    throws com.liferay.portal.kernel.exception.PortalException,
487                            com.liferay.portal.kernel.exception.SystemException;
488    
489            public void setIndividualScopePermissions(long companyId, long groupId,
490                    java.lang.String name, long primKey,
491                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds)
492                    throws com.liferay.portal.kernel.exception.PortalException,
493                            com.liferay.portal.kernel.exception.SystemException;
494    
495            public void setIndividualScopePermissions(long companyId, long groupId,
496                    java.lang.String name,
497                    com.liferay.portal.model.PermissionedModel permissionedModel,
498                    long roleId, java.util.List<java.lang.String> actionIds)
499                    throws com.liferay.portal.kernel.exception.PortalException,
500                            com.liferay.portal.kernel.exception.SystemException;
501    
502            public void setIndividualScopePermissions(long companyId, long groupId,
503                    java.lang.String name,
504                    com.liferay.portal.model.PermissionedModel permissionedModel,
505                    long roleId, long actionIdsLong)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            public void updateCompanyScopePermissions(long companyId,
509                    java.lang.String name, long roleId, long actionIdsLong, int operator)
510                    throws com.liferay.portal.kernel.exception.SystemException;
511    
512            public void updateGroupScopePermissions(long companyId, long groupId,
513                    java.lang.String name, long roleId, long actionIdsLong, int operator)
514                    throws com.liferay.portal.kernel.exception.SystemException;
515    
516            public void updateIndividualScopePermissions(long companyId, long groupId,
517                    java.lang.String name,
518                    com.liferay.portal.model.PermissionedModel permissionedModel,
519                    long roleId, long actionIdsLong, int operator)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            public com.liferay.portal.model.ResourceBlock updateResourceBlockId(
523                    long companyId, long groupId, java.lang.String name,
524                    com.liferay.portal.model.PermissionedModel permissionedModel,
525                    java.lang.String permissionsHash,
526                    com.liferay.portal.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
527                    throws com.liferay.portal.kernel.exception.SystemException;
528    
529            public void verifyResourceBlockId(long companyId, java.lang.String name,
530                    long primKey)
531                    throws com.liferay.portal.kernel.exception.PortalException,
532                            com.liferay.portal.kernel.exception.SystemException;
533    }