If you change this file structure like: 
```
  {
     "user1" : ["role1", "role2"],
     "user2" : ["role1", "role3"]
  }
```
than in the java code the user would be the key and the role list would be the 
value in the `simpleRolesMap` and the `List<...> 
RoleDao.getRolesForUser(username)` function implementation would be much 
simpler like 
```
simpleRolesMap.get(username)
``` 

[ Full content available at: https://github.com/apache/ambari/pull/2336 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to