feature request #7137
Registration Identifier minter implemented
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
ref #7137 RegistrationIdentifierMinter implemented
ref #7137 improvements to the RegistrationIdentifierMinter:
- addin getters
- logging a warning when configuration incomplete
ref #7137 using the RegistrationIdentifierMinter and using CDM_DATA_SOURCE_ID from the Spring enviroment
History
#1 Updated by Andreas Kohlbecker about 3 years ago
- Description updated (diff)
#2 Updated by Andreas Kohlbecker about 3 years ago
- Description updated (diff)
#3 Updated by Andreas Kohlbecker about 3 years ago
- Description updated (diff)
- Status changed from New to Resolved
#4 Updated by Andreas Kohlbecker about 3 years ago
- Status changed from Resolved to Closed