org.dspace.sword
Class Depositor
java.lang.Object
org.dspace.sword.Depositor
- Direct Known Subclasses:
- CollectionDepositor, ItemDepositor
public abstract class Depositor
- extends Object
- Author:
- Richard Jones
Abstract class for depositing content into the archive.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
swordService
protected SWORDService swordService
- The sword service implementation
Depositor
public Depositor(SWORDService swordService,
DSpaceObject dso)
- Construct a new Depositor with the given sword service on the given
dspace object. It is anticipated that extensions of this class will
specialise in certain kinds of dspace object
- Parameters:
swordService - dso -
doDeposit
public abstract DepositResult doDeposit(Deposit deposit)
throws SWORDErrorException,
DSpaceSWORDException
- Execute the deposit process with the given sword deposit
- Parameters:
deposit -
- Returns:
-
- Throws:
SWORDErrorException
DSpaceSWORDException
undoDeposit
public abstract void undoDeposit(DepositResult result)
throws DSpaceSWORDException
- Undo any changes to the archive effected by the deposit
- Parameters:
result -
- Throws:
DSpaceSWORDException
Copyright © 2011 DuraSpace. All Rights Reserved.