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
33 lines
899 B
package org.ros.chatto.service;
|
|
|
|
import java.util.List;
|
|
import java.util.Optional;
|
|
import java.util.Set;
|
|
|
|
import org.ros.chatto.dto.ActiveUserDTO;
|
|
import org.ros.chatto.dto.UserRegistrationDTO;
|
|
import org.ros.chatto.model.ChatUser;
|
|
import org.ros.chatto.model.Role;
|
|
import org.ros.chatto.model.UserSession;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
@Service
|
|
public interface UserService {
|
|
public List<String> findAllOtherUsers(String userName);
|
|
|
|
public ChatUser createUser(UserRegistrationDTO userRegistrationDTO);
|
|
|
|
public List<String> getAllRegularUsers();
|
|
|
|
public Optional<ChatUser> getUser(String userName);
|
|
|
|
public Set<Role> getRoles(ChatUser user);
|
|
|
|
public List<ActiveUserDTO> getOtherActiveUsers(String userName);
|
|
|
|
public ChatUser getUserWithRole(String userName);
|
|
|
|
public void incrementUserSession(String userName);
|
|
|
|
public UserSession decrementUserSession(String userName);
|
|
}
|