NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/process/ValidatePrsExemptionUpdateRequest.java
/**
     * Validates Update Exemption Details
     * 
     * @param request
     * @return request - after validation     
     * @throws NdsApplicationException 
     */
Validates Update Exemption Details

@param request
@return request - after validation
@throws NdsApplicationException
Validates Update Exemption Details @param request @return request - after validation @throws NdsApplicationException
public UpdateExemptionDetailsNdsRequest validate(final UpdateExemptionDetailsNdsRequest request)
            throws NdsApplicationException {
        logger.info("Validating Update Exemption Details request");
        if (request.getUserName() == null) {
            throw new NdsApplicationException("Error in validating the UpdateExemptionDetailsNdsRequest : USERNAME IS NULL ");
        }
        if (request.getTenant() == null) {
            throw new NdsApplicationException("Error in validating the UpdateExemptionDetailsNdsRequest : TENANT IS NULL");
        }
        if (request.getUpdateExemptionDetails().getReferenceId() == null) {
            throw new NdsApplicationException("Error in validating the UpdateExemptionDetailsNdsRequest : REFERENCEID IS NULL");
        }
        if (request.getUpdateExemptionDetails().getEndDate() == null) {
            throw new NdsApplicationException("Error in validating the UpdateExemptionDetailsNdsRequest : ENDDATE IS NULL");
        }
        return request;
    }
public UpdateExemptionDetailsNdsRequest validate ( final UpdateExemptionDetailsNdsRequest request ) throws NdsApplicationException { logger . info ( "Validating Update Exemption Details request" ) ; if ( request . getUserName ( ) == null ) { throw new NdsApplicationException ( "Error in validating the UpdateExemptionDetailsNdsRequest : USERNAME IS NULL " ) ; } if ( request . getTenant ( ) == null ) { throw new NdsApplicationException ( "Error in validating the UpdateExemptionDetailsNdsRequest : TENANT IS NULL" ) ; } if ( request . getUpdateExemptionDetails ( ) . getReferenceId ( ) == null ) { throw new NdsApplicationException ( "Error in validating the UpdateExemptionDetailsNdsRequest : REFERENCEID IS NULL" ) ; } if ( request . getUpdateExemptionDetails ( ) . getEndDate ( ) == null ) { throw new NdsApplicationException ( "Error in validating the UpdateExemptionDetailsNdsRequest : ENDDATE IS NULL" ) ; } return request ; }
Validates Update Exemption Details
Validates Update Exemption Details