org.dspace.sword
Class DepositManager

java.lang.Object
  extended by org.dspace.sword.DepositManager

public class DepositManager
extends Object

This class is responsible for initiating the process of deposit of SWORD Deposit objects into the DSpace repository

Author:
Richard Jones

Field Summary
static Logger log
          Log4j logger
 
Constructor Summary
DepositManager(SWORDService service)
          Construct a new DepositManager using the given instantiation of the SWORD service implementation
 
Method Summary
 DepositResponse deposit(Deposit deposit)
          Once this object is fully prepared, this method will execute the deposit process.
 DSpaceObject getDepositTarget(Deposit deposit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static Logger log
Log4j logger

Constructor Detail

DepositManager

public DepositManager(SWORDService service)
Construct a new DepositManager using the given instantiation of the SWORD service implementation

Parameters:
service -
Method Detail

getDepositTarget

public DSpaceObject getDepositTarget(Deposit deposit)
                              throws DSpaceSWORDException,
                                     SWORDErrorException
Throws:
DSpaceSWORDException
SWORDErrorException

deposit

public DepositResponse deposit(Deposit deposit)
                        throws DSpaceSWORDException,
                               SWORDErrorException,
                               SWORDAuthenticationException
Once this object is fully prepared, this method will execute the deposit process. The returned DepositRequest can be used then to assembel the SWORD response.

Returns:
the response to the deposit request
Throws:
DSpaceSWORDException
SWORDErrorException
SWORDAuthenticationException


Copyright © 2010 The DSpace Foundation. All Rights Reserved.