agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/JobRequestInputProcessor.java
/**
     * Processes a single value provided for a {@link SoftwareInput} field in a
     * job request
     * @param softwareInput the software input for which we are parsing the value
     * @param value a single input string value
     * @return the sanitized json array of input values
     * @throws PermissionException if the user does not have permission to access the input
     */
Processes a single value provided for a  SoftwareInput field in a
job request
@param softwareInput the software input for which we are parsing the value
@param value a single input string value
@return the sanitized json array of input values
@throws PermissionException if the user does not have permission to access the input
Processes a single value provided for a SoftwareInput field in a job request @param softwareInput the software input for which we are parsing the value @param value a single input string value @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, Object value)
            throws PermissionException, JobProcessingException {
        if (value != null) {
            if (value instanceof String) {
                return doProcessSoftwareInputValue(softwareInput, (String) value);
            } else {
                throw new JobProcessingException(400,
                        "Unsupported type for input " + softwareInput.getKey());
            }
        } else {
            return doProcessSoftwareInputValue(softwareInput, getMapper().createArrayNode());
        }
    }
protected ArrayNode doProcessSoftwareInputValue ( SoftwareInput softwareInput , Object value ) throws PermissionException , JobProcessingException { if ( value != null ) { if ( value instanceof String ) { return doProcessSoftwareInputValue ( softwareInput , ( String ) value ) ; } else { throw new JobProcessingException ( 400 , "Unsupported type for input " + softwareInput . getKey ( ) ) ; } } else { return doProcessSoftwareInputValue ( softwareInput , getMapper ( ) . createArrayNode ( ) ) ; } }
Processes a single value provided for a {@link SoftwareInput} field in a
 job request
 @param softwareInput the software input for which we are parsing the value
 @param value a single input string value
 @return the sanitized json array of input values
 @throws PermissionException if the user does not have permission to access the input
Processes a single value provided for a { @link SoftwareInput } field in a job request @param softwareInput the software input for which we are parsing the value @param value a single input string value @return the sanitized json array of input values @throws PermissionException if the user does not have permission to access the input
//            } else if (value instanceof String[]) { //                return doProcessSoftwareInputValue(softwareInput, (String[]) value); //            } else if (value instanceof ArrayNode) { //                return doProcessSoftwareInputValue(softwareInput, (ArrayNode) value);