NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/process/ValidateRetrieveRegisteredUserDetails.java
/**
     * Validates submitted retrieve registered user details.
     * 
     * @param request
     * @return request - after validation
     * @throws NdsBusinessException
     * @throws NdsApplicationException 
     */
Validates submitted retrieve registered user details.

@param request
@return request - after validation
@throws NdsBusinessException
@throws NdsApplicationException
Validates submitted retrieve registered user details . @param request @return request - after validation @throws NdsBusinessException @throws NdsApplicationException
public RetrieveRegisteredDetailsNdsRequest validate(final RetrieveRegisteredDetailsNdsRequest request)
            throws NdsBusinessException, NdsApplicationException {
        logger.info("Validating retrieve registered user details");
        if (request.getUsername() == null) {
            throw new NdsApplicationException("Expected the username but it was null");
        }
        if (request.getTenant() == null) {
            throw new NdsApplicationException("Expected the tenant but it was null");
        }
        return request;
    }
public RetrieveRegisteredDetailsNdsRequest validate ( final RetrieveRegisteredDetailsNdsRequest request ) throws NdsBusinessException , NdsApplicationException { logger . info ( "Validating retrieve registered user details" ) ; if ( request . getUsername ( ) == null ) { throw new NdsApplicationException ( "Expected the username but it was null" ) ; } if ( request . getTenant ( ) == null ) { throw new NdsApplicationException ( "Expected the tenant but it was null" ) ; } return request ; }
Validates submitted retrieve registered user details.
Validates submitted retrieve registered user details .