Files
fiscad/src/main/java/io/gmss/fiscad/interfaces/user/UserService.java
Aurince AKAKPO fc6ff679f0
All checks were successful
CI - Build & Test (develop) / build-and-test (pull_request) Successful in 33s
gestion revu de code en utilisant uniquement les DTO
2026-02-03 00:01:45 +01:00

59 lines
1.7 KiB
Java
Executable File

package io.gmss.fiscad.interfaces.user;
import io.gmss.fiscad.entities.infocad.parametre.Structure;
import io.gmss.fiscad.entities.user.User;
import io.gmss.fiscad.enums.UserRole;
import io.gmss.fiscad.paylaods.JwtAuthenticationResponse;
import io.gmss.fiscad.paylaods.Login;
import io.gmss.fiscad.paylaods.UserListByStructureResponse;
import io.gmss.fiscad.paylaods.UserResponse;
import io.gmss.fiscad.paylaods.request.crudweb.UserPaylaodWeb;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
public interface UserService {
UserPaylaodWeb createUser(UserPaylaodWeb userPaylaodWeb);
JwtAuthenticationResponse loginUser(Login login);
UserPaylaodWeb updateUser(Long id, UserPaylaodWeb userPaylaodWeb);
void updatePassword(String username, String pwd);
void deleteUser(Long id);
Page<UserPaylaodWeb> getUserList(Pageable pageable);
List<UserPaylaodWeb> getUserList();
List<UserResponse> getAllUserListResponse();
List<User> getActivatedUserListByStructure(Long structureId);
List<User> getUserUnActivatedListByStructure(Long StructureId);
long countUser();
User getUserById(Long id);
User getUserByUsername(String username);
User activateOrNotUser(Long id);
UserPaylaodWeb resetPassword(String username, String password);
User assignStructureToUser(Structure structure);
User validateUserAccount(String username, UserRole userRole);
UserListByStructureResponse getListUserByStructure(Long structureId);
List<UserResponse> getListUserResponseByStructure(Long structureId);
UserResponse getUserResponseFromUser(User user);
}