NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/process/ValidateViewPdfDocumentRequest.java
/**
     * Validates submitted view pdf request.
     * 
     * @param request
     * @return request - after validation
     * @throws InvalidReferenceNumberException
     */
Validates submitted view pdf request.

@param request
@return request - after validation
@throws InvalidReferenceNumberException
Validates submitted view pdf request . @param request @return request - after validation @throws InvalidReferenceNumberException
public ViewPdfNdsRequest validate(final ViewPdfNdsRequest request)
            throws InvalidReferenceNumberException {
        logger.info("Validating view pdf document Request");
        List<ValidationViolation> violations = new ArrayList<ValidationViolation>();
        if (request.getReferenceNumber() == null) {
            violations.add(new ValidationViolation("referenceNumber",
                    "Validation_Malformed_View_Pdf_Request"));
        } 
        if (violations.size() > 0) {
            throw new InvalidReferenceNumberException(violations);
        }
        return request;       
    }
public ViewPdfNdsRequest validate ( final ViewPdfNdsRequest request ) throws InvalidReferenceNumberException { logger . info ( "Validating view pdf document Request" ) ; List < ValidationViolation > violations = new ArrayList < ValidationViolation > ( ) ; if ( request . getReferenceNumber ( ) == null ) { violations . add ( new ValidationViolation ( "referenceNumber" , "Validation_Malformed_View_Pdf_Request" ) ) ; } if ( violations . size ( ) > 0 ) { throw new InvalidReferenceNumberException ( violations ) ; } return request ; }
Validates submitted view pdf request.
Validates submitted view pdf request .