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

org.dspace.authority.service.AuthorityService 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.authority.service;

import java.sql.SQLException;

import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Item;
import org.dspace.core.Context;

/**
 * Service interface class for the Metadata Authority.
 * The implementation of this class is responsible for all business logic calls
 * for the Metadata Authority and is autowired by Spring.
 *
 * @author kevinvandevelde at atmire.com
 */
public interface AuthorityService {

    /**
     * Add an {@link Item} to the authority index.
     * @param context current DSpace session.
     * @param item the Item to be added.
     * @throws SQLException passed through.
     * @throws AuthorizeException passed through.
     */
    public void indexItem(Context context, Item item) throws SQLException, AuthorizeException;

    public boolean isConfigurationValid();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy