As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<bean id="extracter.OfficeDocument" class="org.alfresco.repo.content.metadata.OfficeMetadataExtracter" parent="baseMetadataExtracter"> <property name="inheritDefaultMapping"> <value>true</value> </property> <property name="mappingProperties"> <props> <prop key="namespace.prefix.mymodel">http://www.mymodelsoln.com/model/content/1.0</prop> <prop key="namespace.prefix.cm">http://www.alfresco.org/model/content/1.0</prop> <prop key="docid">mymodel:docid</prop> <prop key="comments">mymodel:comments</prop> <prop key="category">mymodel:category</prop> <prop key="subcategory">mymodel:subcategory</prop> <prop key="policyno">mymodel:policyno</prop> <prop key="claimno">mymodel:claimno</prop> <prop key="agentno">mymodel:agentno</prop> <prop key="providerno">mymodel:providerno</prop> <prop key="contractno">mymodel:contractno</prop> <prop key="govtid">mymodel:govtid</prop> <prop key="effectivedate">mymodel:effectivedate</prop> <prop key="product">mymodel:product</prop> <prop key="region">mymodel:region</prop> <prop key="keywords">mymodel:keywords</prop> </props> </property> </bean> <bean id="extracter.PDFBox" class="org.alfresco.repo.content.metadata.PdfBoxMetadataExtracter" parent="baseMetadataExtracter"> <property name="inheritDefaultMapping"> <value>true</value> </property> <property name="mappingProperties"> <props> <prop key="namespace.prefix.mymodel">http://www.mymodelsoln.com/model/content/1.0</prop> <prop key="namespace.prefix.cm">http://www.alfresco.org/model/content/1.0</prop> <prop key="docid">mymodel:docid</prop> <prop key="comments">mymodel:comments</prop> <prop key="category">mymodel:category</prop> <prop key="subcategory">mymodel:subcategory</prop> <prop key="policyno">mymodel:policyno</prop> <prop key="claimno">mymodel:claimno</prop> <prop key="agentno">mymodel:agentno</prop> <prop key="providerno">mymodel:providerno</prop> <prop key="contractno">mymodel:contractno</prop> <prop key="govtid">mymodel:govtid</prop> <prop key="effectivedate">mymodel:effectivedate</prop> <prop key="product">mymodel:product</prop> <prop key="region">mymodel:region</prop> <prop key="keywords">mymodel:keywords</prop> </props> </property> </bean>
// Extract remaining custom properties for (String customProp : super.getMapping().keySet()) { if (rawProperties.keySet().contains(customProp)) { // Ignore it continue; } String customValue = docInfo.getCustomMetadataValue(customProp); putRawValue(customProp, customValue, rawProperties); }
… <prop key="prop1">cm:description</prop> …