org.dspace.sword
Class DepositManager
java.lang.Object
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
|
Constructor Summary |
DepositManager(SWORDService service)
Construct a new DepositManager using the given instantiation of
the SWORD service implementation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final Logger log
- Log4j logger
DepositManager
public DepositManager(SWORDService service)
- Construct a new DepositManager using the given instantiation of
the SWORD service implementation
- Parameters:
service -
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 assemble the SWORD response.
- Returns:
- the response to the deposit request
- Throws:
DSpaceSWORDException
SWORDErrorException
SWORDAuthenticationException
Copyright © 2011 DuraSpace. All Rights Reserved.