feat(config-api): session endpoint changes for search in jansSessAttr JSON #9856
Labels
comp-jans-config-api
Component affected by issue or PR
effort-3
Relative effort required for completion of issue or PR
kind-enhancement
Issue or PR is an enhancement to an existing functionality
kind-feature
Issue or PR is a new feature request
priority-3
Issue or PR is relevant to core functions, but does not impede progress. Important, but not urgent
Milestone
ORM now support to search inside JSON SQL columns
New MySQL/PostgreSQL ORM support search in JSON columns like jansdb.jansSessId.jansSessAttr
The filter API syntax is the same
Filter filterSessAttr = Filter.createGreaterOrEqualFilter("jansSessAttr.exp", expirationDate.getTimeInMillis());
In query above part .exp specify to which JSON property ORM should apply filter
Also this JSON ORM API update supports =, >= ,<=, partial match, contains
We can use this API to search in session attributes
Changes in search endpoint to support search based on jansSessAttr feild.
Example:
fieldValuePair=auth_user=devrim,client_id=2000.583cef6f-36f4-4e9b-9bd2-5eeacd52081e,expirationDate>2024-09-25,expirationDate<2024-09-27
auth_user=devrim
client_id=2000.d86121b0-c77f-492d-af94-74badd0338c2
date_after=2024-09-15T12:00:00
date_before=2024-10-18T16:10:23
The text was updated successfully, but these errors were encountered: