Everything seems very clear to me except for setting permissions for each role.
How do you create a Role record in mongodb that contains one or more permissions and how are they mapped into Set<org.apache.shiro.authz.Permission> when you are retrieving a role? I've tried using morphia to programmatically create a role with permissions but was not sure how to define a permission (tried implementing a class that implements org.apache.shiro.authz.Permission) but not sure how this can be stored in mongodb. Many thanks, Jean -- View this message in context: http://shiro-user.582556.n2.nabble.com/Example-Shiro-MongoDB-Realm-tp7579029p7579409.html Sent from the Shiro User mailing list archive at Nabble.com.
