Project

General

Profile

feature request #7137

Registration Identifier minter implemented

Added by Andreas Kohlbecker 12 months ago. Updated 12 months ago.

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

0%

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"

Associated revisions

Revision 7357d206 (diff)
Added by Andreas Kohlbecker 12 months ago

ref #7137 RegistrationIdentifierMinter implemented

Revision d26709a1 (diff)
Added by Andreas Kohlbecker 12 months ago

ref #7137 improvements to the RegistrationIdentifierMinter:
- addin getters
- logging a warning when configuration incomplete

Revision 4079cf73 (diff)
Added by Andreas Kohlbecker 12 months ago

ref #7137 using the RegistrationIdentifierMinter and using CDM_DATA_SOURCE_ID from the Spring enviroment

History

#1 Updated by Andreas Kohlbecker 12 months ago

  • Description updated (diff)

#2 Updated by Andreas Kohlbecker 12 months ago

  • Description updated (diff)

#3 Updated by Andreas Kohlbecker 12 months ago

  • Description updated (diff)
  • Status changed from New to Resolved

#4 Updated by Andreas Kohlbecker 12 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)