# Object filtering

Het is mogelijk om te bepalen welke Documenten een gebruiker te zien krijgt op een zaak pagina. Zaak Informatieobjecten worden gefilterd voor dat ze geretourneerd worden.

## Configuratie

Deze functionalitiet maakt gebruik van twee whitelists in de spring properties van jouw applicatie. Beide properties hebben zijn eigen [opties en standaardwaardes](#opties). Standaardwaardes worden gebruikt als deze properties niet configureerd zijn.

1. `nl-portal.zgw.zakenapi.zaak-documenten.status-whitelist`
2. `nl-portal.zgw.zakenapi.zaak-documenten.vertrouwelijkheidsaanduiding-whitelist`

### Opties

De volgende opties zijn van toepassing bij de whitelists en zijn gebaseerd op de [enkelvoudiginfromatieobject](https://openzaak.ritense.opengem.nl/documenten/api/v1/schema/#tag/enkelvoudiginformatieobjecten) Documenten API specificatie.

| Status            | Standaardwaarde |
| ----------------- | :-------------: |
| ter\_vaststelling |                 |
| in\_bewerking     |                 |
| definitief        |        X        |
| gearchiveerd      |        X        |

| Vertrouwelijkheidaanduiding | Standaardwaarde |
| --------------------------- | :-------------: |
| openbaar                    |        X        |
| beperkt\_openbaar           |        X        |
| intern                      |        X        |
| zaakvertrouwelijk           |        X        |
| vertrouwelijk               |                 |
| confidentieel               |                 |
| geheim                      |                 |

### Voorbeeld

De volgende spring properties zorgen ervoor dat alle Informatieobjecten die bij jouw Zaak horen worden geretourneerd.

```yaml
nl-portal:
    zgw:
        zakenapi:
            zaak-documenten:
                vertrouwelijkheidsaanduiding-whitelist:
                    - openbaar
                    - beperkt_openbaar
                    - intern
                    - vertrouwelijk
                    - zaakvertrouwelijk
                    - confidentieel
                    - geheim
                    - zeer_geheim
                status-whitelist:
                    - ter_vaststelling
                    - in_bewerking
                    - definitief
                    - gearchiveerd
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.nl-portal.nl/fundamentals/zaakinformatie-object-filtering.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
