문제

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 constant string type objects.

Thank you

도움이 되었습니까?

해결책 2

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

다른 팁

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).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top