|
|
@@ -1,6 +1,7 @@
|
|
|
package com.uas.search.model;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
@@ -53,4 +54,17 @@ public class PageParams implements Serializable {
|
|
|
this.filters = filters;
|
|
|
}
|
|
|
|
|
|
+ public void filter(String key, Object value) {
|
|
|
+ if (this.filters == null) {
|
|
|
+ this.filters = new HashMap<String, Object>();
|
|
|
+ }
|
|
|
+ this.filters.put(key, value);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void removeFilter(String key) {
|
|
|
+ if (this.filters != null) {
|
|
|
+ this.filters.remove(key);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|