agave-files/files-core/src/main/java/org/iplantc/service/io/manager/LogicalFileManager.java
/**
	 * Creates a single notification from the given values. The returned
	 * notification has been persisted.
	 * 
	 * @param logicalFile
	 * @param eventType
	 * @param callbackUrl
	 * @param persistent
	 * @param createdBy
	 * @return
	 * @throws NotificationException 
	 */
Creates a single notification from the given values. The returned
notification has been persisted.


Creates a single notification from the given values . The returned notification has been persisted .
public static Notification addNotification(LogicalFile logicalFile,
											   FileEventType eventType,
											   String callbackUrl,
											   boolean persistent,
											   String createdBy)
	throws NotificationException {
		NotificationDao dao = new NotificationDao();
		Notification notification = new Notification(logicalFile.getUuid(), createdBy, eventType.name(), callbackUrl, persistent);
		dao.persist(notification);
		return notification;
	}
public static Notification addNotification ( LogicalFile logicalFile , FileEventType eventType , String callbackUrl , boolean persistent , String createdBy ) throws NotificationException { NotificationDao dao = new NotificationDao ( ) ; Notification notification = new Notification ( logicalFile . getUuid ( ) , createdBy , eventType . name ( ) , callbackUrl , persistent ) ; dao . persist ( notification ) ; return notification ; }
Creates a single notification from the given values.
Creates a single notification from the given values .