001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the remote service utility for ResourceBlock. This utility wraps
022     * {@link com.liferay.portal.service.impl.ResourceBlockServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see ResourceBlockService
030     * @see com.liferay.portal.service.base.ResourceBlockServiceBaseImpl
031     * @see com.liferay.portal.service.impl.ResourceBlockServiceImpl
032     * @generated
033     */
034    public class ResourceBlockServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.ResourceBlockServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static void addCompanyScopePermission(long scopeGroupId,
060                    long companyId, java.lang.String name, long roleId,
061                    java.lang.String actionId)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    getService()
065                            .addCompanyScopePermission(scopeGroupId, companyId, name, roleId,
066                            actionId);
067            }
068    
069            public static void addGroupScopePermission(long scopeGroupId,
070                    long companyId, long groupId, java.lang.String name, long roleId,
071                    java.lang.String actionId)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    getService()
075                            .addGroupScopePermission(scopeGroupId, companyId, groupId, name,
076                            roleId, actionId);
077            }
078    
079            public static void addIndividualScopePermission(long companyId,
080                    long groupId, java.lang.String name, long primKey, long roleId,
081                    java.lang.String actionId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    getService()
085                            .addIndividualScopePermission(companyId, groupId, name, primKey,
086                            roleId, actionId);
087            }
088    
089            public static void removeAllGroupScopePermissions(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                            com.liferay.portal.kernel.exception.SystemException {
094                    getService()
095                            .removeAllGroupScopePermissions(scopeGroupId, companyId, name,
096                            roleId, actionId);
097            }
098    
099            public static void removeCompanyScopePermission(long scopeGroupId,
100                    long companyId, java.lang.String name, long roleId,
101                    java.lang.String actionId)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    getService()
105                            .removeCompanyScopePermission(scopeGroupId, companyId, name,
106                            roleId, actionId);
107            }
108    
109            public static void removeGroupScopePermission(long scopeGroupId,
110                    long companyId, long groupId, java.lang.String name, long roleId,
111                    java.lang.String actionId)
112                    throws com.liferay.portal.kernel.exception.PortalException,
113                            com.liferay.portal.kernel.exception.SystemException {
114                    getService()
115                            .removeGroupScopePermission(scopeGroupId, companyId, groupId, name,
116                            roleId, actionId);
117            }
118    
119            public static void removeIndividualScopePermission(long companyId,
120                    long groupId, java.lang.String name, long primKey, long roleId,
121                    java.lang.String actionId)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException {
124                    getService()
125                            .removeIndividualScopePermission(companyId, groupId, name, primKey,
126                            roleId, actionId);
127            }
128    
129            public static void setCompanyScopePermissions(long scopeGroupId,
130                    long companyId, java.lang.String name, long roleId,
131                    java.util.List<java.lang.String> actionIds)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException {
134                    getService()
135                            .setCompanyScopePermissions(scopeGroupId, companyId, name, roleId,
136                            actionIds);
137            }
138    
139            public static void setGroupScopePermissions(long scopeGroupId,
140                    long companyId, long groupId, java.lang.String name, long roleId,
141                    java.util.List<java.lang.String> actionIds)
142                    throws com.liferay.portal.kernel.exception.PortalException,
143                            com.liferay.portal.kernel.exception.SystemException {
144                    getService()
145                            .setGroupScopePermissions(scopeGroupId, companyId, groupId, name,
146                            roleId, actionIds);
147            }
148    
149            public static void setIndividualScopePermissions(long companyId,
150                    long groupId, java.lang.String name, long primKey, long roleId,
151                    java.util.List<java.lang.String> actionIds)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException {
154                    getService()
155                            .setIndividualScopePermissions(companyId, groupId, name, primKey,
156                            roleId, actionIds);
157            }
158    
159            public static void setIndividualScopePermissions(long companyId,
160                    long groupId, java.lang.String name, long primKey,
161                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    getService()
165                            .setIndividualScopePermissions(companyId, groupId, name, primKey,
166                            roleIdsToActionIds);
167            }
168    
169            public static ResourceBlockService getService() {
170                    if (_service == null) {
171                            _service = (ResourceBlockService)PortalBeanLocatorUtil.locate(ResourceBlockService.class.getName());
172    
173                            ReferenceRegistry.registerReference(ResourceBlockServiceUtil.class,
174                                    "_service");
175                    }
176    
177                    return _service;
178            }
179    
180            /**
181             * @deprecated As of 6.2.0
182             */
183            public void setService(ResourceBlockService service) {
184            }
185    
186            private static ResourceBlockService _service;
187    }