agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/JobRequestInputProcessor.java
/**
     * Processes a single array of uri strings provided for a {@link SoftwareInput} field in a
     * job request
     * @param softwareInput the software input for which we are parsing the value
     * @param explodedInputs an array of single input string values
     * @return the sanitized json array of input values
     * @throws PermissionException if the user does not have permission to access the input
     */
Processes a single array of uri strings provided for a  SoftwareInput field in a
job request
@param softwareInput the software input for which we are parsing the value
@param explodedInputs an array of single input string values
@return the sanitized json array of input values
@throws PermissionException if the user does not have permission to access the input
Processes a single array of uri strings provided for a SoftwareInput field in a job request @param softwareInput the software input for which we are parsing the value @param explodedInputs an array of single input string values @return the sanitized json array of input values @throws PermissionException if the user does not have permission to access the input
protected ArrayNode doProcessSoftwareInputValue(SoftwareInput softwareInput, String[] explodedInputs)
            throws PermissionException, JobProcessingException {
        ArrayNode jobRequestInputValue = getMapper().createArrayNode();
        if (explodedInputs != null && explodedInputs.length > 0) {
            for (String singleInput : explodedInputs) {
                String singleStrippedInput = StringUtils.stripToNull(singleInput);
                if (singleStrippedInput != null) {
                    jobRequestInputValue.add(singleStrippedInput);
                }
            }
        }
        return doProcessSoftwareInputValue(softwareInput, jobRequestInputValue);
    }
protected ArrayNode doProcessSoftwareInputValue ( SoftwareInput softwareInput , String [ ] explodedInputs ) throws PermissionException , JobProcessingException { ArrayNode jobRequestInputValue = getMapper ( ) . createArrayNode ( ) ; if ( explodedInputs != null && explodedInputs . length > 0 ) { for ( String singleInput : explodedInputs ) { String singleStrippedInput = StringUtils . stripToNull ( singleInput ) ; if ( singleStrippedInput != null ) { jobRequestInputValue . add ( singleStrippedInput ) ; } } } return doProcessSoftwareInputValue ( softwareInput , jobRequestInputValue ) ; }
Processes a single array of uri strings provided for a {@link SoftwareInput} field in a
 job request
 @param softwareInput the software input for which we are parsing the value
 @param explodedInputs an array of single input string values
 @return the sanitized json array of input values
 @throws PermissionException if the user does not have permission to access the input
Processes a single array of uri strings provided for a { @link SoftwareInput } field in a job request @param softwareInput the software input for which we are parsing the value @param explodedInputs an array of single input string values @return the sanitized json array of input values @throws PermissionException if the user does not have permission to access the input
// skip empty inputs // interate over the array, sanitizing each input and pruning those that are invalid // now process the list of inputs for valid values