diff --git a/dspace-server-webapp/pom.xml b/dspace-server-webapp/pom.xml index 559b77b436..1d685387d2 100644 --- a/dspace-server-webapp/pom.xml +++ b/dspace-server-webapp/pom.xml @@ -569,6 +569,10 @@ 2.0.7 test + + javax.annotation + javax.annotation-api + diff --git a/dspace-server-webapp/src/main/java/org/dspace/app/rest/repository/RequestItemRepository.java b/dspace-server-webapp/src/main/java/org/dspace/app/rest/repository/RequestItemRepository.java index 3f005634e9..36ebb42411 100644 --- a/dspace-server-webapp/src/main/java/org/dspace/app/rest/repository/RequestItemRepository.java +++ b/dspace-server-webapp/src/main/java/org/dspace/app/rest/repository/RequestItemRepository.java @@ -17,6 +17,7 @@ import java.net.URISyntaxException; import java.sql.SQLException; import java.util.Date; import java.util.UUID; +import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import com.fasterxml.jackson.databind.JsonNode; @@ -72,7 +73,7 @@ public class RequestItemRepository @Autowired(required = true) protected RequestItemConverter requestItemConverter; - @Autowired(required = true) + @Resource(name = "requestItemAuthorExtractor") protected RequestItemAuthorExtractor requestItemAuthorExtractor; @Autowired(required = true) diff --git a/dspace/config/spring/api/requestitem.xml b/dspace/config/spring/api/requestitem.xml index 90c49156d5..a3bf458451 100644 --- a/dspace/config/spring/api/requestitem.xml +++ b/dspace/config/spring/api/requestitem.xml @@ -6,21 +6,22 @@ http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd" - default-autowire-candidates="*Service,*DAO,javax.sql.DataSource"> + default-autowire-candidates="*Service,*DAO,javax.sql.DataSource" + default-lazy-init="true"> Strategies for determining who receives Request Copy emails. - A copy request "strategy" class produces a list of addresses to which a - request email should be sent. Each strategy gets its addresses from a - different source. Select the one that meets your need, or use the - CombiningRequestItemStrategy to meld the lists from two or more other - strategies. + A copy request "strategy" class produces a list of addresses + to which a request email should be sent. Each strategy gets + its addresses from a different source. Select the one that + meets your need, or use the CombiningRequestItemStrategy to + meld the lists from two or more other strategies. - @@ -28,13 +29,12 @@ id="org.dspace.app.requestitem.RequestItemMetadataStrategy" autowire-candidate="true"> - + id="org.dspace.app.requestitem.RequestItemHelpdeskStrategy" + autowire-candidate="true"/> - - + id='org.dspace.app.requestitem.CollectionAdministratorsRequestItemStrategy' + autowire-candidate="true"> + + Send request emails to administrators of an Item's owning + Collection. + + - - - -->