agave-files/files-core/src/main/java/org/iplantc/service/io/manager/LogicalFileManager.java
/**
	 * Adds a single {@link Notification} for a given logical file.
	 * 
	 * @param logicalFile
	 * @param json
	 * @return
	 * @throws NotificationException
	 */
Adds a single  Notification for a given logical file.

@param logicalFile
@param json
@return
@throws NotificationException
Adds a single Notification for a given logical file . @param logicalFile @param json @return @throws NotificationException
public static Notification addUploadNotification(LogicalFile logicalFile,
													 String createdBy,
													 ObjectNode json)
	throws NotificationException {
		NotificationDao dao = new NotificationDao();
		json.put("associatedUuid", logicalFile.getUuid());
		Notification notification = Notification.fromJSON(json);
		notification.setOwner(createdBy);
		dao.persist(notification);
		return notification;
	}
public static Notification addUploadNotification ( LogicalFile logicalFile , String createdBy , ObjectNode json ) throws NotificationException { NotificationDao dao = new NotificationDao ( ) ; json . put ( "associatedUuid" , logicalFile . getUuid ( ) ) ; Notification notification = Notification . fromJSON ( json ) ; notification . setOwner ( createdBy ) ; dao . persist ( notification ) ; return notification ; }
Adds a single {@link Notification} for a given logical file.
Adds a single { @link Notification } for a given logical file .