]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5498: Renaming module, package names per Richard's suggestions.
authorAron Roberts <aron@socrates.berkeley.edu>
Tue, 4 Dec 2012 01:51:17 +0000 (17:51 -0800)
committerAron Roberts <aron@socrates.berkeley.edu>
Tue, 4 Dec 2012 01:51:17 +0000 (17:51 -0800)
12 files changed:
3rdparty/nuxeo/nuxeo-platform-listener/build.xml
3rdparty/nuxeo/nuxeo-platform-listener/pom.xml
3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/build.properties [new file with mode: 0644]
3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/build.xml [moved from 3rdparty/nuxeo/nuxeo-platform-listener/relation/build.xml with 79% similarity]
3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/pom.xml [moved from 3rdparty/nuxeo/nuxeo-platform-listener/relation/pom.xml with 91% similarity]
3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/src/main/java/org/collectionspace/services/listener/UpdateRelationsOnDelete.java [moved from 3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/java/org/collectionspace/services/nuxeo/listener/relation/RelationSubOrObjDeletionListener.java with 93% similarity]
3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/src/main/resources/META-INF/MANIFEST.MF [moved from 3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/META-INF/MANIFEST.MF with 100% similarity]
3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/src/main/resources/OSGI-INF/core-types-contrib.xml [moved from 3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/core-types-contrib.xml with 100% similarity]
3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/src/main/resources/OSGI-INF/default-life-cycle-contrib.xml [moved from 3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/default-life-cycle-contrib.xml with 100% similarity]
3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/src/main/resources/OSGI-INF/deployment-fragment.xml [moved from 3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/deployment-fragment.xml with 100% similarity]
3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/src/main/resources/OSGI-INF/ecm-types-contrib.xml [moved from 3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/ecm-types-contrib.xml with 74% similarity]
3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/src/main/resources/OSGI-INF/layouts-contrib.xml [moved from 3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/layouts-contrib.xml with 100% similarity]

index 6f4e46c82a9085aefaf50ecc5afc40c5be6916a3..df24a50915ede8238d5c5572b3e45c6d4bd6c3fa 100644 (file)
 
     <target name="deploy" depends="package"
             description="deploy nuxeo server libs to ${jee.server.cspace}">
-        <ant antfile="relation/build.xml" target="deploy" inheritall="false"/>
+        <ant antfile="updaterelationsondelete/build.xml" target="deploy" inheritall="false"/>
     </target>
 
     <target name="undeploy"
             description="undeploy nuxeo server libs from ${jee.server.cspace}">
-        <ant antfile="relation/build.xml" target="undeploy" inheritall="false"/>
+        <ant antfile="updaterelationsondelete/build.xml" target="undeploy" inheritall="false"/>
     </target>
 
     <target name="dist"
             description="generate distribution for nuxeo server libs" depends="package">
-        <ant antfile="relation/build.xml" target="dist" inheritall="false"/>
+        <ant antfile="updaterelationsondelete/build.xml" target="dist" inheritall="false"/>
     </target>
 
 </project>
index 6eb8d8b7c9d0d6534609b28c0ed75a304ef381ab..cc508824c68e13f74e165e3156fb851e67699099 100644 (file)
@@ -13,7 +13,7 @@
     <name>services.3rdparty.nuxeo.listener</name>
 
     <modules>
-        <module>relation</module>
+        <module>updaterelationsondelete</module>
     </modules>
 
     <dependencies>
diff --git a/3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/build.properties b/3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/build.properties
new file mode 100644 (file)
index 0000000..4254eff
--- /dev/null
@@ -0,0 +1 @@
+listener.module.name=updaterelationsondelete
\ No newline at end of file
similarity index 79%
rename from 3rdparty/nuxeo/nuxeo-platform-listener/relation/build.xml
rename to 3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/build.xml
index 83c0398a1c0b009037b0ec990ce5781e5de59f9b..2ebeeb101d2e8fa2b9934480297249c17bbdbea5 100644 (file)
@@ -1,22 +1,26 @@
-<project name="org.collectionspace.services.3rdparty.nuxeo.listener.relations" default="package" basedir=".">
+<project name="org.collectionspace.services.3rdparty.nuxeo.listener.updaterelationsondelete" default="package" basedir=".">
   <description>
-    CollectionSpace Nuxeo Relations listener component type
+    CollectionSpace Nuxeo listener component type
   </description>
-  <!-- set global properties for this build -->
+  <!-- Set global properties for this build -->
   <property name="services.trunk" value="../../../.."/>
-  <!-- environment should be declared before reading build.properties -->
+  <!-- Environment should be declared before reading build.properties -->
   <property environment="env" />
+  <!-- Set global properties for this build -->
   <property file="${services.trunk}/build.properties" />
+  <!-- Set local properties for this build -->
+  <property file="build.properties" />
   <property name="mvn.opts" value="" />
   <property name="src" location="src"/>
   <property name="build" location="build"/>
   <property name="dist"  location="dist"/>
 
