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.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Transactional;
022    
023    /**
024     * The interface for the resource block remote service.
025     *
026     * <p>
027     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see ResourceBlockServiceUtil
032     * @see com.liferay.portal.service.base.ResourceBlockServiceBaseImpl
033     * @see com.liferay.portal.service.impl.ResourceBlockServiceImpl
034     * @generated
035     */
036    @JSONWebService
037    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
038            PortalException.class, SystemException.class})
039    public interface ResourceBlockService {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * Never modify or reference this interface directly. Always use {@link ResourceBlockServiceUtil} to access the resource block remote service. Add custom service methods to {@link com.liferay.portal.service.impl.ResourceBlockServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
044             */
045            public void addCompanyScopePermission(long scopeGroupId, long companyId,
046                    java.lang.String name, long roleId, java.lang.String actionId)
047                    throws com.liferay.portal.kernel.exception.PortalException,
048                            com.liferay.portal.kernel.exception.SystemException;
049    
050            public void addGroupScopePermission(long scopeGroupId, long companyId,
051                    long groupId, java.lang.String name, long roleId,
052                    java.lang.String actionId)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException;
055    
056            public void addIndividualScopePermission(long companyId, long groupId,
057                    java.lang.String name, long primKey, long roleId,
058                    java.lang.String actionId)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException;
061    
062            public void removeAllGroupScopePermissions(long scopeGroupId,
063                    long companyId, java.lang.String name, long roleId,
064                    java.lang.String actionId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException;
067    
068            public void removeCompanyScopePermission(long scopeGroupId, long companyId,
069                    java.lang.String name, long roleId, java.lang.String actionId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public void removeGroupScopePermission(long scopeGroupId, long companyId,
074                    long groupId, java.lang.String name, long roleId,
075                    java.lang.String actionId)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            public void removeIndividualScopePermission(long companyId, long groupId,
080                    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    
085            public void setCompanyScopePermissions(long scopeGroupId, long companyId,
086                    java.lang.String name, long roleId,
087                    java.util.List<java.lang.String> actionIds)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            public void setGroupScopePermissions(long scopeGroupId, long companyId,
092                    long groupId, java.lang.String name, long roleId,
093                    java.util.List<java.lang.String> actionIds)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException;
096    
097            public void setIndividualScopePermissions(long companyId, long groupId,
098                    java.lang.String name, long primKey, long roleId,
099                    java.util.List<java.lang.String> actionIds)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            public void setIndividualScopePermissions(long companyId, long groupId,
104                    java.lang.String name, long primKey,
105                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException;
108    }