5 #ifndef INCLUDE_CBE_GROUPFILTER_H_
6 #define INCLUDE_CBE_GROUPFILTER_H_
11 #include "CBE/Types.h"
23 std::string getFilter()
const;
27 bool getDeleted()
const;
28 bool getPublicFirst()
const;
78 bool matchesGroupId(uint64_t
id);
79 bool matchesQuery(uint64_t parentId, CBE::application_t type,
bool isDeleted);
80 bool matchesQuery(CBE::GroupPtr group);
82 void updateCompareValue();
83 std::string order()
const;
84 void order(std::string o);
92 std::map<FilterOrder, std::string> orderStrings = {
93 { FilterOrder::Title,
"title"},
94 { FilterOrder::Published,
"published"},
95 { FilterOrder::Updated,
"updated"},
96 { FilterOrder::Length,
"length"},
97 { FilterOrder::S1,
"s1"},
98 { FilterOrder::S2,
"s2"},
99 { FilterOrder::S3,
"s3"},
100 { FilterOrder::S4,
"s4"}
109 std::string _compareValue{
""};
110 std::string filter{
""};
111 bool bypassCache{
false};
112 void parseQueryString();
113 CBE::application_t applicationType{CBE::ApplicationType::Open};
116 std::string modifier{
""};
117 std::string prefix{
""};
121 std::vector<Term> _parsedQueryString = {};
122 std::vector<CBE::group_id_t> _groupIds = {};
128 #endif // INCLUDE_CBE_GROUPFILTER_H_