1 16 package org.outerj.daisy.repository.user; 17 18 import org.outerj.daisy.repository.RepositoryException; 19 import org.outerx.daisy.x10.PublicUserInfosDocument; 20 import org.outerx.daisy.x10.PublicUserInfoDocument; 21 22 25 public interface UserManager { 26 29 Users getUsers() throws RepositoryException; 30 31 long[] getUserIds() throws RepositoryException; 32 33 36 PublicUserInfoDocument getPublicUserInfo(long userId) throws RepositoryException; 37 38 42 PublicUserInfosDocument getPublicUserInfos() throws RepositoryException; 43 44 47 Roles getRoles() throws RepositoryException; 48 49 59 User createUser(String login); 60 61 65 void deleteUser(long userId) throws RepositoryException; 66 67 76 User getUser(long userId, boolean updateable) throws RepositoryException; 77 78 83 Role getRole(long roleId, boolean updateable) throws RepositoryException; 84 85 90 User getUser(String userLogin, boolean updateable) throws RepositoryException; 91 92 97 Role getRole(String roleName, boolean updateable) throws RepositoryException; 98 99 105 Role createRole(String roleName); 106 107 111 void deleteRole(long roleId) throws RepositoryException; 112 113 122 String getUserDisplayName(long userId) throws RepositoryException; 123 124 133 String getUserLogin(long userId) throws RepositoryException; 134 135 141 long getUserId(String login) throws RepositoryException; 142 143 150 String getRoleDisplayName(long roleId) throws RepositoryException; 151 152 Users getUsersByEmail(String email) throws RepositoryException; 153 154 AuthenticationSchemeInfos getAuthenticationSchemes() throws RepositoryException; 155 } 156 | Popular Tags |