org.dspace.curate
Class ClamScan
java.lang.Object
org.dspace.curate.AbstractCurationTask
org.dspace.curate.ClamScan
- All Implemented Interfaces:
- CurationTask
@Suspendable(invoked=INTERACTIVE)
public class ClamScan
- extends AbstractCurationTask
ClamScan.java
A set of methods to scan using the
clamav daemon.
TODO: add a check for the inputstream size limit
- Author:
- wbossons
|
Method Summary |
void |
init(Curator curator,
String taskId)
Initialize task - parameters inform the task of it's invoking curator. |
int |
perform(DSpaceObject dso)
Perform the curation task upon passed DSO |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClamScan
public ClamScan()
init
public void init(Curator curator,
String taskId)
throws IOException
- Description copied from interface:
CurationTask
- Initialize task - parameters inform the task of it's invoking curator.
Since the curator can provide services to the task, this represents
curation DI.
- Specified by:
init in interface CurationTask- Overrides:
init in class AbstractCurationTask
- Parameters:
curator - the Curator controlling this tasktaskId - identifier task should use in invoking services
- Throws:
IOException
perform
public int perform(DSpaceObject dso)
throws IOException
- Description copied from interface:
CurationTask
- Perform the curation task upon passed DSO
- Specified by:
perform in interface CurationTask- Specified by:
perform in class AbstractCurationTask
- Parameters:
dso - the DSpace object
- Returns:
- status code
- Throws:
IOException
Copyright © 2010 DuraSpace. All Rights Reserved.