NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/getreferencevalues/GetReferenceValuesAdapter.java
/**
     * This method is used to match filter criteria received in request
     * 
     * @param ndsRequest
     * @param referenceValuesDetails
     * @return true/false
     */
This method is used to match filter criteria received in request

@param ndsRequest
@param referenceValuesDetails
@return true/false
This method is used to match filter criteria received in request @param ndsRequest @param referenceValuesDetails @return true / false
private boolean matchesRequestFilterCriteria(GetReferenceValuesNdsRequest ndsRequest,
            ReferenceValuesDetails referenceValuesDetails) {
       if (StringUtils.isNotEmpty(ndsRequest.getReferenceValuesDetails().getDomainCode())) {
            return ndsRequest.getReferenceValuesDetails().getDomainCode().equals(
                    referenceValuesDetails.getDomainCode());
        }
        if (StringUtils.isNotEmpty(ndsRequest.getReferenceValuesDetails().getServiceCode())) {
            return ndsRequest.getReferenceValuesDetails().getServiceCode().equals(
                    referenceValuesDetails.getServiceCode());
        }
        if (StringUtils.isNotEmpty(ndsRequest.getReferenceValuesDetails().getWorkplaceCode())) {
            return ndsRequest.getReferenceValuesDetails().getWorkplaceCode().equals(
                    referenceValuesDetails.getWorkplaceCode());
        }
        if (StringUtils.isNotEmpty(ndsRequest.getReferenceValuesDetails().getCode())) {
            return ndsRequest.getReferenceValuesDetails().getCode().equals(referenceValuesDetails.getCode());
        }
        return true;
    }
private boolean matchesRequestFilterCriteria ( GetReferenceValuesNdsRequest ndsRequest , ReferenceValuesDetails referenceValuesDetails ) { if ( StringUtils . isNotEmpty ( ndsRequest . getReferenceValuesDetails ( ) . getDomainCode ( ) ) ) { return ndsRequest . getReferenceValuesDetails ( ) . getDomainCode ( ) . equals ( referenceValuesDetails . getDomainCode ( ) ) ; } if ( StringUtils . isNotEmpty ( ndsRequest . getReferenceValuesDetails ( ) . getServiceCode ( ) ) ) { return ndsRequest . getReferenceValuesDetails ( ) . getServiceCode ( ) . equals ( referenceValuesDetails . getServiceCode ( ) ) ; } if ( StringUtils . isNotEmpty ( ndsRequest . getReferenceValuesDetails ( ) . getWorkplaceCode ( ) ) ) { return ndsRequest . getReferenceValuesDetails ( ) . getWorkplaceCode ( ) . equals ( referenceValuesDetails . getWorkplaceCode ( ) ) ; } if ( StringUtils . isNotEmpty ( ndsRequest . getReferenceValuesDetails ( ) . getCode ( ) ) ) { return ndsRequest . getReferenceValuesDetails ( ) . getCode ( ) . equals ( referenceValuesDetails . getCode ( ) ) ; } return true ; }
This method is used to match filter criteria received in request
This method is used to match filter criteria received in request