java - Store Permissions for Apache Shiro -


i'm starting framework apache shiro, felt great , flexible. within application want control permissions parts of web jsp tags "shiro: haspermission".

shiro understand things can tell module4:action1, more complex scenarios module1-> module1.1-> action3 not think of structure store in database.

enter image description here

depending on model of our application suggestion store permissions on database, tables use?.

thanks in advance

shiro's default wildcardpermission syntax can handle arbitrary numbers of : delimited tokens. on easy defining permissions follows:

module1:module1.1:action3 

etc.

this means need association table, e.g. account_permissions has account_id , permission string.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -