A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
899 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. package org.ros.chatto.service;
  2. import java.util.List;
  3. import java.util.Optional;
  4. import java.util.Set;
  5. import org.ros.chatto.dto.ActiveUserDTO;
  6. import org.ros.chatto.dto.UserRegistrationDTO;
  7. import org.ros.chatto.model.ChatUser;
  8. import org.ros.chatto.model.Role;
  9. import org.ros.chatto.model.UserSession;
  10. import org.springframework.stereotype.Service;
  11. @Service
  12. public interface UserService {
  13. public List<String> findAllOtherUsers(String userName);
  14. public ChatUser createUser(UserRegistrationDTO userRegistrationDTO);
  15. public List<String> getAllRegularUsers();
  16. public Optional<ChatUser> getUser(String userName);
  17. public Set<Role> getRoles(ChatUser user);
  18. public List<ActiveUserDTO> getOtherActiveUsers(String userName);
  19. public ChatUser getUserWithRole(String userName);
  20. public void incrementUserSession(String userName);
  21. public UserSession decrementUserSession(String userName);
  22. }