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.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 extends BaseService {
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    
046            /**
047            * Returns the Spring bean ID for this bean.
048            *
049            * @return the Spring bean ID for this bean
050            */
051            public java.lang.String getBeanIdentifier();
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public void setBeanIdentifier(java.lang.String beanIdentifier);
059    
060            public void addCompanyScopePermission(long scopeGroupId, long companyId,
061                    java.lang.String name, long roleId, java.lang.String actionId)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException;
064    
065            public void addGroupScopePermission(long scopeGroupId, long companyId,
066                    long groupId, java.lang.String name, long roleId,
067                    java.lang.String actionId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException;
070    
071            public void addIndividualScopePermission(long companyId, long groupId,
072                    java.lang.String name, long primKey, long roleId,
073                    java.lang.String actionId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            public void removeAllGroupScopePermissions(long scopeGroupId,
078                    long companyId, java.lang.String name, long roleId,
079                    java.lang.String actionId)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            public void removeCompanyScopePermission(long scopeGroupId, long companyId,
084                    java.lang.String name, long roleId, java.lang.String actionId)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException;
087    
088            public void removeGroupScopePermission(long scopeGroupId, long companyId,
089                    long groupId, java.lang.String name, long roleId,
090                    java.lang.String actionId)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException;
093    
094            public void removeIndividualScopePermission(long companyId, long groupId,
095                    java.lang.String name, long primKey, long roleId,
096                    java.lang.String actionId)
097                    throws com.liferay.portal.kernel.exception.PortalException,
098                            com.liferay.portal.kernel.exception.SystemException;
099    
100            public void setCompanyScopePermissions(long scopeGroupId, long companyId,
101                    java.lang.String name, long roleId,
102                    java.util.List<java.lang.String> actionIds)
103                    throws com.liferay.portal.kernel.exception.PortalException,
104                            com.liferay.portal.kernel.exception.SystemException;
105    
106            public void setGroupScopePermissions(long scopeGroupId, long companyId,
107                    long groupId, java.lang.String name, long roleId,
108                    java.util.List<java.lang.String> actionIds)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException;
111    
112            public void setIndividualScopePermissions(long companyId, long groupId,
113                    java.lang.String name, long primKey, long roleId,
114                    java.util.List<java.lang.String> actionIds)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException;
117    
118            public void setIndividualScopePermissions(long companyId, long groupId,
119                    java.lang.String name, long primKey,
120                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException;
123    }