part of the application am developing is presenting a form to the user and requesting them to either decline it/accept it. There are thee types of users that will need to approve the same form so that it is considered accepted. The suggestion I need is this: What structure can I use/best use to store the user type and their response?
So far I have an object that is Approvers. This holds the three types of users with setters and getters (and other methods related to operations). I also created another object that is UserDecisions where i have two attributes to set, they are: Usertype & response. But I can’t think of how to link them together or if there is a better way altogether?
Thanks,
P.s. things i’ve considered were 2D arrays & hashmaps.
Suppose that you have
In systems I work we decouple the Users from the Roles for doing a task – a more senior person on occasion fulfils the junior’s role.