--- /dev/null
+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
<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"
--- /dev/null
+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
--- /dev/null
+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