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.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022    import com.liferay.portal.kernel.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Transactional;
024    import com.liferay.portal.security.ac.AccessControlled;
025    
026    /**
027     * Provides the remote service interface for ResourceBlock. Methods of this
028     * service are expected to have security checks based on the propagated JAAS
029     * credentials because this service can be accessed remotely.
030     *
031     * @author Brian Wing Shun Chan
032     * @see ResourceBlockServiceUtil
033     * @see com.liferay.portal.service.base.ResourceBlockServiceBaseImpl
034     * @see com.liferay.portal.service.impl.ResourceBlockServiceImpl
035     * @generated
036     */
037    @AccessControlled
038    @JSONWebService
039    @ProviderType
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface ResourceBlockService extends BaseService {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * 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.
047             */
048            public void addCompanyScopePermission(long scopeGroupId, long companyId,
049                    java.lang.String name, long roleId, java.lang.String actionId)
050                    throws com.liferay.portal.kernel.exception.PortalException;
051    
052            public void addGroupScopePermission(long scopeGroupId, long companyId,
053                    long groupId, java.lang.String name, long roleId,
054                    java.lang.String actionId)
055                    throws com.liferay.portal.kernel.exception.PortalException;
056    
057            public void addIndividualScopePermission(long companyId, long groupId,
058                    java.lang.String name, long primKey, long roleId,
059                    java.lang.String actionId)
060                    throws com.liferay.portal.kernel.exception.PortalException;
061    
062            /**
063            * Returns the Spring bean ID for this bean.
064            *
065            * @return the Spring bean ID for this bean
066            */
067            public java.lang.String getBeanIdentifier();
068    
069            public void removeAllGroupScopePermissions(long scopeGroupId,
070                    long companyId, java.lang.String name, long roleId,
071                    java.lang.String actionId)
072                    throws com.liferay.portal.kernel.exception.PortalException;
073    
074            public void removeCompanyScopePermission(long scopeGroupId, long companyId,
075                    java.lang.String name, long roleId, java.lang.String actionId)
076                    throws com.liferay.portal.kernel.exception.PortalException;
077    
078            public void removeGroupScopePermission(long scopeGroupId, long companyId,
079                    long groupId, java.lang.String name, long roleId,
080                    java.lang.String actionId)
081                    throws com.liferay.portal.kernel.exception.PortalException;
082    
083            public void removeIndividualScopePermission(long companyId, long groupId,
084                    java.lang.String name, long primKey, long roleId,
085                    java.lang.String actionId)
086                    throws com.liferay.portal.kernel.exception.PortalException;
087    
088            /**
089            * Sets the Spring bean ID for this bean.
090            *
091            * @param beanIdentifier the Spring bean ID for this bean
092            */
093            public void setBeanIdentifier(java.lang.String beanIdentifier);
094    
095            public void setCompanyScopePermissions(long scopeGroupId, long companyId,
096                    java.lang.String name, long roleId,
097                    java.util.List<java.lang.String> actionIds)
098                    throws com.liferay.portal.kernel.exception.PortalException;
099    
100            public void setGroupScopePermissions(long scopeGroupId, long companyId,
101                    long groupId, java.lang.String name, long roleId,
102                    java.util.List<java.lang.String> actionIds)
103                    throws com.liferay.portal.kernel.exception.PortalException;
104    
105            public void setIndividualScopePermissions(long companyId, long groupId,
106                    java.lang.String name, long primKey, long roleId,
107                    java.util.List<java.lang.String> actionIds)
108                    throws com.liferay.portal.kernel.exception.PortalException;
109    
110            public void setIndividualScopePermissions(long companyId, long groupId,
111                    java.lang.String name, long primKey,
112                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds)
113                    throws com.liferay.portal.kernel.exception.PortalException;
114    }