]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-897:CSPACE-895:CSPACE-896:CSPACE-914: Adding validation support Acquisition...
authorRichard Millet <richard.millet@berkeley.edu>
Wed, 24 Feb 2010 17:51:08 +0000 (17:51 +0000)
committerRichard Millet <richard.millet@berkeley.edu>
Wed, 24 Feb 2010 17:51:08 +0000 (17:51 +0000)
services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/nuxeo/AcquisitionValidatorHandler.java [new file with mode: 0644]
services/common/src/main/config/tenant-bindings.xml
services/intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeValidatorHandler.java [new file with mode: 0644]
services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationValidatorHandler.java [new file with mode: 0644]

diff --git a/services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/nuxeo/AcquisitionValidatorHandler.java b/services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/nuxeo/AcquisitionValidatorHandler.java
new file mode 100644 (file)
index 0000000..3fda480
--- /dev/null
@@ -0,0 +1,18 @@
+package org.collectionspace.services.acquisition.nuxeo;\r
+\r
+import org.collectionspace.services.common.context.ServiceContext;\r
+import org.collectionspace.services.common.document.InvalidDocumentException;\r
+import org.collectionspace.services.common.document.ValidatorHandler;\r
+import org.collectionspace.services.common.document.DocumentHandler.Action;\r
+\r
+public class AcquisitionValidatorHandler implements ValidatorHandler {\r
+\r
+       @Override\r
+       public void validate(Action action, ServiceContext ctx)\r
+                       throws InvalidDocumentException {\r
+               // TODO Auto-generated method stub\r
+               System.out.println("AcquisitionValidatorHandler executed.");\r
+\r
+       }\r
+\r
+}\r
index a6ee5848555462c8f4802502db2e82e095e11562..198e8a7b6aac833c8493695cab53a6a819f3d624 100644 (file)
@@ -65,6 +65,9 @@
             <service:documentHandler xmlns:service='http://collectionspace.org/services/common/service'>
                 org.collectionspace.services.intake.nuxeo.IntakeDocumentModelHandler
             </service:documentHandler>
+            <service:validatorHandler xmlns:service='http://collectionspace.org/services/common/service'>
+                org.collectionspace.services.intake.nuxeo.IntakeValidatorHandler
+            </service:validatorHandler>
             <service:object name="Intake" version="0.1"
                             xmlns:service='http://collectionspace.org/services/common/service'>
                 <service:part id="0" control_group="Managed"
             <service:documentHandler xmlns:service='http://collectionspace.org/services/common/service'>
                 org.collectionspace.services.acquisition.nuxeo.AcquisitionDocumentModelHandler
             </service:documentHandler>
+            <service:validatorHandler xmlns:service='http://collectionspace.org/services/common/service'>
+                org.collectionspace.services.acquisition.nuxeo.AcquisitionValidatorHandler
+            </service:validatorHandler>
             <service:object name="Acquisition" version="0.1"
                             xmlns:service='http://collectionspace.org/services/common/service'>
                 <service:part id="0" control_group="Managed"
             <service:documentHandler xmlns:service='http://collectionspace.org/services/common/service'>
                 org.collectionspace.services.relation.nuxeo.RelationDocumentModelHandler
             </service:documentHandler>
+            <service:validatorHandler xmlns:service='http://collectionspace.org/services/common/service'>
+                org.collectionspace.services.relation.nuxeo.RelationValidatorHandler
+            </service:validatorHandler>
             <service:object name="Relation" version="0.1"
                             xmlns:service='http://collectionspace.org/services/common/service'>
                 <service:part id="0" control_group="Managed"
diff --git a/services/intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeValidatorHandler.java b/services/intake/service/src/main/java/org/collectionspace/services/intake/nuxeo/IntakeValidatorHandler.java
new file mode 100644 (file)
index 0000000..7656ef1
--- /dev/null
@@ -0,0 +1,18 @@
+package org.collectionspace.services.intake.nuxeo;\r
+\r
+import org.collectionspace.services.common.context.ServiceContext;\r
+import org.collectionspace.services.common.document.InvalidDocumentException;\r
+import org.collectionspace.services.common.document.ValidatorHandler;\r
+import org.collectionspace.services.common.document.DocumentHandler.Action;\r
+\r
+public class IntakeValidatorHandler implements ValidatorHandler {\r
+\r
+       @Override\r
+       public void validate(Action action, ServiceContext ctx)\r
+                       throws InvalidDocumentException {\r
+               // TODO Auto-generated method stub\r
+               System.out.println("IntakeValidatorHandler executed.");\r
+\r
+       }\r
+\r
+}\r
diff --git a/services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationValidatorHandler.java b/services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationValidatorHandler.java
new file mode 100644 (file)
index 0000000..3a2adac
--- /dev/null
@@ -0,0 +1,17 @@
+package org.collectionspace.services.relation.nuxeo;\r
+\r
+import org.collectionspace.services.common.context.ServiceContext;\r
+import org.collectionspace.services.common.document.InvalidDocumentException;\r
+import org.collectionspace.services.common.document.ValidatorHandler;\r
+import org.collectionspace.services.common.document.DocumentHandler.Action;\r
+\r
+public class RelationValidatorHandler implements ValidatorHandler {\r
+\r
+       @Override\r
+       public void validate(Action action, ServiceContext ctx)\r
+                       throws InvalidDocumentException {\r
+               // TODO Auto-generated method stub\r
+               System.out.println("RelationValidatorHandler executed.");\r
+       }\r
+\r
+}\r