io.hyperfoil.tools.horreum.svc.user.UserBackEnd Maven / Gradle / Ivy
package io.hyperfoil.tools.horreum.svc.user;
import java.util.List;
import java.util.Map;
import io.hyperfoil.tools.horreum.api.internal.services.UserService;
/**
* Interface for back-end implementations for {@link io.hyperfoil.tools.horreum.svc.UserServiceImpl}
*/
public interface UserBackEnd {
List searchUsers(String query);
List info(List usernames);
void createUser(UserService.NewUser user);
void removeUser(String username);
List getTeams();
Map> teamMembers(String team);
void updateTeamMembers(String team, Map> roles);
List getAllTeams();
void addTeam(String team);
void deleteTeam(String team);
List administrators();
void updateAdministrators(List newAdmins);
List machineAccounts(String team);
void setPassword(String username, String password);
}