-  <property name="nuxeo.collectionspace.listener.relations.jar"
-    value="org.collectionspace.services.3rdparty.nuxeo.listener.relations-${cspace.release}.jar"/>
+  <!-- module.name variable is set in the local properties file -->
+  <property name="jar.name"
+    value="org.collectionspace.services.listener.${listener.module.name}-${cspace.release}.jar"/>
 
-  <property name="nuxeo.collectionspace.listener.relations.jar.all"
-    value="org.collectionspace.services.3rdparty.nuxeo.listener.relations-*.jar"/>
+  <property name="jar.all"
+    value="org.collectionspace.services.listener.${listener.module.name}-*.jar"/>
   
   <condition property="osfamily-unix">
     <os family="unix" />
@@ -84,7 +88,7 @@
   
   <target name="deploy" depends="install"
     description="deploy collectionspace core doctype in ${jee.server.nuxeo}">
-    <copy file="${basedir}/target/${nuxeo.collectionspace.listener.relations.jar}"
+    <copy file="${basedir}/target/${jar.name}"
       todir="${jee.deploy.nuxeo.plugins}"/>
   </target>
   
@@ -92,7 +96,7 @@
     description="undeploy collectionspace Thumbnail service from ${jee.server.nuxeo}">
     <delete>
       <fileset dir="${jee.deploy.nuxeo.plugins}">
-        <include name="${nuxeo.collectionspace.listener.relations.jar.all}"/>
+        <include name="${jar.all}"/>
       </fileset>
     </delete>
   </target>
similarity index 91%
rename from 3rdparty/nuxeo/nuxeo-platform-listener/relation/pom.xml
rename to 3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/pom.xml
index 8b17c62982cf20c3cb44fd854b5d0a2731966c27..a4294aea9eb16f0f52c81486caa1898da3155f22 100644 (file)
@@ -8,12 +8,13 @@
         <groupId>org.collectionspace.services</groupId>
         <version>3.2-SNAPSHOT</version>
     </parent>
-    <artifactId>org.collectionspace.services.3rdparty.nuxeo.listener.relations</artifactId>
-    <name>org.collectionspace.services.3rdparty.nuxeo.listener.relations</name>
-    <url>http://maven.apache.org</url>
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
+    <artifactId>org.collectionspace.services.listener.updaterelationsondelete</artifactId>
+    <name>org.collectionspace.services.listener.updaterelationsondelete</name>
+    <url>http://maven.apache.org</url>
+
        
     <dependencies>
         <dependency>
@@ -1,11 +1,9 @@
-package org.collectionspace.services.nuxeo.listener.relation;
+package org.collectionspace.services.listener;
 
 import java.util.ArrayList;
-import java.util.Iterator;
 import java.util.List;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.collectionspace.services.common.document.DocumentFilter;
 import org.nuxeo.ecm.core.api.ClientException;
 import org.nuxeo.ecm.core.api.CoreSession;
 import org.nuxeo.ecm.core.api.DocumentModel;
@@ -16,7 +14,7 @@ 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 {
+public class UpdateRelationsOnDelete implements EventListener {
 
     // FIXME: Consider adding the following constant to
     // org.collectionspace.services.common.workflow.jaxb.WorkflowJAXBSchema
@@ -31,10 +29,11 @@ public class RelationSubOrObjDeletionListener implements EventListener {
 
     // FIXME: We might experiment here with using log4j instead of Apache Commons Logging;
     // am using the latter to follow Ray's pattern for now
-    final Log logger = LogFactory.getLog(RelationSubOrObjDeletionListener.class);
+    final Log logger = LogFactory.getLog(UpdateRelationsOnDelete.class);
 
+    @Override
     public void handleEvent(Event event) throws ClientException {
-        logger.info("In handleEvent in RelationSubOrObjDeletionListener ...");
+        logger.info("In handleEvent in UpdateRelationsOnDelete ...");
 
         EventContext eventContext = event.getContext();
 
similarity index 74%
rename from 3rdparty/nuxeo/nuxeo-platform-listener/relation/src/main/resources/OSGI-INF/ecm-types-contrib.xml
rename to 3rdparty/nuxeo/nuxeo-platform-listener/updaterelationsondelete/src/main/resources/OSGI-INF/ecm-types-contrib.xml
index 1781383a95932f2e832b6591b4600b4db21d3b77..d25de03a767c60a51a3f5cb09fa0bbed1b0c22e4 100644 (file)
@@ -3,7 +3,7 @@
     
     <extension target="org.nuxeo.ecm.core.event.EventServiceComponent" point="listener">
         <listener name="relationsuborobjdeletionlistener" async="false" postCommit="false"
-                          class="org.collectionspace.services.nuxeo.listener.relation.RelationSubOrObjDeletionListener" priority="999">
+                          class="org.collectionspace.services.listener.UpdateRelationsOnDelete" priority="999">
             <event>lifecycle_transition_event</event>
         </listener>
     </extension>