Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Identifier Type Domain, Mybatis Objects, Repository and Service #197

Open
6 tasks
githengi opened this issue May 4, 2020 · 1 comment
Open
6 tasks

Comments

@githengi
Copy link
Contributor

githengi commented May 4, 2020

  • Create a domain object for Identifier Sources

  • The domain should have the below attributes

    • Identifier: String the unique descriptor
    • Description: String, Description of Identifier Source
    • Identifier validator Algorithm: Enum, The algorithm used to validate the generated identifiers
    • Base Character Set: String, The characters that will be used to generate the unique identifiers
    • First Identifier Base: String, First identifier that will be generated
    • Prefix: String, The characters to be added to beggining to generated identifiers
    • Suffix: String, The characters to be appended to generated identifiers
    • Min Length: Integer, The minimum length of the generated identifiers
    • Max Length: Integer, The Maximum length of the generated identifiers
    • Blacklisted: String, The regex which identify the numbers that should never be generated

Mandatory Fields

  • Identifier

  • Base Character Set

  • Min

  • Max

  • Create database script on the configs repository. The table should be in the core schema. Name of the table should be identifier_source

  • Create Mybatis Domains, mappers and examples

  • Implement the repository

  • Implement the service

@githengi githengi changed the title Create Identifier Sources Domain, Mybatis Objects, Repository and Service Create Identifier Type Domain, Mybatis Objects, Repository and Service May 4, 2020
@rehammuzzamil rehammuzzamil self-assigned this May 8, 2020
@cafootitt cafootitt added this to the May 11-15 milestone May 11, 2020
@ndegwamartin
Copy link
Contributor

We need a field maybe named regex_format whose value is optional. This will be used to define the pattern of numbers that can be generated by the particular source.

The regex is a string type of format "^[A-Za-z0-9_-]*$" which represents a string with all letters and numbers as an example

I think we can change the blacklisted field above to be this instead as it will not only be used for black listing but rather for defining the unique identifier sequences that are allowed (and as a consequence preventing/blacklisting those that are not allowed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants