blob: 1ec9c99dbefef448dd95a57ecd8f66692bd443fc [file] [log] [blame]
<?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
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
<cas:producttypes xmlns: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 provenance and algorithm execution.</description>
Global aggregate product type metadata: you can declare this in the
same way you'd wire together a CAS met file, even using multiple values
per key.
This metadata can be looked up via the Product Type API, and also used
in browsers and so forth to display global metadata about the collection
of Products part of this product type.
<!-- if you are using the org.apache.oodt.cas.filemgr.versioning.ProductTypeMetVersioner
you can set a met key like below to define your filePathSpec
<!-- 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" />
<extractor class="org.apache.oodt.cas.filemgr.metadata.extractors.examples.MimeTypeExtractor" />
<extractor class="org.apache.oodt.cas.filemgr.metadata.extractors.examples.FinalFileLocationExtractor">
<!-- this property specifies whether you want the FILE_LOCATION field
computed by this extractor to replace any other FILE_LOCATION met
<property name="replace" value="true"/>