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