Files
fiscad/src/main/java/io/gmss/fiscad/interfaces/user/ProfileService.java
Aurince AKAKPO c65fd8a450
All checks were successful
CI - Build & Test (develop) / build-and-test (pull_request) Successful in 32s
gestion de profil, secteur, section et arbre decoupage
2026-01-27 09:37:11 +01:00

35 lines
1.1 KiB
Java
Executable File

package io.gmss.fiscad.interfaces.user;
import io.gmss.fiscad.entities.user.Profile;
import io.gmss.fiscad.enums.UserProfile;
import io.gmss.fiscad.exceptions.BadRequestException;
import io.gmss.fiscad.exceptions.NotFoundException;
import io.gmss.fiscad.paylaods.request.crudweb.ProfilePaylaodWeb;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
import java.util.Optional;
public interface ProfileService {
Profile createProfile(ProfilePaylaodWeb profilePaylaodWeb) throws BadRequestException;
Profile updateProfile(Long id, ProfilePaylaodWeb profilePaylaodWeb) throws NotFoundException;
void deleteProfile(Long id) throws NotFoundException;
Page<Profile> getProfileList(Pageable pageable);
List<Profile> getProfileList();
Optional<Profile> getProfileById(Long id);
Optional<Profile> getProfileByProfileName(UserProfile userProfile);
boolean profileExistByProfileName(UserProfile userProfile);
Profile retrieveProfileByProfileName(UserProfile userProfile);
}