public interface AdminUserService
| Modifier and Type | Method and Description |
|---|---|
AdministratorUser |
createAdminUser(String username,
String password)
Creates a new
AdministratorUser. |
void |
deleteAdminUser(AdministratorUser user)
Deletes the user previously returned by
getAdminUser(java.lang.String) or getAdminUsers(). |
void |
deleteAdminUser(String username)
Deletes the user with the specified username.
|
void |
deleteAll()
Deletes all users.
|
AdministratorUser |
getAdminUser(String username)
Gets the administrator user with the specified user name.
|
Set<AdministratorUser> |
getAdminUsers()
Gets all registered administrator users.
|
boolean |
hasAdminUser()
Checks if a administrator user exists.
|
void |
saveAdminUser(AdministratorUser user)
Saves a user previously returned by
getAdminUser(java.lang.String) or getAdminUsers(). |
AdministratorUser createAdminUser(String username, String password)
AdministratorUser. This method will fail if the username is already used by another user.username - the proposed usernamepassword - the proposed (hashed) passwordvoid deleteAdminUser(String username)
username - the usernamevoid deleteAdminUser(AdministratorUser user)
getAdminUser(java.lang.String) or getAdminUsers().user - the userAdministratorUser getAdminUser(String username)
username - the usernamenull if no user with the specified name existsSet<AdministratorUser> getAdminUsers()
boolean hasAdminUser()
true if there is a admin user, otherwise false.void saveAdminUser(AdministratorUser user)
getAdminUser(java.lang.String) or getAdminUsers().user - the user to changevoid deleteAll()
Copyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.