Package org.dspace.ctask.general
Class BitstreamsIntoMetadata
java.lang.Object
org.dspace.curate.AbstractCurationTask
org.dspace.ctask.general.BitstreamsIntoMetadata
- All Implemented Interfaces:
CurationTask
A curation job to take bitstream URLs and place them into metadata elements.
- Author:
- Stuart Lewis
-
Field Summary
FieldsFields inherited from class org.dspace.curate.AbstractCurationTask
communityService, configurationService, curator, handleService, itemService, taskId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddMetadata(Item item, Bitstream bitstream, String type) Add the bitstream metadata to the itemprotected voidlogDebugMessage(String message) Debugging logging if requiredintperform(DSpaceObject dso) Perform the bitstream metadata creation.Methods inherited from class org.dspace.curate.AbstractCurationTask
dereference, distribute, init, perform, performItem, performObject, report, setResult, taskArrayProperty, taskBooleanProperty, taskIntProperty, taskLongProperty, taskProperty
-
Field Details
-
status
protected int status -
results
-
-
Constructor Details
-
BitstreamsIntoMetadata
public BitstreamsIntoMetadata()
-
-
Method Details
-
perform
Perform the bitstream metadata creation.- Specified by:
performin interfaceCurationTask- Specified by:
performin classAbstractCurationTask- Parameters:
dso- The DSpaceObject to be checked- Returns:
- The curation task status of the checking
-
logDebugMessage
Debugging logging if required- Parameters:
message- The message to log
-
addMetadata
Add the bitstream metadata to the item- Parameters:
item- The itembitstream- The bitstreamtype- The type of bitstream- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-