All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spring-config.jobs.mapping.contentHolderMapping.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>

<mappingFile>

 	<command name="UPDATE_PRIMARY_CONTENT" targetEntity="io.github.jsoagger.core.model.api.contentHolder.ContentItemPrimary" 
 		writers-ref="VLLineBeanToPrimaryContentWriter" processors-ref="VLCSVToBeanProcessor">
        <column id="command" 	mandatory="true" maxLength="255" />
        <column id="mimeType" 	mandatory="true" maxLength="255" externalAttribute="true"/>
        <column id="contentHolder" 	mandatory="true" maxLength="255" externalAttribute="true" propertyEditor="PersistableByFullIdEditor"/>
        <column id="role" 			mandatory="true" maxLength="255" externalAttribute="true"/>
        <column id="physicalFilePath" mandatory="true" maxLength="255" externalAttribute="true"/>
    </command>
    
    <!-- TODO handle atachments import,export -->
    <command name="UPDATE_ATTACHMENT_CONTENT" targetEntity="io.github.jsoagger.core.model.api.contentHolder.ContentItemPrimary" 
    	writers-ref="VLLineBeanToAttachmentContentWriter" processors-ref="VLCSVToBeanProcessor">
        <column id="command" mandatory="true" maxLength="255" />
        <column id="contentHolder" mandatory="true" maxLength="255" externalAttribute="true" propertyEditor="PersistableByFullIdEditor"/>
        <column id="mimeType" mandatory="true" maxLength="255" externalAttribute="true"/>
        <column id="role" mandatory="true" maxLength="255" externalAttribute="true"/>
        <column id="physicalFilePath" mandatory="true" maxLength="255" externalAttribute="true"/>
    </command>
    
    
    <!--
		EXPORT OF PRIMARY CONTENT FOR UPDATE
	 -->
     <command name="EXPORT_FOR_UPDATE_PRIMARY_CONTENT">
        <column id="command"   		 constant="UPDATE_PRIMARY_CONTENT" />
        <column id="mime_type" 		/>
        <column id="fullIdentifier"  propertyEditor="ObjectFullIdentifierPropetyEditor"/>
        <column id="role" 			 constant="PRIMARY"/>
        <column id="primary_content" propertyEditor="PrimaryContentToFilePropertyEditor"/>
    </command>
    
    <!--
		EXPORT OF ATTACHMENTS CONTENT FOR UPDATE
	 -->
     <command name="EXPORT_FOR_UPDATE_ATTACHMENTS_CONTENT">
        <column id="command"   		 constant="SET_ATTACHMENT_CONTENT" />
        <column id="mime_type" 		/>
        <column id="fullIdentifier"  propertyEditor="ObjectFullIdentifierPropetyEditor"/>
        <column id="role" 			 constant="ATTACHMENTS"/>
        <column id="primary_content" propertyEditor="PrimaryContentToFilePropertyEditor"/>
    </command>
    
    
    <!--
		EXPORT OF PRIMARY CONTENT FOR UPDATE
	 -->
     <command name="EXPORT_PRIMARY_CONTENT">
        <column id="mime_type" 		constant="text/xml"/>
        <column id="primary_content" propertyEditor="PrimaryContentToFilePropertyEditor" externalAttribute="true" />
    </command>
     <command name="EXPORT_ATTACHMENTS_CONTENT">
        <column id="mime_type" 		constant="text/xml"/>
        <column id="primary_content" propertyEditor="AttachmentsContentToFilePropertyEditor" externalAttribute="true" />
    </command>
</mappingFile>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy