Package org.dspace.ctask.replicate
Class METSRestoreFromAIP
- java.lang.Object
-
- org.dspace.curate.AbstractCurationTask
-
- org.dspace.ctask.replicate.AbstractPackagerTask
-
- org.dspace.ctask.replicate.METSRestoreFromAIP
-
- All Implemented Interfaces:
org.dspace.curate.CurationTask
@Distributive @Mutative public class METSRestoreFromAIP extends AbstractPackagerTask
METSRestoreFromAIP task will instate the METS AIP replica representation of the object in place of the current (repository) one.- Author:
- tdonohue
- See Also:
TransmitAIP
-
-
Constructor Summary
Constructors Constructor Description METSRestoreFromAIP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(org.dspace.curate.Curator curator, String taskId)intperform(org.dspace.content.DSpaceObject dso)intperform(org.dspace.core.Context ctx, String id)Perform the Restore/Replace task.-
Methods inherited from class org.dspace.ctask.replicate.AbstractPackagerTask
loadPackagerParameters
-
-
-
-
Method Detail
-
init
public void init(org.dspace.curate.Curator curator, String taskId) throws IOException- Specified by:
initin interfaceorg.dspace.curate.CurationTask- Overrides:
initin classorg.dspace.curate.AbstractCurationTask- Throws:
IOException
-
perform
public int perform(org.dspace.core.Context ctx, String id) throws IOExceptionPerform the Restore/Replace task.Actually restore/replace an object in the repository with whatever information is contained in the AIP.
- Specified by:
performin interfaceorg.dspace.curate.CurationTask- Overrides:
performin classorg.dspace.curate.AbstractCurationTask- Parameters:
ctx- current DSpace Contextid- the ID of DSpace object to restore/replace- Returns:
- integer which represents Curator return status
- Throws:
IOException- if I/O error
-
perform
public int perform(org.dspace.content.DSpaceObject dso) throws IOException- Specified by:
performin interfaceorg.dspace.curate.CurationTask- Specified by:
performin classorg.dspace.curate.AbstractCurationTask- Throws:
IOException
-
-