[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model ConstructionSpaceFacade.java,1.2,1.3
Status: Pre-Alpha
Brought to you by:
henryml
From: Jesper P. <je...@us...> - 2005-07-28 10:16:13
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13099 Modified Files: ConstructionSpaceFacade.java EdgeFacade.java ElementFacade.java FunctionalSpaceFacade.java PartFacade.java SurfaceFacade.java VertexFacade.java Log Message: Generate notifications Index: ConstructionSpaceFacade.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/ConstructionSpaceFacade.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ConstructionSpaceFacade.java 28 Jul 2005 06:48:54 -0000 1.2 --- ConstructionSpaceFacade.java 28 Jul 2005 10:16:01 -0000 1.3 *************** *** 7,10 **** --- 7,12 ---- package net.sourceforge.bprocessor.model; + import net.sourceforge.bprocessor.kernel.notification.Notification; + import net.sourceforge.bprocessor.kernel.notification.Notifier; import net.sourceforge.bprocessor.model.db.HibernateUtil; *************** *** 59,62 **** --- 61,67 ---- tx.commit(); + + Notification n = new Notification(Notification.CONSTRUCTION_SPACE_CREATED, c.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 81,84 **** --- 86,92 ---- tx.commit(); + + Notification n = new Notification(Notification.CONSTRUCTION_SPACE_MODIFIED, c.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 101,104 **** --- 109,115 ---- tx.commit(); + + Notification n = new Notification(Notification.CONSTRUCTION_SPACE_DELETED, c.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); Index: SurfaceFacade.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/SurfaceFacade.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SurfaceFacade.java 28 Jul 2005 07:39:05 -0000 1.3 --- SurfaceFacade.java 28 Jul 2005 10:16:02 -0000 1.4 *************** *** 7,10 **** --- 7,12 ---- package net.sourceforge.bprocessor.model; + import net.sourceforge.bprocessor.kernel.notification.Notification; + import net.sourceforge.bprocessor.kernel.notification.Notifier; import net.sourceforge.bprocessor.model.db.HibernateUtil; *************** *** 59,62 **** --- 61,67 ---- tx.commit(); + + Notification n = new Notification(Notification.SURFACE_CREATED, s.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 81,84 **** --- 86,92 ---- tx.commit(); + + Notification n = new Notification(Notification.SURFACE_MODIFIED, s.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 101,104 **** --- 109,115 ---- tx.commit(); + + Notification n = new Notification(Notification.SURFACE_DELETED, s.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); Index: ElementFacade.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/ElementFacade.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ElementFacade.java 28 Jul 2005 06:48:54 -0000 1.2 --- ElementFacade.java 28 Jul 2005 10:16:02 -0000 1.3 *************** *** 7,10 **** --- 7,12 ---- package net.sourceforge.bprocessor.model; + import net.sourceforge.bprocessor.kernel.notification.Notification; + import net.sourceforge.bprocessor.kernel.notification.Notifier; import net.sourceforge.bprocessor.model.db.HibernateUtil; *************** *** 59,62 **** --- 61,67 ---- tx.commit(); + + Notification n = new Notification(Notification.ELEMENT_CREATED, e.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 81,84 **** --- 86,92 ---- tx.commit(); + + Notification n = new Notification(Notification.ELEMENT_MODIFIED, e.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 101,104 **** --- 109,115 ---- tx.commit(); + + Notification n = new Notification(Notification.ELEMENT_DELETED, e.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); Index: VertexFacade.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/VertexFacade.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** VertexFacade.java 28 Jul 2005 06:48:54 -0000 1.2 --- VertexFacade.java 28 Jul 2005 10:16:02 -0000 1.3 *************** *** 7,10 **** --- 7,12 ---- package net.sourceforge.bprocessor.model; + import net.sourceforge.bprocessor.kernel.notification.Notification; + import net.sourceforge.bprocessor.kernel.notification.Notifier; import net.sourceforge.bprocessor.model.db.HibernateUtil; *************** *** 59,62 **** --- 61,67 ---- tx.commit(); + + Notification n = new Notification(Notification.VERTEX_CREATED, v.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 81,84 **** --- 86,92 ---- tx.commit(); + + Notification n = new Notification(Notification.VERTEX_MODIFIED, v.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 101,104 **** --- 109,115 ---- tx.commit(); + + Notification n = new Notification(Notification.VERTEX_DELETED, v.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); Index: EdgeFacade.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/EdgeFacade.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** EdgeFacade.java 28 Jul 2005 08:01:24 -0000 1.3 --- EdgeFacade.java 28 Jul 2005 10:16:02 -0000 1.4 *************** *** 7,10 **** --- 7,12 ---- package net.sourceforge.bprocessor.model; + import net.sourceforge.bprocessor.kernel.notification.Notification; + import net.sourceforge.bprocessor.kernel.notification.Notifier; import net.sourceforge.bprocessor.model.db.HibernateUtil; *************** *** 59,62 **** --- 61,67 ---- tx.commit(); + + Notification n = new Notification(Notification.EDGE_CREATED, e.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 81,84 **** --- 86,92 ---- tx.commit(); + + Notification n = new Notification(Notification.EDGE_MODIFIED, e.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 101,104 **** --- 109,115 ---- tx.commit(); + + Notification n = new Notification(Notification.EDGE_DELETED, e.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); Index: PartFacade.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/PartFacade.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PartFacade.java 28 Jul 2005 06:48:54 -0000 1.2 --- PartFacade.java 28 Jul 2005 10:16:02 -0000 1.3 *************** *** 7,10 **** --- 7,12 ---- package net.sourceforge.bprocessor.model; + import net.sourceforge.bprocessor.kernel.notification.Notification; + import net.sourceforge.bprocessor.kernel.notification.Notifier; import net.sourceforge.bprocessor.model.db.HibernateUtil; *************** *** 59,62 **** --- 61,67 ---- tx.commit(); + + Notification n = new Notification(Notification.PART_CREATED, p.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 81,84 **** --- 86,92 ---- tx.commit(); + + Notification n = new Notification(Notification.PART_MODIFIED, p.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 101,104 **** --- 109,115 ---- tx.commit(); + + Notification n = new Notification(Notification.PART_DELETED, p.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); Index: FunctionalSpaceFacade.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/FunctionalSpaceFacade.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FunctionalSpaceFacade.java 28 Jul 2005 06:48:54 -0000 1.2 --- FunctionalSpaceFacade.java 28 Jul 2005 10:16:02 -0000 1.3 *************** *** 7,10 **** --- 7,12 ---- package net.sourceforge.bprocessor.model; + import net.sourceforge.bprocessor.kernel.notification.Notification; + import net.sourceforge.bprocessor.kernel.notification.Notifier; import net.sourceforge.bprocessor.model.db.HibernateUtil; *************** *** 59,62 **** --- 61,67 ---- tx.commit(); + + Notification n = new Notification(Notification.FUNCTIONAL_SPACE_CREATED, f.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 81,84 **** --- 86,92 ---- tx.commit(); + + Notification n = new Notification(Notification.FUNCTIONAL_SPACE_MODIFIED, f.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); *************** *** 101,104 **** --- 109,115 ---- tx.commit(); + + Notification n = new Notification(Notification.FUNCTIONAL_SPACE_DELETED, f.getId()); + Notifier.getInstance().sendNotification(n); } catch (Exception ex) { log.error(ex.getMessage(), ex); |