agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/JobRequestNotificationProcessor.java
/**
	 * Processes a {@link JsonNode} passed in with a job request as a 
	 * notification configuration. Accepts an array of {@link Notification} 
	 * request objects or a simple string;
	 *  
	 * @param json a JSON representation of the notification to be added to the job
	 * @throws NotificationException if the notification cannot be validated
	 */
Processes a  JsonNode passed in with a job request as a
notification configuration. Accepts an array of  Notification
request objects or a simple string.

@param json a JSON representation of the notification to be added to the job
@throws NotificationException if the notification cannot be validated
Processes a JsonNode passed in with a job request as a notification configuration . Accepts an array of Notification request objects or a simple string . @param json a JSON representation of the notification to be added to the job @throws NotificationException if the notification cannot be validated
public void process(JsonNode json) throws NotificationException {
		getNotifications().clear();
		if (json == null || json.isNull()) return;
		if (json.isValueNode()) {
			process(json.textValue());
		}
		else if (json.isArray()) {
			process((ArrayNode)json);
		} else {
			throw new NotificationException("Invalid notification value given. "
					+ "notifications must be an array of notification objects specifying a "
					+ "valid url, event, and an optional boolean persistence attribute.");
		}
	}
public void process ( JsonNode json ) throws NotificationException { getNotifications ( ) . clear ( ) ; if ( json == null || json . isNull ( ) ) return ; if ( json . isValueNode ( ) ) { process ( json . textValue ( ) ) ; } else if ( json . isArray ( ) ) { process ( ( ArrayNode ) json ) ; } else { throw new NotificationException ( "Invalid notification value given. " + "notifications must be an array of notification objects specifying a " + "valid url, event, and an optional boolean persistence attribute." ) ; } }
Processes a {@link JsonNode} passed in with a job request as a
 notification configuration.
Processes a { @link JsonNode } passed in with a job request as a notification configuration .