org.mycore.services.urn
Class MCRNISSBuilderFL
java.lang.Object
org.mycore.services.urn.MCRNISSBuilderFL
- All Implemented Interfaces:
- MCRNISSBuilder
public class MCRNISSBuilderFL
- extends Object
- implements MCRNISSBuilder
Builds a new, unique NISS based on the current date and time expressed
in seconds. The resulting NISS is non-speaking, but unique and somewhat
optimized for the nbn:de checksum algorithm. Only one NISS per second
will be generated.
- Author:
- Frank Lützenkirchen
|
Method Summary |
String |
buildNISS()
Builds a new NISS. |
void |
init(String configID)
Initializes this instance of a MCRNISSBuilder. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MCRNISSBuilderFL
public MCRNISSBuilderFL()
init
public void init(String configID)
- Description copied from interface:
MCRNISSBuilder
- Initializes this instance of a MCRNISSBuilder. This method is only called
once for each instance before this builder is used.
- Specified by:
init in interface MCRNISSBuilder
- Parameters:
configID - the ID of a subnamespace configuration in mycore.properties
buildNISS
public String buildNISS()
- Description copied from interface:
MCRNISSBuilder
- Builds a new NISS. No MCRNISSBuilder object must generate the same NISS
twice, they must ensure the NISS is unique.
- Specified by:
buildNISS in interface MCRNISSBuilder