Interface ScopeResolver

All Known Implementing Classes:
EntityFilteringScopeResolver, SecurityScopeResolver, SecurityServerScopeResolver, SelectableScopeResolver

@Contract public interface ScopeResolver
Class used to resolve entity-filtering scopes from annotations. Annotations passed to #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.

  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(Annotation[] annotations)
    Resolve entity-filtering scopes for given annotations.
  • Method Details

    • resolve

      Set<String> resolve(Annotation[] annotations)
      Resolve entity-filtering scopes for given annotations.
      Parameters:
      annotations - list of arbitrary annotations.
      Returns:
      non-null set of entity-filtering scopes.