Author: mattmann
Date: Tue Jun 11 04:10:51 2013
New Revision: 1491686

URL: http://svn.apache.org/r1491686
Log:
- fix for OODT-625: Bake TraceableFile product policy into FM

Added:
    oodt/trunk/filemgr/src/main/resources/examples/trace/
    oodt/trunk/filemgr/src/main/resources/examples/trace/elements.xml
    
oodt/trunk/filemgr/src/main/resources/examples/trace/product-type-element-map.xml
    oodt/trunk/filemgr/src/main/resources/examples/trace/product-types.xml

Added: oodt/trunk/filemgr/src/main/resources/examples/trace/elements.xml
URL: 
http://svn.apache.org/viewvc/oodt/trunk/filemgr/src/main/resources/examples/trace/elements.xml?rev=1491686&view=auto
==============================================================================
--- oodt/trunk/filemgr/src/main/resources/examples/trace/elements.xml (added)
+++ oodt/trunk/filemgr/src/main/resources/examples/trace/elements.xml Tue Jun 
11 04:10:51 2013
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<cas:elements xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas";>
+   <element id="urn:oodt:InputFiles" name="InputFiles">
+        <!--  
+         You can optionally specify a 'trim' tag to identify whether
+         or not you want newlines trimmed from the element description. To
+         turn off trimming (now done by default), include the following with 
your
+         description definition: trim="false"       
+         -->   
+       <description>The set of input files that went into producing this 
file.</description>
+       <dcElement/>
+   </element>
+   <element id="urn:oodt:OutputFiles" name="OutputFiles">
+        <description>The set of output files that included this file in its 
input.</description>
+        <dcElement/>
+   </element>
+</cas:elements>

Added: 
oodt/trunk/filemgr/src/main/resources/examples/trace/product-type-element-map.xml
URL: 
http://svn.apache.org/viewvc/oodt/trunk/filemgr/src/main/resources/examples/trace/product-type-element-map.xml?rev=1491686&view=auto
==============================================================================
--- 
oodt/trunk/filemgr/src/main/resources/examples/trace/product-type-element-map.xml
 (added)
+++ 
oodt/trunk/filemgr/src/main/resources/examples/trace/product-type-element-map.xml
 Tue Jun 11 04:10:51 2013
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<cas:producttypemap xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas";>
+ <!--  can set the "parent" attribute on types below to allow inheritance
+       of elements between the types 
+  -->
+  <type id="urn:oodt:TraceableFile" parent="urn:oodt:GenericFile">
+       <element id="urn:oodt:InputFiles"/>
+       <element id="urn:oodt:OutputFiles"/>
+  </type>
+</cas:producttypemap>

Added: oodt/trunk/filemgr/src/main/resources/examples/trace/product-types.xml
URL: 
http://svn.apache.org/viewvc/oodt/trunk/filemgr/src/main/resources/examples/trace/product-types.xml?rev=1491686&view=auto
==============================================================================
--- oodt/trunk/filemgr/src/main/resources/examples/trace/product-types.xml 
(added)
+++ oodt/trunk/filemgr/src/main/resources/examples/trace/product-types.xml Tue 
Jun 11 04:10:51 2013
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<cas:producttypes xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas";>
+  <type id="urn:oodt:TraceableFile" name="TraceableFile">
+    <repository path="file://[HOME]/files"/>
+    <versioner class="org.apache.oodt.cas.filemgr.versioning.BasicVersioner"/>
+    <!--                                                                       
                                                                                
     
+     You can optionally specify a 'trim' tag to identify whether               
                                                                                
     
+     or not you want newlines trimmed from the product type description. To    
                                                                                
     
+     turn off trimming (now done by default), include the following attribute 
with your                                                                       
      
+     description definition: trim="false"                                      
                                                                                
     
+     -->
+    <description>A traceable product for use in PCS Pedigree 
Testing.</description>
+    <metExtractors>
+      <extractor
+        
class="org.apache.oodt.cas.filemgr.metadata.extractors.CoreMetExtractor">
+        <configuration>
+          <!--  you can optionally include the envReplace tag to turn on/off 
environment var replacement -->
+          <property name="nsAware" value="true" />
+          <property name="elementNs" value="CAS" />
+          <property name="elements"
+            value="ProductReceivedTime,ProductName,ProductId" />
+        </configuration>
+      </extractor>
+      <extractor 
class="org.apache.oodt.cas.filemgr.metadata.extractors.examples.MimeTypeExtractor"
 />
+      <extractor 
class="org.apache.oodt.cas.filemgr.metadata.extractors.examples.FinalFileLocationExtractor">
+        <configuration>
+          <!-- this property specifies whether you want the FILE_LOCATION 
field                                                                           
          
+               computed by this extractor to replace any other FILE_LOCATION 
met                                                                             
       
+               attribute.                                                      
                                                                                
     
+           -->
+           <property name="replace" value="true"/>
+        </configuration>
+      </extractor>
+    </metExtractors>
+  </type>
+</cas:producttypes>


Reply via email to