NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/process/ValidateGetPRSAccountExemptionsNdsRequest.java
/**
     * Validates a dashboard request
     * 
     * @param request
     * @return request - after validation
     * @throws NdsApplicationException
     */
Validates a dashboard request

@param request
@return request - after validation
@throws NdsApplicationException
Validates a dashboard request @param request @return request - after validation @throws NdsApplicationException
public GetPRSAccountExemptionsNdsRequest validate(final GetPRSAccountExemptionsNdsRequest request)
            throws NdsApplicationException {
        logger.info("Validating dashboard request");
        if (request.getUsername() == null) {
            throw new NdsApplicationException(
                    "Error in validating the GetPRSAccountExemptionsNdsRequest : USERNAME IS NULL ");
        }
        if (request.getTenant() == null) {
            throw new NdsApplicationException(
                    "Error in validating the GetPRSAccountExemptionsNdsRequest : TENANT IS NULL");
        }
        return request;
    }
public GetPRSAccountExemptionsNdsRequest validate ( final GetPRSAccountExemptionsNdsRequest request ) throws NdsApplicationException { logger . info ( "Validating dashboard request" ) ; if ( request . getUsername ( ) == null ) { throw new NdsApplicationException ( "Error in validating the GetPRSAccountExemptionsNdsRequest : USERNAME IS NULL " ) ; } if ( request . getTenant ( ) == null ) { throw new NdsApplicationException ( "Error in validating the GetPRSAccountExemptionsNdsRequest : TENANT IS NULL" ) ; } return request ; }
Validates a dashboard request
Validates a dashboard request