Package org.n52.iceland.config
Interface AdminUserService
- All Known Implementing Classes:
AdminUserServiceImpl
public interface AdminUserService
TODO JavaDoc
-
Method Summary
Modifier and TypeMethodDescriptioncreateAdminUser(String username, String password) Creates a newAdministratorUser.voiddeleteAdminUser(String username) Deletes the user with the specified username.voidDeletes the user previously returned bygetAdminUser(java.lang.String)orgetAdminUsers().voidDeletes all users.getAdminUser(String username) Gets the administrator user with the specified user name.Gets all registered administrator users.booleanChecks if a administrator user exists.voidSaves a user previously returned bygetAdminUser(java.lang.String)orgetAdminUsers().
-
Method Details
-
createAdminUser
Creates a newAdministratorUser. This method will fail if the username is already used by another user.- Parameters:
username- the proposed usernamepassword- the proposed (hashed) password- Returns:
- the user
-
deleteAdminUser
Deletes the user with the specified username.- Parameters:
username- the username
-
deleteAdminUser
Deletes the user previously returned bygetAdminUser(java.lang.String)orgetAdminUsers().- Parameters:
user- the user
-
getAdminUser
Gets the administrator user with the specified user name.- Parameters:
username- the username- Returns:
- the administrator user or
nullif no user with the specified name exists
-
getAdminUsers
Set<AdministratorUser> getAdminUsers()Gets all registered administrator users.- Returns:
- the users
-
hasAdminUser
boolean hasAdminUser()Checks if a administrator user exists.- Returns:
trueif there is a admin user, otherwisefalse.
-
saveAdminUser
Saves a user previously returned bygetAdminUser(java.lang.String)orgetAdminUsers().- Parameters:
user- the user to change
-
deleteAll
void deleteAll()Deletes all users.
-