@Distributive @Mutative public class CitationPage extends AbstractCurationTask
| Modifier and Type | Field and Description |
|---|---|
protected BitstreamService |
bitstreamService |
protected BundleService |
bundleService |
protected static String |
DISPLAY_BUNDLE_NAME
The name to give the bundle we add the cited pages to.
|
protected static String |
PRESERVATION_BUNDLE_NAME
The name of the bundle to move source documents into after they have been
cited.
|
protected StringBuilder |
resBuilder
A StringBuilder to handle result string building process.
|
protected String |
result |
protected int |
status |
communityService, configurationService, curator, handleService, itemService, taskId| Constructor and Description |
|---|
CitationPage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCitedPageToItem(File citedTemp,
Bundle bundle,
Bundle pBundle,
Bundle dBundle,
Map<String,Bitstream> displayMap,
Item item,
Bitstream bitstream)
A helper function for
performItem(Item). |
int |
perform(DSpaceObject dso)
Perform the curation task upon passed DSO
|
protected void |
performItem(Item item)
Performs task upon a single DSpace Item.
|
dereference, distribute, init, perform, performObject, report, setResult, taskArrayProperty, taskBooleanProperty, taskIntProperty, taskLongProperty, taskPropertyprotected int status
protected String result
protected StringBuilder resBuilder
protected static final String DISPLAY_BUNDLE_NAME
protected static final String PRESERVATION_BUNDLE_NAME
protected BitstreamService bitstreamService
protected BundleService bundleService
public int perform(DSpaceObject dso) throws IOException
perform in interface CurationTaskperform in class AbstractCurationTaskdso - the DSpace objectIOException - if errorCurationTask.perform(DSpaceObject)protected void performItem(Item item) throws SQLException
distribute method to run a single task across multiple Items.
You should override this method if you want to use
distribute to run your task across multiple DSpace Items.
Either this method or performObject should be overridden if
distribute method is used.
performItem in class AbstractCurationTaskitem - the DSpace ItemSQLException - if database errorAbstractCurationTask.performItem(Item)protected void addCitedPageToItem(File citedTemp, Bundle bundle, Bundle pBundle, Bundle dBundle, Map<String,Bitstream> displayMap, Item item, Bitstream bitstream) throws SQLException, AuthorizeException, IOException
performItem(Item). This function takes in the
cited document as a File and adds it to DSpace properly.citedTemp - The temporary File that is the cited document.bundle - The bundle the cited file is from.pBundle - The preservation bundle. The original document should be
put in here if it is not already.dBundle - The display bundle. The cited document gets put in here.displayMap - The map of bitstream names to bitstreams in the display
bundle.item - The item containing the bundles being used.bitstream - The original source bitstream.SQLException - if database errorAuthorizeException - if authorization errorIOException - if IO errorCopyright © 2022 LYRASIS. All rights reserved.