 |
C++
1.4.6
CloudBackend Software Development Kit - SDK API for C++
|
5 #ifndef INCLUDE_CBE_FILTER_H_
6 #define INCLUDE_CBE_FILTER_H_
11 #include "CBE/Types.h"
179 static std::vector<std::string> _approvedOrder;
180 std::map<FilterOrder, std::string> orderStrings = {
181 { FilterOrder::Title,
"title"},
182 { FilterOrder::Relevance,
"relevance"},
183 { FilterOrder::Published,
"published"},
184 { FilterOrder::Updated,
"updated"},
185 { FilterOrder::Length,
"length"},
186 { FilterOrder::S1,
"s1"},
187 { FilterOrder::S2,
"s2"},
188 { FilterOrder::S3,
"s3"},
189 { FilterOrder::S4,
"s4"}
198 CBE::item_t dataType;
201 void parseQueryString();
202 CBE::ContainerPtr _container;
205 std::string modifier;
210 std::vector<Term> _parsedQueryString;
216 #endif // INCLUDE_CBE_FILTER_H_
void setQuery(std::string)
uint32_t getOffset() const
Get the Offset counter i.e. number of items to skip in the resultset returned.
void setByPassCache(bool)
void setItemOrder(CBE::FilterOrder order)
void setDataType(CBE::item_t)
Set the CBE::ItemType to filter on in the query.
CBE::FilterOrder getItemOrder() const
Get the Item CBE::FilterOrder.
std::string getQuery() const
Get the Query object Returns the query string that was set on the filter. I.e. key:value (name:*) wou...
bool getAscending() const
Use the Ascending sorting in the resultset. Returns the settings on how the data is sorted and displa...
void setContainerFirst(bool)
Sort any Containers on top before Objects.
CBE::item_t getDataType() const
Get the Data Type object I.E CBE::ItemType::Container, Object, Tag, ...
CBE::ContainerPtr container()
Returns the parent container / container that was queried, if it is in the cache. If not available,...
void setAscending(bool)
Set the sorting order for the resultset, true=ascending false=descending.
bool isJoinedResult() const
If a join resultset.
bool getByPassCache() const
Get the By Pass Cache seting.
bool getDeleted() const
Include any deleted objects.
uint32_t getCount() const
Get the Count object i.e. maximum number of items in the resultset. System has maximum limit of 1000 ...
bool getContainerFirst() const
Get the Container First filter order.
void setDeleted(bool)
Include any deleted objects.