changeset 941:1b509e4cf99b

Added a computeInit() method to intialize data/facets after creating new artifacts. flys-artifacts/trunk@2349 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 18 Jul 2011 09:20:42 +0000
parents f4439e015278
children 796c54058dc4
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DefaultState.java
diffstat 3 files changed, 19 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Thu Jul 14 15:30:55 2011 +0000
+++ b/flys-artifacts/ChangeLog	Mon Jul 18 09:20:42 2011 +0000
@@ -1,3 +1,12 @@
+2011-07-18  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/states/DefaultState.java:
+	  Added a method computeInit() which is called to initialize data/facets
+	  after an artifact has been created.
+
+	* src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java: Repaired
+	  broken XPath.
+
 2011-07-14  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/CollectionMonitor.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java	Thu Jul 14 15:30:55 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java	Mon Jul 18 09:20:42 2011 +0000
@@ -83,7 +83,7 @@
         "/art:action/art:target/@art:name";
 
     public static final String XPATH_MODEL_ARTIFACT =
-        "/art:action/art:template/@art:uuid";
+        "/art:action/art:template/@uuid";
 
     /** The constant string that shows that an operation was successful.*/
     public static final String OPERATION_SUCCESSFUL = "SUCCESS";
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DefaultState.java	Thu Jul 14 15:30:55 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DefaultState.java	Mon Jul 18 09:20:42 2011 +0000
@@ -283,5 +283,14 @@
     ) {
         return null;
     }
+
+    public Object computeInit(
+        FLYSArtifact artifact,
+        String       hash,
+        CallMeta     meta,
+        List<Facet>  facets)
+    {
+        return null;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org