Releases: bwfdm/exporter-commons
Releases · bwfdm/exporter-commons
0.4.0 - Refactoring, removed old method notation, new static method "isServiceDocumentWithSubservices"
0.4.0 - Refactoring, removed old method notation, new static method "isServiceDocumentWithSubservices"
Latest
0.4.0 - 2019-03-04
Added
- static method "isServiceDocumentWithSubservices(String serviceDocumentUrl, AuthCredentials authCredentials)"
to analyze a type of the service document even before the creation of the
repository object
Deprecated
- none
Removed
- exportNewEntryWithFileAndMetadata
Fixed
- rename of "HierarchyObject" and "HierarchyCollectionObject"
- HierarchyObjectSword
- HierarchyCollectionObjectSword
- rename some export methods:
- exportNewEntryWithMetadataAndFile
- reorder input parameters in:
- exportNewEntryWithMetadataAndFile(String collectionURL, Map<String, List> metadataMap, File file, boolean unpackFileIfArchive)
- createEntryWithMetadataAndFile(String collectionURL, Map<String, List> metadataMap, File file, boolean unpackZip, boolean inProgress)
0.3.0 - Support of internal "service" tag for collections inside the service document, hierarchy of collections and services
Added
- support of "service" tag inside the "collection" tag in the service document
(e.g. in case of DSpace it means, that service document represents communities and not collections.
To get collections in that case, further request to the service URL - URL inside the "service" tag - is needed).
New methods:- isServiceDocumentWithSubservices(ServiceDocument serviceDocument)
- getHierarchy(ServiceDocument serviceDocument)
- getCollectionsAsHierarchy(ServiceDocument serviceDocument, String hierarchySeparator)
- new classes "HierarchyObject" and "HierarchyCollectionObject" which represent the hierarchy of collections and services
Deprecated
- none
Removed
- none
Fixed
- none
0.2.0 - Explicite usage of the "In-Progress: true/false" header for SWORDv2 requests
IMPORTANT:
Old methods, which do not have "inProgress" variable as input, are not supported now. Please use new notation:
- exportElement(String exportURL, SwordRequestType swordRequestType, String mimeFormat, String packageFormat, File file, Map<String, List> metadataMap, boolean inProgress)
- createEntryWithMetadata(String collectionURL, Map<String, List> metadataMap, boolean inProgress)
- createEntryWithMetadataAndFile(String collectionURL, File file, boolean unpackZip, Map<String, List> metadataMap, boolean inProgress)
- replaceMetadataEntry(String entryUrl, Map<String, List> metadataMap, boolean inProgress)
0.1.0 - basic SWORDv2 functionality is supported, common interface for export repository
How to add to your maven project (as dependency im pom.xml)
<dependency>
<groupId>com.github.bwfdm</groupId>
<artifactId>exporter-commons</artifactId>
<version>0.1.0</version>
</dependency>
Limitations
- currently SwordExporter supports metadata in DublinCore only as Map<String, List>. Metadata as XML-file is NOT supported yet.