001    /**
002     * Copyright (c) 2000-present 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.kernel.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 remote service utility for ResourceBlock. This utility wraps
024     * {@link com.liferay.portal.service.impl.ResourceBlockServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see ResourceBlockService
032     * @see com.liferay.portal.service.base.ResourceBlockServiceBaseImpl
033     * @see com.liferay.portal.service.impl.ResourceBlockServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class ResourceBlockServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.ResourceBlockServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Returns the OSGi service identifier.
046            *
047            * @return the OSGi service identifier
048            */
049            public static java.lang.String getOSGiServiceIdentifier() {
050                    return getService().getOSGiServiceIdentifier();
051            }
052    
053            public static void addCompanyScopePermission(long scopeGroupId,
054                    long companyId, java.lang.String name, long roleId,
055                    java.lang.String actionId)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    getService()
058                            .addCompanyScopePermission(scopeGroupId, companyId, name, roleId,
059                            actionId);
060            }
061    
062            public static void addGroupScopePermission(long scopeGroupId,
063                    long companyId, long groupId, java.lang.String name, long roleId,
064                    java.lang.String actionId)
065                    throws com.liferay.portal.kernel.exception.PortalException {
066                    getService()
067                            .addGroupScopePermission(scopeGroupId, companyId, groupId, name,
068                            roleId, actionId);
069            }
070    
071            public static void addIndividualScopePermission(long companyId,
072                    long groupId, java.lang.String name, long primKey, long roleId,
073                    java.lang.String actionId)
074                    throws com.liferay.portal.kernel.exception.PortalException {
075                    getService()
076                            .addIndividualScopePermission(companyId, groupId, name, primKey,
077                            roleId, actionId);
078            }
079    
080            public static void removeAllGroupScopePermissions(long scopeGroupId,
081                    long companyId, java.lang.String name, long roleId,
082                    java.lang.String actionId)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    getService()
085                            .removeAllGroupScopePermissions(scopeGroupId, companyId, name,
086                            roleId, actionId);
087            }
088    
089            public static void removeCompanyScopePermission(long scopeGroupId,
090                    long companyId, java.lang.String name, long roleId,
091                    java.lang.String actionId)
092                    throws com.liferay.portal.kernel.exception.PortalException {
093                    getService()
094                            .removeCompanyScopePermission(scopeGroupId, companyId, name,
095                            roleId, actionId);
096            }
097    
098            public static void removeGroupScopePermission(long scopeGroupId,
099                    long companyId, long groupId, java.lang.String name, long roleId,
100                    java.lang.String actionId)
101                    throws com.liferay.portal.kernel.exception.PortalException {
102                    getService()
103                            .removeGroupScopePermission(scopeGroupId, companyId, groupId, name,
104                            roleId, actionId);
105            }
106    
107            public static void removeIndividualScopePermission(long companyId,
108                    long groupId, java.lang.String name, long primKey, long roleId,
109                    java.lang.String actionId)
110                    throws com.liferay.portal.kernel.exception.PortalException {
111                    getService()
112                            .removeIndividualScopePermission(companyId, groupId, name, primKey,
113                            roleId, actionId);
114            }
115    
116            public static void setCompanyScopePermissions(long scopeGroupId,
117                    long companyId, java.lang.String name, long roleId,
118                    java.util.List<java.lang.String> actionIds)
119                    throws com.liferay.portal.kernel.exception.PortalException {
120                    getService()
121                            .setCompanyScopePermissions(scopeGroupId, companyId, name, roleId,
122                            actionIds);
123            }
124    
125            public static void setGroupScopePermissions(long scopeGroupId,
126                    long companyId, long groupId, java.lang.String name, long roleId,
127                    java.util.List<java.lang.String> actionIds)
128                    throws com.liferay.portal.kernel.exception.PortalException {
129                    getService()
130                            .setGroupScopePermissions(scopeGroupId, companyId, groupId, name,
131                            roleId, actionIds);
132            }
133    
134            public static void setIndividualScopePermissions(long companyId,
135                    long groupId, java.lang.String name, long primKey,
136                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds)
137                    throws com.liferay.portal.kernel.exception.PortalException {
138                    getService()
139                            .setIndividualScopePermissions(companyId, groupId, name, primKey,
140                            roleIdsToActionIds);
141            }
142    
143            public static void setIndividualScopePermissions(long companyId,
144                    long groupId, java.lang.String name, long primKey, long roleId,
145                    java.util.List<java.lang.String> actionIds)
146                    throws com.liferay.portal.kernel.exception.PortalException {
147                    getService()
148                            .setIndividualScopePermissions(companyId, groupId, name, primKey,
149                            roleId, actionIds);
150            }
151    
152            public static ResourceBlockService getService() {
153                    if (_service == null) {
154                            _service = (ResourceBlockService)PortalBeanLocatorUtil.locate(ResourceBlockService.class.getName());
155    
156                            ReferenceRegistry.registerReference(ResourceBlockServiceUtil.class,
157                                    "_service");
158                    }
159    
160                    return _service;
161            }
162    
163            private static ResourceBlockService _service;
164    }