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