public abstract class AbstractSwordContentIngester extends Object implements SwordContentIngester
| Constructor and Description |
|---|
AbstractSwordContentIngester() |
| Modifier and Type | Method and Description |
|---|---|
protected DCValue |
configToDC(String config,
String def)
Utility method to turn given metadata fields of the form
schema.element.qualifier into DCValue objects which can be
used to access metadata in items.
|
protected BitstreamFormat |
getFormat(Context context,
String fileName) |
DepositResult |
ingest(Context context,
org.swordapp.server.Deposit deposit,
DSpaceObject dso,
VerboseDescription verboseDescription)
Ingest the package as described in the given Deposit object
within the given DSpace Context
|
DepositResult |
ingest(Context context,
org.swordapp.server.Deposit deposit,
DSpaceObject dso,
VerboseDescription verboseDescription,
DepositResult result) |
abstract DepositResult |
ingestToCollection(Context context,
org.swordapp.server.Deposit deposit,
Collection collection,
VerboseDescription verboseDescription,
DepositResult result) |
abstract DepositResult |
ingestToItem(Context context,
org.swordapp.server.Deposit deposit,
Item item,
VerboseDescription verboseDescription,
DepositResult result) |
protected void |
setSlug(Item item,
String slugVal,
VerboseDescription verboseDescription)
Store the given slug value (which is used for suggested identifiers,
and which DSpace ignores) in the item metadata.
|
protected void |
setUpdatedDate(Item item,
VerboseDescription verboseDescription)
Add the current date to the item metadata.
|
public DepositResult ingest(Context context, org.swordapp.server.Deposit deposit, DSpaceObject dso, VerboseDescription verboseDescription) throws DSpaceSwordException, org.swordapp.server.SwordError, org.swordapp.server.SwordAuthException, org.swordapp.server.SwordServerException
SwordContentIngesteringest in interface SwordContentIngesterDSpaceSwordExceptionorg.swordapp.server.SwordErrororg.swordapp.server.SwordAuthExceptionorg.swordapp.server.SwordServerExceptionpublic DepositResult ingest(Context context, org.swordapp.server.Deposit deposit, DSpaceObject dso, VerboseDescription verboseDescription, DepositResult result) throws DSpaceSwordException, org.swordapp.server.SwordError, org.swordapp.server.SwordAuthException, org.swordapp.server.SwordServerException
ingest in interface SwordContentIngesterDSpaceSwordExceptionorg.swordapp.server.SwordErrororg.swordapp.server.SwordAuthExceptionorg.swordapp.server.SwordServerExceptionpublic abstract DepositResult ingestToCollection(Context context, org.swordapp.server.Deposit deposit, Collection collection, VerboseDescription verboseDescription, DepositResult result) throws DSpaceSwordException, org.swordapp.server.SwordError, org.swordapp.server.SwordAuthException, org.swordapp.server.SwordServerException
DSpaceSwordExceptionorg.swordapp.server.SwordErrororg.swordapp.server.SwordAuthExceptionorg.swordapp.server.SwordServerExceptionpublic abstract DepositResult ingestToItem(Context context, org.swordapp.server.Deposit deposit, Item item, VerboseDescription verboseDescription, DepositResult result) throws DSpaceSwordException, org.swordapp.server.SwordError, org.swordapp.server.SwordAuthException, org.swordapp.server.SwordServerException
DSpaceSwordExceptionorg.swordapp.server.SwordErrororg.swordapp.server.SwordAuthExceptionorg.swordapp.server.SwordServerExceptionprotected BitstreamFormat getFormat(Context context, String fileName) throws SQLException
SQLExceptionprotected void setUpdatedDate(Item item, VerboseDescription verboseDescription) throws DSpaceSwordException
item - DSpaceSwordExceptionprotected void setSlug(Item item, String slugVal, VerboseDescription verboseDescription) throws DSpaceSwordException
item - slugVal - DSpaceSwordExceptionprotected DCValue configToDC(String config, String def)
config - def - Copyright © 2013 DuraSpace. All Rights Reserved.