package net.ihe.xcpd.init.action; import net.ihe.gazelle.common.filter.FilterDataModel; import net.ihe.gazelle.common.filter.hql.HQLQueryBuilder; import net.ihe.xcpd.filter.XCPDMessageFilter1; import net.ihe.xcpd.init.model.XCPDMessage; public class XCPDMessageDataModel extends FilterDataModel{ private String context; public String getContext() { return context; } public void setContext(String context) { this.context = context; } public XCPDMessageDataModel(String context) { super(new XCPDMessageFilter1()); this.context = context; } @Override public void appendFiltersFields(HQLQueryBuilder queryBuilder) { if (context != null) { queryBuilder.addEq("context", context); } } }