1 16 package org.outerj.daisy.repository.commonimpl.user; 17 18 import org.outerj.daisy.repository.user.*; 19 import org.outerj.daisy.repository.RepositoryException; 20 import org.outerj.daisy.repository.commonimpl.AuthenticatedUser; 21 import org.outerx.daisy.x10.PublicUserInfosDocument; 22 import org.outerx.daisy.x10.PublicUserInfoDocument; 23 24 public class UserManagerImpl implements UserManager { 25 private CommonUserManager delegate; 26 31 private org.outerj.daisy.repository.commonimpl.AuthenticatedUser user; 32 33 public UserManagerImpl(CommonUserManager commonUserManager, AuthenticatedUser user) { 34 delegate = commonUserManager; 35 this.user = user; 36 } 37 38 public Users getUsers() throws RepositoryException { 39 return delegate.getUsers(user); 40 } 41 42 public long[] getUserIds() throws RepositoryException { 43 return delegate.getUserIds(user); 44 } 45 46 public PublicUserInfoDocument getPublicUserInfo(long userId) throws RepositoryException { 47 return delegate.getPublicUserInfo(userId); 48 } 49 50 public PublicUserInfosDocument getPublicUserInfos() throws RepositoryException { 51 return delegate.getPublicUserInfos(user); 52 } 53 54 public Roles getRoles() throws RepositoryException { 55 return delegate.getRoles(user); 56 } 57 58 public User createUser(String login) { 59 return delegate.createUser(login, user); 60 } 61 62 public void deleteUser(long userId) throws RepositoryException { 63 delegate.deleteUser(userId, user); 64 } 65 66 public Role createRole(String roleName) { 67 return delegate.createRole(roleName, user); 68 } 69 70 public User getUser(String login, boolean updateable) throws RepositoryException { 71 return delegate.getUser(login, updateable, user); 72 } 73 74 public Role getRole(String name, boolean updateable) throws RepositoryException { 75 return delegate.getRole(name, updateable, user); 76 } 77 78 public void deleteRole(long roleId) throws RepositoryException { 79 delegate.deleteRole(roleId, user); 80 } 81 82 public User getUser(long userId, boolean updateable) throws RepositoryException { 83 return delegate.getUser(userId, updateable, user); 84 } 85 86 public Role getRole(long roleId, boolean updateable) throws RepositoryException { 87 return delegate.getRole(roleId, updateable, user); 88 } 89 90 public String getUserDisplayName(long userId) throws RepositoryException { 91 return delegate.getUserDisplayName(userId); 92 } 93 94 public String getUserLogin(long userId) throws RepositoryException { 95 return delegate.getUserLogin(userId); 96 } 97 98 public long getUserId(String login) throws RepositoryException { 99 return delegate.getUserId(login); 100 } 101 102 public String getRoleDisplayName(long roleId) throws RepositoryException { 103 return delegate.getRoleDisplayName(roleId); 104 } 105 106 public Users getUsersByEmail(String email) throws RepositoryException { 107 return delegate.getUsersByEmail(email, user); 108 } 109 110 public AuthenticationSchemeInfos getAuthenticationSchemes() throws RepositoryException { 111 return delegate.getAuthenticationSchemes(user); 112 } 113 } 114 | Popular Tags |