used
as a base class for JPA/Hibernate persisted permissions that wish to store the parts of the permission string
in separate columns (e.g. 'domain', 'actions' and 'targets' columns)
one option would be to embed the hierarchy of locations in the
permission strings
since you can have any
number of elements separated by colons
Another option would be to create your own Permission instances and
implement the isPermitted() method such that it delegates to
Location.isIn(Location) for permission checks