Bridge API
Das Package "bridge" beinhaltet Schritte, die mit docuteam feeder API interagieren.
Bridge: download deposition
Initiiert den Download einer spezifischen Ablieferung über docuteam feeder API. Nach erfolgreichem Download wird der Status der Ablieferung auf processing gesetzt.
java ch.docuteam.actions.bridge.DownloadDeposition \
--depositionId=depositionId [--targetDirPath=path/to/targetDir]
| Parameter | Beschreibung |
|---|---|
--depositionId=depositionId | name of deposition |
[--targetDirPath=path/to/targetDir] | target directory, defaults to actions.workbench.inbox |
Bridge: create SIP from DublinCore Bagit SIP
Erstellt ein auf dem Matterhorn Profil basierendes SIP aus einem gezippten DublinCore Bagit SIP.
java ch.docuteam.actions.bridge.CreateSIPFromDublinCoreBagitSIP \
--bagitZipName=depositionId.zip \
--saTemplate=sa_all-formats-01 \
--dssId=newDssId \
[--levelsFilePath=path/to/levels_bagit-dublincore.xml]
| Parameter | Beschreibung |
|---|---|
--bagitZipName=depositionId.zip | name of bagit SIP, with or without extension '.zip' |
--saTemplate=sa_all-formats-01 | submission agreement template |
--dssId=newDssId | ID of dataSubmissionSession in submission agreement |
[--levelsFilePath=path/to/levels_bagit-dublincore.xml] | optional, path to levels file |
Bridge: queue submitted depositions
Startet für alle Ablieferungen in docuteam feeder API mit dem Status submitted einen Workflow in docuteam feeder und setzt den Status dieser Ablieferungen auf queued.
java ch.docuteam.actions.bridge.QueueSubmittedDepositions \
--workflowId=workflowId \
[--organization=docuteam] \
[--organizationBridge=myOrg]
| Parameter | Beschreibung |
|---|---|
--workflowId=workflowId | ID of workflow to be started |
[--organization=docuteam] | |
[--organizationBridge=myOrg] | name of bridge organization |
Bridge: upload PIDs for deposition
Überträgt PIDs von Fedora nach docuteam feeder API und setzt den Status der Ablieferung auf processing. Setzt voraus, dass das SIP in actions.workbench.work zu finden ist.
java ch.docuteam.actions.bridge.UploadPIDsForDeposition \
--depositionId=1234.zip
| Parameter | Beschreibung |
|---|---|
--depositionId=1234.zip | deposition ID, assuming it is also the name of the SIP |
Bridge: report error
Setzt den Status einer Ablieferung auf error.
java ch.docuteam.actions.bridge.ReportDepositionStatus \
--workflowExecutionId=workflowExecutionId \
--depositionId=depositionId \
--organization=1
| Parameter | Beschreibung |
|---|---|
--workflowExecutionId=workflowExecutionId | workflow execution ID in docuteam feeder |
--depositionId=depositionId | deposition ID |
--organization=1 | number of organization |