Package org.mycore.pi.urn
Class MCRDNBURNGenerator
- Direct Known Subclasses:
MCRCountingDNBURNGenerator
,MCRFLURNGenerator
,MCRUUIDURNGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
buildNISS
(MCRObjectID mcrID, String additional) protected MCRDNBURN
generate
(@NotNull String namespace, MCRObjectID mcrID, String additional) Allows the generation of a URN with a specific Namespacegenerates aMCRPersistentIdentifier
Methods inherited from class org.mycore.pi.MCRPIGenerator
checkPropertyExists, getGeneratorID, getProperties, init, setProperties
-
Constructor Details
-
MCRDNBURNGenerator
public MCRDNBURNGenerator()
-
-
Method Details
-
buildNISS
-
generate
protected MCRDNBURN generate(@NotNull @NotNull String namespace, MCRObjectID mcrID, String additional) throws MCRPersistentIdentifierException Allows the generation of a URN with a specific Namespace- Parameters:
namespace
- the namespace of the generated URNmcrID
- the mycore object for which the identifier is generatedadditional
- additional information dedicated to the object like a mcrpath- Returns:
- a unique persistence identifier
- Throws:
MCRPersistentIdentifierException
- if something goes wrong while generating
-
generate
public MCRDNBURN generate(MCRBase mcrObj, String additional) throws MCRPersistentIdentifierException Description copied from class:MCRPIGenerator
generates aMCRPersistentIdentifier
- Specified by:
generate
in classMCRPIGenerator<MCRDNBURN>
- Parameters:
mcrObj
- the mycore object for which the identifier is generatedadditional
- additional information dedicated to the object like a mcrpath- Returns:
- a unique persistence identifier
- Throws:
MCRPersistentIdentifierException
- if something goes wrong while generating
-
getNamespace
-