Files
fiscad/src/main/java/io/gmss/fiscad/interfaces/decoupage/SecteurService.java

34 lines
1.3 KiB
Java

package io.gmss.fiscad.interfaces.decoupage;
import io.gmss.fiscad.entities.decoupage.Secteur;
import io.gmss.fiscad.exceptions.BadRequestException;
import io.gmss.fiscad.exceptions.NotFoundException;
import io.gmss.fiscad.paylaods.request.crudweb.SecteurPaylaodWeb;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
import java.util.Optional;
public interface SecteurService {
SecteurPaylaodWeb createSecteur(SecteurPaylaodWeb secteur) throws BadRequestException;
SecteurPaylaodWeb updateSecteur(Long id, SecteurPaylaodWeb secteur) throws NotFoundException;
void deleteSecteur(Long id) throws NotFoundException;
Page<SecteurPaylaodWeb> getSecteurList(Pageable pageable);
List<SecteurPaylaodWeb> getSecteurList();
Page<SecteurPaylaodWeb> getSecteurListBySectionId(Long sectionId,Pageable pageable);
List<SecteurPaylaodWeb> getSecteurListBySectionId(Long sectionId);
List<SecteurPaylaodWeb> getSecteurListByStructureId(Long structureId);
Page<SecteurPaylaodWeb> getSecteurListByStructureId(Long structureId,Pageable pageable);
Optional<SecteurPaylaodWeb> getSecteurById(Long id);
List<Secteur> getListSecteurUserId(Long userId) ;
List<Secteur> getListSecteurByDepartementId(Long departementId) ;
}