Project

General

Profile

Actions

feature request #7137

closed

Registration Identifier minter implemented

Added by Andreas Kohlbecker over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
New
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
major

Description

  • RegistrationIdentifierMinter needs access with direct access to the persitence storage in order to verify a new created identifier is not yet existing.
  • mint() method
    • @synchronized
    • returns localId and identifier
  • RegistrationIdentifierMinter should be bound to the application context as singleton Spring Bean
  • The RegistrationIdentifierMinter needs to be configurable:
    • minLocalId
    • maxLocalId
    • idGenerationMethod:
      • naturalNumberIncrement (this is the only method that needs to be implemented so far)
    • identifierFormatString (a java format string where as '%s' will we used as placeholder for the loaclIdentifier)

The implementation of the idGenerationMethod needs to check if the new identifier is still in the range [minLocalId, maxLocalId], In case there to no identifier left in this range the minter needs to throw an exception: IdentifierMinterOutOfIdsException

  • the identifierFormatString for phycobank will be: "http:\\phycobank\%s"
Actions

Also available in: Atom PDF