I would like for Jackrabbit to be able to write and read a custom privilege. In this case, the privilege I want to add represents the right to execute a file. While this privilege means nothing to Jackrabbit, I can use it in the "execution engine" of my app to allow or deny the execution.
Here are some related issues:
- PrivilegeRegistry is accessed statically in some parts of the code. This might need to change if PrivilegeRegistry is pluggable.
- PrivilegeRegistry.ALL is the result of ORing all known bits. Why not make this -1 (all bits enabled) to future-proof this constant?