문제

Problem

  1. An Organization can have 1 or more Credential's.
  2. There can be 1 Credential for each of the deployment environment like DEV, TEST, UAT, PROD etc.
  3. The Credential can be for UI or for App-to-App communication.

Moreover, a user can indicate that the credentials across all the environments are the same. Or, a user can indicate that the user-name across environments is the same but he wants to supply different passwords for each environment.

As you can see, there are two dimensions upon which a credential can be qualified i.e. endpoint type and environment. Wondering how to model this kind of relationship in OOP world.

도움이 되었습니까?

해결책

The following diagram shows a possible solution

다른 팁

I suggest this: UML

And thanks to @sergiofbsilva for the cool tool.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top