public final class EntityFilteringFeature extends Object implements Feature
Feature
used to add support for Entity Data Filtering feature for entity-filtering annotations based on
EntityFiltering
meta-annotation.Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_FILTERING_SCOPE
Defines one or more annotations that should be used as entity-filtering scope when reading/writing an entity.
|
Constructor and Description |
---|
EntityFilteringFeature() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(FeatureContext context) |
static boolean |
enabled(Configuration config)
Return
true whether at least one of the entity filtering features is registered in the given config. |
public static final String ENTITY_FILTERING_SCOPE
The property can be used on client to define the scope as well as on server to override the scope derived from current request processing context (resource methods / resource classes).
If the property is set, the specified annotations will be used to create (override) entity-filtering scope.
The property value MUST be an instance of Annotation
or Annotation[]
array. To obtain
the annotation instances refer to the EntityFiltering
for requirements on creating entity-filtering annotations.
A default value is not set.
The name of the configuration property is "jersey.config.entityFiltering.scope".
EntityFiltering
,
Constant Field Valuespublic boolean configure(FeatureContext context)
public static boolean enabled(Configuration config)
true
whether at least one of the entity filtering features is registered in the given config.config
- config to be examined for presence of entity filtering feature.true
if entity filtering is enabled for given config, false
otherwise.Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.