org.dspace.sword
Class Depositor

java.lang.Object
  extended by 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.

Field Summary
protected  SWORDService swordService
          The sword service implementation
 
Constructor Summary
Depositor(SWORDService swordService, DSpaceObject dso)
          Construct a new Depositor with the given sword service on the given dspace object.
 
Method Summary
abstract  DepositResult doDeposit(Deposit deposit)
          Execute the deposit process with the given sword deposit
abstract  void undoDeposit(DepositResult result)
          Undo any changes to the archive effected by the deposit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swordService

protected SWORDService swordService
The sword service implementation

Constructor Detail

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 -
Method Detail

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 © 2010 The DSpace Foundation. All Rights Reserved.