public class SessionBookmarkFilterValue
extends java.lang.Object
Converts strongly-typed filter arguments (strings, numbers, dates, or BO primary key collections)
into XML attributes formatted for <Filter> elements within SessionStateXml.
string="...").decimal="...").date="...").boIds="10,20,30").
Map<String, SessionBookmarkFilterValue> filters = new HashMap<>();
filters.put("status", SessionBookmarkFilterValue.ofString("AKTIV"));
filters.put("minAmount", SessionBookmarkFilterValue.ofDecimal("1500.50"));
filters.put("createdAfter", SessionBookmarkFilterValue.ofDate("2026-01-01"));
filters.put("categoryIds", SessionBookmarkFilterValue.ofBoIds(10L, 20L, 30L));
sessionStateXml.addBookmark(bookmarkId, "FilterView", "STATUS = 'AKTIV'", filters);
SessionStateXml#addBookmark(Long, String, String, java.util.Map)| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_BO_IDS |
static java.lang.String |
ATTR_DATE |
static java.lang.String |
ATTR_DECIMAL |
static java.lang.String |
ATTR_STRING |
| Modifier and Type | Method and Description |
|---|---|
void |
applyToXml(electric.xml.Element filterElement)
Writes configured non-blank filter properties as attributes onto the given XML element.
|
static SessionBookmarkFilterValue |
ofBoIds(java.util.Collection<java.lang.Long> vals)
Constructs a BO primary key list filter from a Collection of IDs.
|
static SessionBookmarkFilterValue |
ofBoIds(java.lang.Long... vals)
Constructs a BO primary key list filter from varargs or an array of IDs.
|
static SessionBookmarkFilterValue |
ofDate(java.lang.String val)
Constructs a date filter value.
|
static SessionBookmarkFilterValue |
ofDecimal(java.lang.String val)
Constructs a numeric/decimal filter value.
|
static SessionBookmarkFilterValue |
ofString(java.lang.String val)
Constructs a string/text filter value.
|
public static final java.lang.String ATTR_STRING
public static final java.lang.String ATTR_DECIMAL
public static final java.lang.String ATTR_DATE
public static final java.lang.String ATTR_BO_IDS
public static SessionBookmarkFilterValue ofString(java.lang.String val)
public static SessionBookmarkFilterValue ofDecimal(java.lang.String val)
public static SessionBookmarkFilterValue ofDate(java.lang.String val)
public static SessionBookmarkFilterValue ofBoIds(java.lang.Long... vals)
public static SessionBookmarkFilterValue ofBoIds(java.util.Collection<java.lang.Long> vals)
public void applyToXml(electric.xml.Element filterElement)
filterElement - target Electric XML element (mandatory)Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.