001    /**
002     * Copyright (c) 2000-2010 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    
018    /**
019     * <p>
020     * This class is a wrapper for {@link ResourcePermissionService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       ResourcePermissionService
025     * @generated
026     */
027    public class ResourcePermissionServiceWrapper
028            implements ResourcePermissionService {
029            public ResourcePermissionServiceWrapper(
030                    ResourcePermissionService resourcePermissionService) {
031                    _resourcePermissionService = resourcePermissionService;
032            }
033    
034            public void addResourcePermission(long groupId, long companyId,
035                    java.lang.String name, int scope, java.lang.String primKey,
036                    long roleId, java.lang.String actionId)
037                    throws com.liferay.portal.kernel.exception.PortalException,
038                            com.liferay.portal.kernel.exception.SystemException {
039                    _resourcePermissionService.addResourcePermission(groupId, companyId,
040                            name, scope, primKey, roleId, actionId);
041            }
042    
043            public void setIndividualResourcePermissions(long groupId, long companyId,
044                    java.lang.String name, java.lang.String primKey, long roleId,
045                    java.lang.String[] actionIds)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException {
048                    _resourcePermissionService.setIndividualResourcePermissions(groupId,
049                            companyId, name, primKey, roleId, actionIds);
050            }
051    
052            public void removeResourcePermission(long groupId, long companyId,
053                    java.lang.String name, int scope, java.lang.String primKey,
054                    long roleId, java.lang.String actionId)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException {
057                    _resourcePermissionService.removeResourcePermission(groupId, companyId,
058                            name, scope, primKey, roleId, actionId);
059            }
060    
061            public void removeResourcePermissions(long groupId, long companyId,
062                    java.lang.String name, int scope, long roleId, java.lang.String actionId)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    _resourcePermissionService.removeResourcePermissions(groupId,
066                            companyId, name, scope, roleId, actionId);
067            }
068    
069            public ResourcePermissionService getWrappedResourcePermissionService() {
070                    return _resourcePermissionService;
071            }
072    
073            private ResourcePermissionService _resourcePermissionService;
074    }