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

    The contents of this file are subject to the license and copyright
    detailed in the LICENSE and NOTICE files at the root of the source
    tree and available online at

    http://www.dspace.org/license/

-->
<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 name="metadataValidation" class="org.dspace.app.rest.submit.step.validation.MetadataValidation"
          scope="prototype">
        <property name="name" value="submission-form"/>
        <property name="configurationService" ref="org.dspace.services.ConfigurationService"/>
        <property name="itemService" ref="org.dspace.content.ItemServiceImpl"/>
        <property name="metadataAuthorityService" ref="org.dspace.content.authority.MetadataAuthorityServiceImpl"/>
    </bean>

    <bean name="uploadValidation" class="org.dspace.app.rest.submit.step.validation.UploadValidation" scope="prototype">
        <property name="name" value="upload"/>
        <property name="itemService" ref="org.dspace.content.ItemServiceImpl"/>
        <property name="uploadConfigurationService" ref="uploadConfigurationService"/>
    </bean>

    <bean name="licenseValidation" class="org.dspace.app.rest.submit.step.validation.LicenseValidation">
        <property name="name" value="license"/>
    </bean>

    <bean name="COARNotifyValidation" class="org.dspace.app.rest.submit.step.validation.NotifyValidation" scope="prototype">
        <property name="name" value="coarnotify"/>
        <property name="coarNotifyConfigurationService" ref="org.dspace.coarnotify.NotifyConfigurationService"/>
        <property name="notifyPatternToTriggerService" ref="org.dspace.app.ldn.service.impl.NotifyPatternToTriggerImpl"/>
    </bean>

</beans>
