agave-files/files-core/src/main/java/org/iplantc/service/io/manager/LogicalFileManager.java
/**
	 * Validates and adds an {@link ArrayNode} of {@link Notification}s represented as {@link ObjectNode} 
	 * to a logical file. The {@link ObjectNode} must conform to the the same {@link Notification} request 
	 * format as would be passed to the Notifications API. The {@ode associationUuid} field can be omitted 
	 * as it will be set to the value of {@link LogicalFile#getUuid()}.
	 * 
	 * @param logicalFile the logical file to which the notification will be associated
	 * @param jsonNotifications an {@link ArrayNode} of json serialized {@link Notification} objects to add 
	 * @return the registered {@link Notifications}.
	 * @throws NotificationException
	 * Adds a single {@link Notification} for a given logical file. 
	 * @return
	 */
Validates and adds an  ArrayNode of  Notifications represented as  ObjectNode
to a logical file. The  ObjectNode must conform to the the same  Notification request
format as would be passed to the Notifications API. The  associationUuid field can be omitted
as it will be set to the value of  LogicalFile#getUuid().

@param logicalFile the logical file to which the notification will be associated
@param jsonNotifications an  ArrayNode of json serialized  Notification objects to add
@return the registered  Notifications.
@throws NotificationException
Adds a single  Notification for a given logical file.
@return
Validates and adds an ArrayNode of Notifications represented as ObjectNode to a logical file . The ObjectNode must conform to the the same Notification request format as would be passed to the Notifications API . The associationUuid field can be omitted as it will be set to the value of LogicalFile#getUuid () . @param logicalFile the logical file to which the notification will be associated @param jsonNotifications an ArrayNode of json serialized Notification objects to add @return the registered Notifications . @throws NotificationException Adds a single Notification for a given logical file . @return
public static List<Notification> addUploadNotifications(LogicalFile logicalFile, String createdBy, ArrayNode jsonNotifications) 
	{
		List<Notification> notifications = new ArrayList<Notification>();
		try {
			for (Iterator<JsonNode> iter = jsonNotifications.iterator(); iter.hasNext(); ) {
				JsonNode jNotification = iter.next();
				if (jNotification.isObject()) {
					Notification notification = addUploadNotification(logicalFile, createdBy, (ObjectNode)jNotification);
					notifications.add(notification);
				} else {
					throw new NotificationException("Failed to parse notification description. Notifications "
							+ "should be provided as an array of notification objects.");
				}
			}
		} catch (Exception ignored) {}
		return notifications;
	}
public static List < Notification > addUploadNotifications ( LogicalFile logicalFile , String createdBy , ArrayNode jsonNotifications ) { List < Notification > notifications = new ArrayList < Notification > ( ) ; try { for ( Iterator < JsonNode > iter = jsonNotifications . iterator ( ) ; iter . hasNext ( ) ; ) { JsonNode jNotification = iter . next ( ) ; if ( jNotification . isObject ( ) ) { Notification notification = addUploadNotification ( logicalFile , createdBy , ( ObjectNode ) jNotification ) ; notifications . add ( notification ) ; } else { throw new NotificationException ( "Failed to parse notification description. Notifications " + "should be provided as an array of notification objects." ) ; } } } catch ( Exception ignored ) { } return notifications ; }
Validates and adds an {@link ArrayNode} of {@link Notification}s represented as {@link ObjectNode}
 to a logical file.
Validates and adds an { @link ArrayNode } of { @link Notification } s represented as { @link ObjectNode } to a logical file .