org.dspace.content.service.InProgressSubmissionService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dspace-api Show documentation
Show all versions of dspace-api Show documentation
DSpace core data model and service APIs.
/**
* 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 org.dspace.app.util.DCInputsReaderException;
import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Collection;
import org.dspace.content.InProgressSubmission;
import org.dspace.core.Context;
/**
* Service interface class for the InProgressSubmission.
* All InProgressSubmission service classes should implement this class since it offers some basic methods which all
* InProgressSubmissions
* are required to have.
*
* @param class type
* @author kevinvandevelde at atmire.com
*/
public interface InProgressSubmissionService {
/**
* Deletes submission wrapper, doesn't delete item contents
*
* @param context context
* @param inProgressSubmission submission
* @throws SQLException if database error
* @throws AuthorizeException if authorization error
*/
public void deleteWrapper(Context context, T inProgressSubmission) throws SQLException, AuthorizeException;
/**
* Update the submission, including the unarchived item.
*
* @param context context
* @param inProgressSubmission submission
* @throws SQLException if database error
* @throws AuthorizeException if authorization error
*/
public void update(Context context, T inProgressSubmission) throws SQLException, AuthorizeException;
public void move(Context context, T inProgressSubmission, Collection fromCollection, Collection toCollection)
throws DCInputsReaderException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy