Package org.dspace.ctask.general
Class BitstreamsIntoMetadata
- java.lang.Object
-
- org.dspace.curate.AbstractCurationTask
-
- org.dspace.ctask.general.BitstreamsIntoMetadata
-
- All Implemented Interfaces:
CurationTask
public class BitstreamsIntoMetadata extends AbstractCurationTask
A curation job to take bitstream URLs and place them into metadata elements.- Author:
- Stuart Lewis
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>resultsprotected intstatus-
Fields inherited from class org.dspace.curate.AbstractCurationTask
communityService, configurationService, curator, handleService, itemService, taskId
-
-
Constructor Summary
Constructors Constructor Description BitstreamsIntoMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
perform
public int perform(DSpaceObject dso)
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
protected void logDebugMessage(String message)
Debugging logging if required- Parameters:
message- The message to log
-
addMetadata
protected void addMetadata(Item item, Bitstream bitstream, String type) throws SQLException
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.
-
-