@Component @Singleton public class UserManagerImpl extends Object implements UserManager
| Constructor and Description |
|---|
UserManagerImpl(CredentialsProvider credentialsProvider) |
| Modifier and Type | Method and Description |
|---|---|
User |
addUser(UserSession currentSession,
String userName,
String allowedHost,
String password) |
User |
authenticate(Credentials credentials) |
void |
authorize(UserSession userSession,
String object,
AccessMode mode) |
void |
deleteUser(UserSession session,
String userName) |
GrantObject |
getGrantObject(UserSession session,
String object) |
List<GrantObject> |
getGrantObjects(UserSession session) |
List<String> |
getUsers(UserSession currentSession) |
void |
grantUser(UserSession currentSession,
String object,
String userName,
AccessMode mode) |
void |
revoke(UserSession currentSession,
String object,
String userName) |
@Autowired public UserManagerImpl(CredentialsProvider credentialsProvider)
public User authenticate(Credentials credentials) throws JasDBStorageException
authenticate in interface UserManagerJasDBStorageExceptionpublic void authorize(UserSession userSession, String object, AccessMode mode) throws JasDBStorageException
authorize in interface UserManagerJasDBStorageExceptionpublic List<String> getUsers(UserSession currentSession) throws JasDBStorageException
getUsers in interface UserManagerJasDBStorageExceptionpublic User addUser(UserSession currentSession, String userName, String allowedHost, String password) throws JasDBStorageException
addUser in interface UserManagerJasDBStorageExceptionpublic void grantUser(UserSession currentSession, String object, String userName, AccessMode mode) throws JasDBStorageException
grantUser in interface UserManagerJasDBStorageExceptionpublic void revoke(UserSession currentSession, String object, String userName) throws JasDBStorageException
revoke in interface UserManagerJasDBStorageExceptionpublic void deleteUser(UserSession session, String userName) throws JasDBStorageException
deleteUser in interface UserManagerJasDBStorageExceptionpublic GrantObject getGrantObject(UserSession session, String object) throws JasDBStorageException
getGrantObject in interface UserManagerJasDBStorageExceptionpublic List<GrantObject> getGrantObjects(UserSession session) throws JasDBStorageException
getGrantObjects in interface UserManagerJasDBStorageExceptionCopyright © 2015. All rights reserved.