org.mycore.services.urn
Interface MCRNISSBuilder

All Known Implementing Classes:
MCRNISSBuilderDateCounter, MCRNISSBuilderFL

public interface MCRNISSBuilder

Implementations of this interface provide different strategies to generate a NISS (namespace specific string) for a new URN. Each subnamespace configuration can have its own instance. A NISS must be a unique ID within the subnamespace. MCR.URN.SubNamespace.[ConfigID].NISSBuilder=[Class], for example MCR.URN.SubNamespace.Essen.NISSBuilder=org.mycore.services.urn.MCRNISSBuilderDateCounter

Author:
Frank Lützenkirchen

Method Summary
 String buildNISS()
          Builds a new NISS.
 void init(String configID)
          Initializes this instance of a MCRNISSBuilder.
 

Method Detail

init

void init(String configID)
Initializes this instance of a MCRNISSBuilder. This method is only called once for each instance before this builder is used.

Parameters:
configID - the ID of a subnamespace configuration in mycore.properties

buildNISS

String buildNISS()
Builds a new NISS. No MCRNISSBuilder object must generate the same NISS twice, they must ensure the NISS is unique.