开发者

Where should I store custom permissions for my web app

开发者 https://www.devze.com 2022-12-31 22:43 出处:网络
I\'m wondering where is the ideal place to store custom permissions in my web applications. For example I have the following permissions:

I'm wondering where is the ideal place to store custom permissions in my web applications.

For example I have the following permissions:

AdminPermission ReadPermission WritePermission

At the moment I store these in the static utilities class as the const开发者_C百科ant string type objects.

Thank you


Somehow I guess you are talking about a Java app. You could try to externalize these resource in files, like in Tomcat (e.g. tomcat-users.xml).


Decided to go for a database approach with enums referencing records in xml config.

0

精彩评论

暂无评论...
验证码 换一张
取 消