001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link RoleService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       RoleService
024     * @generated
025     */
026    public class RoleServiceWrapper implements RoleService {
027            public RoleServiceWrapper(RoleService roleService) {
028                    _roleService = roleService;
029            }
030    
031            public com.liferay.portal.model.Role addRole(java.lang.String name,
032                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
033                    java.lang.String description, int type)
034                    throws com.liferay.portal.kernel.exception.PortalException,
035                            com.liferay.portal.kernel.exception.SystemException {
036                    return _roleService.addRole(name, titleMap, description, type);
037            }
038    
039            public void addUserRoles(long userId, long[] roleIds)
040                    throws com.liferay.portal.kernel.exception.PortalException,
041                            com.liferay.portal.kernel.exception.SystemException {
042                    _roleService.addUserRoles(userId, roleIds);
043            }
044    
045            public void deleteRole(long roleId)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException {
048                    _roleService.deleteRole(roleId);
049            }
050    
051            public java.util.List<com.liferay.portal.model.Role> getGroupRoles(
052                    long groupId)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    return _roleService.getGroupRoles(groupId);
055            }
056    
057            public com.liferay.portal.model.Role getRole(long roleId)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    return _roleService.getRole(roleId);
061            }
062    
063            public com.liferay.portal.model.Role getRole(long companyId,
064                    java.lang.String name)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return _roleService.getRole(companyId, name);
068            }
069    
070            public java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
071                    long userId, long groupId)
072                    throws com.liferay.portal.kernel.exception.SystemException {
073                    return _roleService.getUserGroupGroupRoles(userId, groupId);
074            }
075    
076            public java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
077                    long userId, long groupId)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    return _roleService.getUserGroupRoles(userId, groupId);
080            }
081    
082            public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
083                    long userId, java.util.List<com.liferay.portal.model.Group> groups)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _roleService.getUserRelatedRoles(userId, groups);
086            }
087    
088            public java.util.List<com.liferay.portal.model.Role> getUserRoles(
089                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
090                    return _roleService.getUserRoles(userId);
091            }
092    
093            public boolean hasUserRole(long userId, long companyId,
094                    java.lang.String name, boolean inherited)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return _roleService.hasUserRole(userId, companyId, name, inherited);
098            }
099    
100            public boolean hasUserRoles(long userId, long companyId,
101                    java.lang.String[] names, boolean inherited)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    return _roleService.hasUserRoles(userId, companyId, names, inherited);
105            }
106    
107            public void unsetUserRoles(long userId, long[] roleIds)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException {
110                    _roleService.unsetUserRoles(userId, roleIds);
111            }
112    
113            public com.liferay.portal.model.Role updateRole(long roleId,
114                    java.lang.String name,
115                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
116                    java.lang.String description, java.lang.String subtype)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException {
119                    return _roleService.updateRole(roleId, name, titleMap, description,
120                            subtype);
121            }
122    
123            public RoleService getWrappedRoleService() {
124                    return _roleService;
125            }
126    
127            private RoleService _roleService;
128    }