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    /**
020     * Provides a wrapper for {@link PermissionService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see PermissionService
024     * @generated
025     */
026    @ProviderType
027    public class PermissionServiceWrapper implements PermissionService,
028            ServiceWrapper<PermissionService> {
029            public PermissionServiceWrapper(PermissionService permissionService) {
030                    _permissionService = permissionService;
031            }
032    
033            /**
034            * Checks to see if the group has permission to the service.
035            *
036            * @param groupId the primary key of the group
037            * @param name the service name
038            * @param primKey the primary key of the service
039            * @throws PortalException if the group did not have permission to the
040            service, if a group with the primary key could not be found or if
041            the permission information was invalid
042            */
043            @Override
044            public void checkPermission(long groupId, java.lang.String name,
045                    long primKey)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    _permissionService.checkPermission(groupId, name, primKey);
048            }
049    
050            /**
051            * Checks to see if the group has permission to the service.
052            *
053            * @param groupId the primary key of the group
054            * @param name the service name
055            * @param primKey the primary key of the service
056            * @throws PortalException if the group did not have permission to the
057            service, if a group with the primary key could not be found or if
058            the permission information was invalid
059            */
060            @Override
061            public void checkPermission(long groupId, java.lang.String name,
062                    java.lang.String primKey)
063                    throws com.liferay.portal.kernel.exception.PortalException {
064                    _permissionService.checkPermission(groupId, name, primKey);
065            }
066    
067            /**
068            * Returns the Spring bean ID for this bean.
069            *
070            * @return the Spring bean ID for this bean
071            */
072            @Override
073            public java.lang.String getBeanIdentifier() {
074                    return _permissionService.getBeanIdentifier();
075            }
076    
077            /**
078            * Sets the Spring bean ID for this bean.
079            *
080            * @param beanIdentifier the Spring bean ID for this bean
081            */
082            @Override
083            public void setBeanIdentifier(java.lang.String beanIdentifier) {
084                    _permissionService.setBeanIdentifier(beanIdentifier);
085            }
086    
087            /**
088             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
089             */
090            @Deprecated
091            public PermissionService getWrappedPermissionService() {
092                    return _permissionService;
093            }
094    
095            /**
096             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
097             */
098            @Deprecated
099            public void setWrappedPermissionService(PermissionService permissionService) {
100                    _permissionService = permissionService;
101            }
102    
103            @Override
104            public PermissionService getWrappedService() {
105                    return _permissionService;
106            }
107    
108            @Override
109            public void setWrappedService(PermissionService permissionService) {
110                    _permissionService = permissionService;
111            }
112    
113            private PermissionService _permissionService;
114    }