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