<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

    <bean id="dspaceRunnableThreadExecutor" class="org.springframework.core.task.SyncTaskExecutor"/>

    <!-- This primary attribute is present so that we can assure that in the REST layer we'll always use this
        bean if it is present-->
    <bean id="metadata-import" class="org.dspace.app.bulkedit.MetadataImportScriptConfiguration" primary="true">
        <property name="description" value="Import metadata after batch editing" />
        <property name="dspaceRunnableClass" value="org.dspace.app.bulkedit.MetadataImport"/>
    </bean>

    <bean id="metadata-export" class="org.dspace.app.bulkedit.MetadataExportScriptConfiguration" primary="true">
        <property name="description" value="Export metadata for batch editing"/>
        <property name="dspaceRunnableClass" value="org.dspace.app.bulkedit.MetadataExport"/>
    </bean>

    <bean id="curate" class="org.dspace.curate.CurationScriptConfiguration">
        <property name="description" value="Curation tasks"/>
        <property name="dspaceRunnableClass" value="org.dspace.curate.Curation"/>
    </bean>
    
     <bean id="metadata-deletion" class="org.dspace.app.bulkedit.MetadataDeletionScriptConfiguration" primary="true">
        <property name="description" value="Delete all the values of the specified metadata field"/>
        <property name="dspaceRunnableClass" value="org.dspace.app.bulkedit.MetadataDeletion"/>
    </bean>

     <bean id="type-conversion-test" class="org.dspace.app.scripts.TypeConversionTestScriptConfiguration" primary="true">
        <property name="description" value="Test the type conversion different option types"/>
        <property name="dspaceRunnableClass" value="org.dspace.app.scripts.TypeConversionTestScript"/>
    </bean>

    <bean id="import" class="org.dspace.app.itemimport.ItemImportScriptConfiguration" primary="true">
        <property name="description" value="Batch Import from Simple Archive Format (SAF)" />
        <property name="dspaceRunnableClass" value="org.dspace.app.itemimport.ItemImport"/>
    </bean>

    <bean id="export" class="org.dspace.app.itemexport.ItemExportScriptConfiguration" primary="true">
        <property name="description" value="Batch Export to Simple Archive Format (SAF)"/>
        <property name="dspaceRunnableClass" value="org.dspace.app.itemexport.ItemExport"/>
    </bean>

    <bean id="bulk-access-control" class="org.dspace.app.bulkaccesscontrol.BulkAccessControlScriptConfiguration" primary="true">
        <property name="description" value="Bulk access control"/>
        <property name="dspaceRunnableClass" value="org.dspace.app.bulkaccesscontrol.BulkAccessControl"/>
    </bean>

</beans>
