Class RemoveManifest
- java.lang.Object
-
- org.dspace.curate.AbstractCurationTask
-
- org.dspace.ctask.replicate.checkm.RemoveManifest
-
- All Implemented Interfaces:
org.dspace.curate.CurationTask
@Distributive public class RemoveManifest extends org.dspace.curate.AbstractCurationTaskRemoveManifest task will remove the manifest of requested objects from the replica store. If the manifest is multi-level, all the manifests of its children (members) will also be removed.Manifests conform to the CDL Checkm v0.7 manifest format spec. http://www.cdlib.org/uc3/docs/checkmspec.html
- Author:
- richardrodgers
- See Also:
TransmitManifest
-
-
Constructor Summary
Constructors Constructor Description RemoveManifest()
-
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)Removes replicas of passed object from the replica store.intperform(org.dspace.core.Context ctx, String id)Removes replicas of passed id from the replica store.
-
-
-
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.content.DSpaceObject dso) throws IOExceptionRemoves replicas of passed object from the replica store. If a container, removes all the member replicas, in addition to the replica of the container object. No change is made to the DSPace object itself.- Specified by:
performin interfaceorg.dspace.curate.CurationTask- Specified by:
performin classorg.dspace.curate.AbstractCurationTask- Parameters:
dso- the DSpace object- Returns:
- integer which represents Curator return status
- Throws:
IOException- if I/O error
-
perform
public int perform(org.dspace.core.Context ctx, String id) throws IOExceptionRemoves replicas of passed id from the replica store. This can act in one of two ways: either there is an existing DSpace Object with this id, in which case it behaves like the previous method, or there is no DSpace Object, in which case we assume that the object has been deleted. In this case, the replica store is purged of the deleted manifest, or manifests, if the id is (was) a container.- Specified by:
performin interfaceorg.dspace.curate.CurationTask- Overrides:
performin classorg.dspace.curate.AbstractCurationTask- Parameters:
ctx- current DSpace Contextid- Identifier of the object to be removed.- Returns:
- integer which represents Curator return status
- Throws:
IOException- if I/O error
-
-