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