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

org.dspace.content.SupervisedItemServiceImpl Maven / Gradle / Ivy

There is a newer version: 8.0
Show newest version
/**
 * 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/
 */
package org.dspace.content;

import java.sql.SQLException;
import java.util.List;

import org.dspace.content.service.SupervisedItemService;
import org.dspace.content.service.WorkspaceItemService;
import org.dspace.core.Context;
import org.dspace.eperson.EPerson;
import org.springframework.beans.factory.annotation.Autowired;

public class SupervisedItemServiceImpl implements SupervisedItemService {

    @Autowired(required = true)
    protected WorkspaceItemService workspaceItemService;

    protected SupervisedItemServiceImpl() {

    }

    @Override
    public List getAll(Context context)
        throws SQLException {
        return workspaceItemService.findAllSupervisedItems(context);
    }

    @Override
    public List findbyEPerson(Context context, EPerson ep)
        throws SQLException {
        return workspaceItemService.findSupervisedItemsByEPerson(context, ep);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy