From: Aron Roberts Date: Tue, 20 Nov 2012 21:19:56 +0000 (-0800) Subject: CSPACE-5498: Created listener and listener/relation modules in services/3rdparty... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=a5461fa514e7cc18b659b75c6fdb79536b620348;p=tmp%2Fjakarta-migration.git CSPACE-5498: Created listener and listener/relation modules in services/3rdparty/nuxeo --- diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/build.xml b/3rdparty/nuxeo/nuxeo-platform-listener/build.xml new file mode 100644 index 000000000..977b9bca6 --- /dev/null +++ b/3rdparty/nuxeo/nuxeo-platform-listener/build.xml @@ -0,0 +1,129 @@ + + + collectionspace nuxeo listener + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/pom.xml b/3rdparty/nuxeo/nuxeo-platform-listener/pom.xml new file mode 100644 index 000000000..ce642e0df --- /dev/null +++ b/3rdparty/nuxeo/nuxeo-platform-listener/pom.xml @@ -0,0 +1,45 @@ + + + + + org.collectionspace.services + org.collectionspace.services.3rdparty.nuxeo + 3.2-SNAPSHOT + + + 4.0.0 + org.collectionspace.services.3rdparty.nuxeo.listener + pom + services.3rdparty.nuxeo.listener + + + relation + + + + + org.osgi + org.osgi.core + 4.1.0 + + + org.nuxeo.ecm.core + nuxeo-core-storage-sql + ${nuxeo.core.version} + + +org.nuxeo.ecm.platform +nuxeo-platform-filemanager-api +${nuxeo.platform.version} + + + + + + \ No newline at end of file diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/relation/build.xml b/3rdparty/nuxeo/nuxeo-platform-listener/relation/build.xml new file mode 100644 index 000000000..83c0398a1 --- /dev/null +++ b/3rdparty/nuxeo/nuxeo-platform-listener/relation/build.xml @@ -0,0 +1,100 @@ + + + CollectionSpace Nuxeo Relations listener component type + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/relation/pom.xml b/3rdparty/nuxeo/nuxeo-platform-listener/relation/pom.xml new file mode 100644 index 000000000..441487927 --- /dev/null +++ b/3rdparty/nuxeo/nuxeo-platform-listener/relation/pom.xml @@ -0,0 +1,45 @@ + + + 4.0.0 + + org.collectionspace.services.3rdparty.nuxeo.listener + org.collectionspace.services + 3.2-SNAPSHOT + + org.collectionspace.services.3rdparty.nuxeo.listener.relations + org.collectionspace.services.3rdparty.nuxeo.listener.relations + http://maven.apache.org + + UTF-8 + + + + + + + + + src/main/resources + true + + + + + org.apache.maven.plugins + maven-jar-plugin + + + src/main/resources/META-INF/MANIFEST.MF + + ${eclipseVersion} + 2 + + + + + + + + diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/java/org/collectionspace/services/nuxeo/listener/relation/RelationSubOrObjDeletionListener.java b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/java/org/collectionspace/services/nuxeo/listener/relation/RelationSubOrObjDeletionListener.java new file mode 100644 index 000000000..1e588751f --- /dev/null +++ b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/java/org/collectionspace/services/nuxeo/listener/relation/RelationSubOrObjDeletionListener.java @@ -0,0 +1,21 @@ +package org.collectionspace.services.nuxeo.extension.listener.relation; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.nuxeo.ecm.core.api.ClientException; +import org.nuxeo.ecm.core.api.DocumentModel; +import org.nuxeo.ecm.core.api.DocumentRef; +import org.nuxeo.ecm.core.event.Event; +import org.nuxeo.ecm.core.event.EventContext; +import org.nuxeo.ecm.core.event.EventListener; +import org.nuxeo.ecm.core.event.impl.DocumentEventContext; + +public class RelationSubOrObjDeletionListener implements EventListener { + + // FIXME Experiment to identify whether we can use log4j here instead of Apache Commons Logging + final Log logger = LogFactory.getLog(RelationSubOrObjDeletionListener.class); + + public void handleEvent(Event event) throws ClientException { + logger.debug("In handleEvent in RelationSubOrObjDeletionListener ..."); + } +} diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/java/org/nuxeo/platform/thumbnail/App.java b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/java/org/nuxeo/platform/thumbnail/App.java new file mode 100644 index 000000000..038e27e52 --- /dev/null +++ b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/java/org/nuxeo/platform/thumbnail/App.java @@ -0,0 +1,13 @@ +package org.nuxeo.platform.thumbnail; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/META-INF/MANIFEST.MF b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 000000000..4fae07ad7 --- /dev/null +++ b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/META-INF/MANIFEST.MF @@ -0,0 +1,16 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 1 +Bundle-Name: org.collectionspace.nuxeo.listener.relation +Bundle-SymbolicName: org.collectionspace.nuxeo.listener.relation;singleton:=true +Bundle-Version: 1.0.0 +Bundle-Localization: plugin +Bundle-Vendor: Nuxeo +Require-Bundle: org.nuxeo.runtime, + org.nuxeo.ecm.core.api, + org.nuxeo.ecm.core, + org.nuxeo.ecm.webapp.core +Provide-Package: org.collectionspace.nuxeo.listener.relation +Nuxeo-Component: OSGI-INF/core-types-contrib.xml, + OSGI-INF/default-life-cycle-contrib.xml, + OSGI-INF/ecm-types-contrib.xml, + OSGI-INF/layouts-contrib.xml diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/core-types-contrib.xml b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/core-types-contrib.xml new file mode 100644 index 000000000..10756c857 --- /dev/null +++ b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/core-types-contrib.xml @@ -0,0 +1,4 @@ + + + + diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/default-life-cycle-contrib.xml b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/default-life-cycle-contrib.xml new file mode 100644 index 000000000..bdeda4fa1 --- /dev/null +++ b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/default-life-cycle-contrib.xml @@ -0,0 +1,4 @@ + + + + diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/deployment-fragment.xml b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/deployment-fragment.xml new file mode 100644 index 000000000..270abbd5f --- /dev/null +++ b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/deployment-fragment.xml @@ -0,0 +1,10 @@ + + + + + + ${bundle.fileName} + + + + diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/ecm-types-contrib.xml b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/ecm-types-contrib.xml new file mode 100644 index 000000000..a89fa8d54 --- /dev/null +++ b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/ecm-types-contrib.xml @@ -0,0 +1,11 @@ + + + + + + lifecycle_transition_event + + + + diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/layouts-contrib.xml b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/layouts-contrib.xml new file mode 100644 index 000000000..91f74f30b --- /dev/null +++ b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/layouts-contrib.xml @@ -0,0 +1,4 @@ + + + + diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/schemas/thumbnail.xsd b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/schemas/thumbnail.xsd new file mode 100644 index 000000000..00e67a424 --- /dev/null +++ b/3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/schemas/thumbnail.xsd @@ -0,0 +1,12 @@ + + + + + + + + + + +