agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/JobRequestProcessor.java
/**
	 * Enforces basic naming conventions on the job name
	 * @param jobRequestMap the job request
	 * @return the trimmed job name
	 * @throws JobProcessingException if the name fails validation
	 */
Enforces basic naming conventions on the job name
@param jobRequestMap the job request
@return the trimmed job name
@throws JobProcessingException if the name fails validation
Enforces basic naming conventions on the job name @param jobRequestMap the job request @return the trimmed job name @throws JobProcessingException if the name fails validation
public String processNameRequest(Map<String, Object> jobRequestMap)
	throws JobProcessingException 
	{
		String name = null;
		if (jobRequestMap.containsKey("name")) {
			name = (String)jobRequestMap.get("name");
		} else {
			name = (String)jobRequestMap.get("jobName");
		}
		if (StringUtils.isEmpty(name)) {
			throw new JobProcessingException(400,
					"Job name cannot be empty.");
		}
		else if (StringUtils.length(name) > 64) {
			throw new JobProcessingException(400,
					"Job name must be less than 64 characters.");
		}
		else {
			name = name.trim();
		}
		return name;
	}
public String processNameRequest ( Map < String , Object > jobRequestMap ) throws JobProcessingException { String name = null ; if ( jobRequestMap . containsKey ( "name" ) ) { name = ( String ) jobRequestMap . get ( "name" ) ; } else { name = ( String ) jobRequestMap . get ( "jobName" ) ; } if ( StringUtils . isEmpty ( name ) ) { throw new JobProcessingException ( 400 , "Job name cannot be empty." ) ; } else if ( StringUtils . length ( name ) > 64 ) { throw new JobProcessingException ( 400 , "Job name must be less than 64 characters." ) ; } else { name = name . trim ( ) ; } return name ; }
Enforces basic naming conventions on the job name
 @param jobRequestMap the job request
 @return the trimmed job name
 @throws JobProcessingException if the name fails validation
Enforces basic naming conventions on the job name @param jobRequestMap the job request @return the trimmed job name @throws JobProcessingException if the name fails validation