diff --git a/dspace-spring-rest/src/main/java/org/dspace/app/rest/repository/EPersonRestRepository.java b/dspace-spring-rest/src/main/java/org/dspace/app/rest/repository/EPersonRestRepository.java index 71fd50e696..a9e00359af 100644 --- a/dspace-spring-rest/src/main/java/org/dspace/app/rest/repository/EPersonRestRepository.java +++ b/dspace-spring-rest/src/main/java/org/dspace/app/rest/repository/EPersonRestRepository.java @@ -11,6 +11,8 @@ import java.sql.SQLException; import java.util.List; import java.util.UUID; +import org.dspace.app.rest.Parameter; +import org.dspace.app.rest.SearchRestMethod; import org.dspace.app.rest.converter.EPersonConverter; import org.dspace.app.rest.exception.RESTAuthorizationException; import org.dspace.app.rest.model.EPersonRest; @@ -35,7 +37,7 @@ import org.springframework.stereotype.Component; @Component(EPersonRest.CATEGORY + "." + EPersonRest.NAME) public class EPersonRestRepository extends DSpaceRestRepository { EPersonService es = EPersonServiceFactory.getInstance().getEPersonService(); - + @Autowired AuthorizeService authorizeService; @@ -74,6 +76,17 @@ public class EPersonRestRepository extends DSpaceRestRepository findByName(@Parameter(value = "q") String q, + Pageable pageable) { + return null; + } + + @SearchRestMethod(name = "byEmail") + public EPersonRest findByEmail(@Parameter(value = "email") String email) { + return null; + } + @Override public Class getDomainClass() { return EPersonRest.class;