NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/process/ValidateGetPRSAccountExemptionsNdsRequest.java
/**
     * Validates if user is present in backoffice or not
     */
Validates if user is present in backoffice or not
Validates if user is present in backoffice or not
public void validateUserDataInBackoffice(Exchange exchange) throws NdsBusinessException {
        RetrieveRegisteredDetailsNdsResponse retrieveRegisteredDetailsNdsResponse = (RetrieveRegisteredDetailsNdsResponse) exchange.getIn().getBody();
        if (retrieveRegisteredDetailsNdsResponse.getNdsMessages() != null) {
            if (retrieveRegisteredDetailsNdsResponse.getNdsMessages().getErrorNumber().equals("BEI-187")
                    || retrieveRegisteredDetailsNdsResponse.getNdsMessages().getErrorNumber().equals("BEI-188")) {
                throw new NdsBusinessException(retrieveRegisteredDetailsNdsResponse.getNdsMessages().getErrorNumber());
            }
        }
    }
public void validateUserDataInBackoffice ( Exchange exchange ) throws NdsBusinessException { RetrieveRegisteredDetailsNdsResponse retrieveRegisteredDetailsNdsResponse = ( RetrieveRegisteredDetailsNdsResponse ) exchange . getIn ( ) . getBody ( ) ; if ( retrieveRegisteredDetailsNdsResponse . getNdsMessages ( ) != null ) { if ( retrieveRegisteredDetailsNdsResponse . getNdsMessages ( ) . getErrorNumber ( ) . equals ( "BEI-187" ) || retrieveRegisteredDetailsNdsResponse . getNdsMessages ( ) . getErrorNumber ( ) . equals ( "BEI-188" ) ) { throw new NdsBusinessException ( retrieveRegisteredDetailsNdsResponse . getNdsMessages ( ) . getErrorNumber ( ) ) ; } } }
Validates if user is present in backoffice or not
Validates if user is present in backoffice or not