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

org.dspace.content.service.SupervisedItemService 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.service;

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

import org.dspace.content.WorkspaceItem;
import org.dspace.core.Context;
import org.dspace.eperson.EPerson;

/**
 * Class to handle WorkspaceItems which are being supervised.
 *
 * @author Richard Jones
 * @version $Revision$
 */
public interface SupervisedItemService {
    /**
     * Get all workspace items which are being supervised
     *
     * @param context the context this object exists in
     * @return array of SupervisedItems
     * @throws SQLException if database error
     */
    public List getAll(Context context) throws SQLException;


    /**
     * Get items being supervised by given EPerson
     *
     * @param ep      the eperson who's items to supervise we want
     * @param context the dspace context
     * @return the items eperson is supervising in an array
     * @throws SQLException if database error
     */
    public List findbyEPerson(Context context, EPerson ep)
        throws SQLException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy