@Documented @Target(value=METHOD) @Retention(value=RUNTIME) public @interface AccessScope
Access scope can be used to allow access to querying objects from the database as a replacement of access methods in simple (but common) case where access to an object should be granted given that access is allowed one of the properties of the properties of an object.
Consider the example where the class
A has a property accessor
returns a value of type
getB is annotated with
then access to an object of type
A is allowed if access is allowed to the object of type
B returned by
Copyright © 2008-2012 Anders Møller & Mathias Schwarz.