Done changes with respect to pec
This commit is contained in:
@@ -89,6 +89,9 @@ public class ProtocolDao {
|
||||
@Value("${tipoCorrispondente}")
|
||||
private String tipoCorrispondente;
|
||||
|
||||
@Value("${isSviluppumbriaProtocolEnabled}")
|
||||
private String isSviluppUmbriaProtocolEnabled;
|
||||
|
||||
@Autowired
|
||||
private ApplicationSignedDocumentRepository applicationSignedDocumentRepository;
|
||||
|
||||
@@ -156,6 +159,11 @@ public class ProtocolDao {
|
||||
}
|
||||
|
||||
public ProtocolEntity createExternalProtocol(ApplicationEntity application, CompanyEntity company, ProtocolEntity protocol) {
|
||||
|
||||
if (Boolean.FALSE.equals(Boolean.parseBoolean(isSviluppUmbriaProtocolEnabled))) {
|
||||
return protocol;
|
||||
}
|
||||
|
||||
log.info("Starting createExternalProtocol for application ID: {}", application.getId());
|
||||
|
||||
log.debug("Successfully retrieved bearer token");
|
||||
|
||||
Reference in New Issue
Block a user