Resource filters
Collection resources (such as Activities
) can have a filter
section. This section defines criteria the each member of the collection must meet in order to
be accessible. They may be the only criteria that the resource must meet, or they may be in
addition to other criteria added by ClaimCenter. (Filters are
not used for individual element resources because you can use view and edit permissions to
control the availability of an individual resource.)
The filter
section consists of a list of one or more filter expressions. A
filter expression can be:
- A Gosu expression that returns filter criteria, such as gw.rest.core.pl.common.v1.activities.AssignedActivitiesFilter.
- The keyword
__nofilter
, which indicates that there is no filter and all resources are accessible.
For example, the following code defines the filters for the
Claims
resource (for a collection of claims) as declared in the
policyNumbers_core-1.0access.yaml file:
Claims:
filter: gw.rest.core.cc.shared.v1.RestrictClaimsForPolicyNumbersFilter