NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/getpartiallyregistereddetails/GetPartiallyRegisteredDetailsLdapComponent.java
/**
     * This function will read the address attributes from ldap and set them in the address
     * class for the response.
     * @param attributes this is a map of name value pairs representing LDAP attributes
     * @return address details held in LDAP
     */
This function will read the address attributes from ldap and set them in the address
class for the response.
@param attributes this is a map of name value pairs representing LDAP attributes
@return address details held in LDAP
This function will read the address attributes from ldap and set them in the address class for the response . @param attributes this is a map of name value pairs representing LDAP attributes @return address details held in LDAP
private BeisAddressDetail GetAddressDetailsFromLdapAttributes(Map<String, String> attributes){
        String ldapAttributeStreetLineOne = configurationManager.getString("attribute.street");
        String ldapAttributeStreetLineTwo = configurationManager.getString("attribute.street2");
        String ldapAttributeTown = configurationManager.getString("attribute.town");
        String ldapAttributeCounty = configurationManager.getString("attribute.county");
        String ldapAttributePostcode = configurationManager.getString("attribute.postalCode");
        String ldapAttributeUprn = configurationManager.getString("attribute.uprn"); 
        String ldapAttributeCountry = configurationManager.getString("attribute.country");
        BeisAddressDetail addressDetails = new BeisAddressDetail();
        addressDetails.setLine(new ArrayList<String>());
        addressDetails.getLine().add(attributes.get(ldapAttributeStreetLineOne));
        addressDetails.getLine().add(attributes.get(ldapAttributeStreetLineTwo));
        addressDetails.setTown(attributes.get(ldapAttributeTown));
        addressDetails.setCounty(attributes.get(ldapAttributeCounty));
        addressDetails.setPostcode(attributes.get(ldapAttributePostcode));
        addressDetails.setCountry(attributes.get(ldapAttributeCountry));           
        addressDetails.setUprn(attributes.get(ldapAttributeUprn));
        return addressDetails;
    }
private BeisAddressDetail GetAddressDetailsFromLdapAttributes ( Map < String , String > attributes ) { String ldapAttributeStreetLineOne = configurationManager . getString ( "attribute.street" ) ; String ldapAttributeStreetLineTwo = configurationManager . getString ( "attribute.street2" ) ; String ldapAttributeTown = configurationManager . getString ( "attribute.town" ) ; String ldapAttributeCounty = configurationManager . getString ( "attribute.county" ) ; String ldapAttributePostcode = configurationManager . getString ( "attribute.postalCode" ) ; String ldapAttributeUprn = configurationManager . getString ( "attribute.uprn" ) ; String ldapAttributeCountry = configurationManager . getString ( "attribute.country" ) ; BeisAddressDetail addressDetails = new BeisAddressDetail ( ) ; addressDetails . setLine ( new ArrayList < String > ( ) ) ; addressDetails . getLine ( ) . add ( attributes . get ( ldapAttributeStreetLineOne ) ) ; addressDetails . getLine ( ) . add ( attributes . get ( ldapAttributeStreetLineTwo ) ) ; addressDetails . setTown ( attributes . get ( ldapAttributeTown ) ) ; addressDetails . setCounty ( attributes . get ( ldapAttributeCounty ) ) ; addressDetails . setPostcode ( attributes . get ( ldapAttributePostcode ) ) ; addressDetails . setCountry ( attributes . get ( ldapAttributeCountry ) ) ; addressDetails . setUprn ( attributes . get ( ldapAttributeUprn ) ) ; return addressDetails ; }
This function will read the address attributes from ldap and set them in the address
 class for the response.
This function will read the address attributes from ldap and set them in the address class for the response .