@Contract public interface ScopeResolver
#resolve()
method
can be one of the following: entity annotations (provided when creating request/response entity),
annotations obtained from configuration
, resource method / resource class annotations.
Entity-filtering scope is supposed to be an unique string that can be derived from an annotations and that can be further used
in internal entity data filtering structures. Examples of such unique strings are:
@MyDetailedView
-> my.package.MyDetailedView
@RolesAllowed({"manager", "user"})
-> javax.annotation.security.RolesAllowed_manager
and
javax.annotation.security.RolesAllowed_user
Scope resolvers
are invoked from scope provider
instance.Modifier and Type | Method and Description |
---|---|
Set<String> |
resolve(Annotation[] annotations)
Resolve entity-filtering scopes for given annotations.
|
Set<String> resolve(Annotation[] annotations)
annotations
- list of arbitrary annotations.Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.