[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action ...
Christian Bauer
christian at hibernate.org
Fri Aug 31 13:54:38 EDT 2007
User: cbauer
Date: 07/08/31 13:54:38
Modified: examples/wiki/src/main/org/jboss/seam/wiki/core/action
DocumentHome.java
Log:
Document deletion did not remove feed entry correctly
Revision Changes Path
1.23 +8 -0 jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/DocumentHome.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: DocumentHome.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/DocumentHome.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- DocumentHome.java 25 Aug 2007 22:35:10 -0000 1.22
+++ DocumentHome.java 31 Aug 2007 17:54:38 -0000 1.23
@@ -135,6 +135,14 @@
return true;
}
+ protected boolean prepareRemove() {
+
+ // Remove feed entry before removing document
+ feedDAO.removeFeedEntry(getInstance());
+
+ return super.prepareRemove();
+ }
+
protected void afterNodeMoved(Directory oldParent, Directory newParent) {
// Update view
syncFormToInstance(oldParent); // Resolve existing links in old directory
More information about the jboss-cvs-commits
mailing list