NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/converter/ToGetPartyDetailsRequestConverter.java
/**
     * Convert the passed in retrieveRegisteredDetailsNdsRequest to the passed out GetPartyDetailsRequest
     * 
     * @param class com.northgateps.nds.beis.api.retrieveregistereddetails.RetrieveRegisteredDetailsNdsRequest
     * @return
     *     class  com.northgateps.nds.beis.backoffice.service.getpartydetails.GetPartyDetailsRequest
     * @throws NdsApplicationException 
     */
Convert the passed in retrieveRegisteredDetailsNdsRequest to the passed out GetPartyDetailsRequest


Convert the passed in retrieveRegisteredDetailsNdsRequest to the passed out GetPartyDetailsRequest
@Converter
    public static GetPartyDetailsRequest converting(RetrieveRegisteredDetailsNdsRequest retrieveRegisteredDetailsNdsRequest) 
            throws NdsApplicationException, NdsBusinessException {
        logger.info("Starting Conversion For RetrievingRegistrationDetails Request");
        GetPartyDetailsRequest getPartyDetailsRequest = new GetPartyDetailsRequest();
        if(retrieveRegisteredDetailsNdsRequest.getAccountId() ==null){
            throw new NdsBusinessException(
                    "Error occured. The user is only partially registered and does not have a valid account id");
        }
        getPartyDetailsRequest.setPartyRef( new BigInteger(retrieveRegisteredDetailsNdsRequest.getAccountId()));
        logger.info("Finished Conversion For RetrievingRegistrationDetails Request");
        return getPartyDetailsRequest;        
    }
@ Converter public static GetPartyDetailsRequest converting ( RetrieveRegisteredDetailsNdsRequest retrieveRegisteredDetailsNdsRequest ) throws NdsApplicationException , NdsBusinessException { logger . info ( "Starting Conversion For RetrievingRegistrationDetails Request" ) ; GetPartyDetailsRequest getPartyDetailsRequest = new GetPartyDetailsRequest ( ) ; if ( retrieveRegisteredDetailsNdsRequest . getAccountId ( ) == null ) { throw new NdsBusinessException ( "Error occured. The user is only partially registered and does not have a valid account id" ) ; } getPartyDetailsRequest . setPartyRef ( new BigInteger ( retrieveRegisteredDetailsNdsRequest . getAccountId ( ) ) ) ; logger . info ( "Finished Conversion For RetrievingRegistrationDetails Request" ) ; return getPartyDetailsRequest ; }
Convert the passed in retrieveRegisteredDetailsNdsRequest to the passed out GetPartyDetailsRequest
Convert the passed in retrieveRegisteredDetailsNdsRequest to the passed out GetPartyDetailsRequest