IdentityManager icon indicating copy to clipboard operation
IdentityManager copied to clipboard

Extensible metadata?

Open kking-envelope opened this issue 11 years ago • 2 comments

Currently, Metadata can only be the following types: String, Password, Email, Url, Number, and Boolean; could this be changed from the current enum PropertyDataType to be Type so PropertyMetadata can become extensible through a factory pattern?

I was really only looking to add DateTime (which was fairly simple), but I can imagine that other metadata types could be useful as well (GUID, phone, etc.), and a more robust method to extend the core functionality that didn't require making changes to existing files would be preferable in this case.

Edit: to be clear, I understand that these aren't the only required changes (the factories still need to be created). I am suggesting that there is potential to move away from the enum (which is simpler but less flexible) and use a factory pattern instead.

kking-envelope avatar Dec 22 '14 16:12 kking-envelope

Yes, good points. We'll see how much time I have... but if you have the time and a good design we accept PRs.

brockallen avatar Jan 02 '15 15:01 brockallen

Though -- if you'd like to contribute, then let's discuss first here before you go off and do a bunch of work. I'd not want any wasted effort on your part. Thx

brockallen avatar Jan 02 '15 15:01 brockallen