001
014
015 package com.liferay.portal.service;
016
017
018
027 public class RoleServiceWrapper implements RoleService {
028 public RoleServiceWrapper(RoleService roleService) {
029 _roleService = roleService;
030 }
031
032 public com.liferay.portal.model.Role addRole(java.lang.String name,
033 java.util.Map<java.util.Locale, java.lang.String> titleMap,
034 java.lang.String description, int type)
035 throws com.liferay.portal.kernel.exception.PortalException,
036 com.liferay.portal.kernel.exception.SystemException {
037 return _roleService.addRole(name, titleMap, description, type);
038 }
039
040 public void addUserRoles(long userId, long[] roleIds)
041 throws com.liferay.portal.kernel.exception.PortalException,
042 com.liferay.portal.kernel.exception.SystemException {
043 _roleService.addUserRoles(userId, roleIds);
044 }
045
046 public void deleteRole(long roleId)
047 throws com.liferay.portal.kernel.exception.PortalException,
048 com.liferay.portal.kernel.exception.SystemException {
049 _roleService.deleteRole(roleId);
050 }
051
052 public java.util.List<com.liferay.portal.model.Role> getGroupRoles(
053 long groupId)
054 throws com.liferay.portal.kernel.exception.SystemException {
055 return _roleService.getGroupRoles(groupId);
056 }
057
058 public com.liferay.portal.model.Role getRole(long roleId)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException {
061 return _roleService.getRole(roleId);
062 }
063
064 public com.liferay.portal.model.Role getRole(long companyId,
065 java.lang.String name)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException {
068 return _roleService.getRole(companyId, name);
069 }
070
071 public java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
072 long userId, long groupId)
073 throws com.liferay.portal.kernel.exception.SystemException {
074 return _roleService.getUserGroupGroupRoles(userId, groupId);
075 }
076
077 public java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
078 long userId, long groupId)
079 throws com.liferay.portal.kernel.exception.SystemException {
080 return _roleService.getUserGroupRoles(userId, groupId);
081 }
082
083 public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
084 long userId, java.util.List<com.liferay.portal.model.Group> groups)
085 throws com.liferay.portal.kernel.exception.SystemException {
086 return _roleService.getUserRelatedRoles(userId, groups);
087 }
088
089 public java.util.List<com.liferay.portal.model.Role> getUserRoles(
090 long userId) throws com.liferay.portal.kernel.exception.SystemException {
091 return _roleService.getUserRoles(userId);
092 }
093
094 public boolean hasUserRole(long userId, long companyId,
095 java.lang.String name, boolean inherited)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException {
098 return _roleService.hasUserRole(userId, companyId, name, inherited);
099 }
100
101 public boolean hasUserRoles(long userId, long companyId,
102 java.lang.String[] names, boolean inherited)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException {
105 return _roleService.hasUserRoles(userId, companyId, names, inherited);
106 }
107
108 public void unsetUserRoles(long userId, long[] roleIds)
109 throws com.liferay.portal.kernel.exception.PortalException,
110 com.liferay.portal.kernel.exception.SystemException {
111 _roleService.unsetUserRoles(userId, roleIds);
112 }
113
114 public com.liferay.portal.model.Role updateRole(long roleId,
115 java.lang.String name,
116 java.util.Map<java.util.Locale, java.lang.String> titleMap,
117 java.lang.String description, java.lang.String subtype)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException {
120 return _roleService.updateRole(roleId, name, titleMap, description,
121 subtype);
122 }
123
124 public RoleService getWrappedRoleService() {
125 return _roleService;
126 }
127
128 private RoleService _roleService;
129 }