Skip to content

Commit

Permalink
Fix : Imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-maraval committed Apr 2, 2024
1 parent 09c201d commit e013c38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package fr.abes.item.service;

import fr.abes.cbs.exception.CBSException;
import fr.abes.cbs.exception.CommException;
import fr.abes.cbs.exception.ZoneException;
import fr.abes.cbs.notices.Exemplaire;
import fr.abes.cbs.process.ProcessCBS;
Expand Down Expand Up @@ -29,9 +28,9 @@ public interface ITraitementService {

ProcessCBS getCbs();

void authenticate(String login) throws CBSException, CommException, IOException;
void authenticate(String login) throws CBSException, IOException;

String getNoticeFromEPN(String epn) throws CBSException, CommException, ZoneException, IOException;
String getNoticeFromEPN(String epn) throws CBSException, ZoneException, IOException;

Exemplaire creerNouvelleZone(String notice, String tag, String subTag, String valeur) throws ZoneException;

Expand All @@ -43,7 +42,7 @@ public interface ITraitementService {

Exemplaire remplacerSousZone(String notice, String tag, String subTag, String valeur) throws ZoneException;

String saveExemplaire(String noticeModifiee, String epn) throws CBSException, CommException, IOException;
String saveExemplaire(String noticeModifiee, String epn) throws CBSException, IOException;

void disconnect() throws CBSException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package fr.abes.item.service.impl;

import fr.abes.cbs.exception.CBSException;
import fr.abes.cbs.exception.CommException;
import fr.abes.cbs.process.ProcessCBS;
import fr.abes.item.constant.Constant;
import fr.abes.item.service.IStatusService;
Expand All @@ -15,6 +14,7 @@
import org.springframework.stereotype.Service;

import javax.sql.DataSource;
import java.io.IOException;

@Slf4j
@Service
Expand Down Expand Up @@ -49,7 +49,7 @@ public Boolean getCbsConnectionStatus(){
try {
cbs.authenticate(serveurSudoc, portSudoc, login, Constant.PASSSUDOC);
return true;
} catch (CBSException | CommException e) {
} catch (CBSException | IOException e) {
log.error("serveur " + serveurSudoc + " : " + e.getMessage());
return false;
}
Expand Down
3 changes: 1 addition & 2 deletions web/src/main/java/fr/abes/item/web/IDemandeRestService.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package fr.abes.item.web;

import fr.abes.cbs.exception.CBSException;
import fr.abes.cbs.exception.CommException;
import fr.abes.cbs.exception.ZoneException;
import fr.abes.item.constant.TYPE_DEMANDE;
import fr.abes.item.entities.item.*;
Expand Down Expand Up @@ -72,7 +71,7 @@ String uploadDemande(@RequestParam(required = false, defaultValue = "MODIF") TYP

@GetMapping("/simulerLigne")
@ApiOperation(value = "permet de simuler la modification d'un exemplaire", notes="pour un exemplaire donné du fichier enrichi, renvoie un tableau contenant la notice avant et après modification")
String[] simulerLigne(@RequestParam(required = false, defaultValue = "MODIF") TYPE_DEMANDE type, @RequestParam Integer numDemande, @RequestParam Integer numLigne, HttpServletRequest request) throws CBSException, UserExistException, ForbiddenException, QueryToSudocException, ZoneException, CommException, IOException;
String[] simulerLigne(@RequestParam(required = false, defaultValue = "MODIF") TYPE_DEMANDE type, @RequestParam Integer numDemande, @RequestParam Integer numLigne, HttpServletRequest request) throws CBSException, UserExistException, ForbiddenException, QueryToSudocException, ZoneException, IOException;

@GetMapping("/passerEnAttente")
@ApiOperation(value = "permet de modifier le statut de la demande pour la passer à : en attente")
Expand Down

0 comments on commit e013c38

Please sign in to comment.