CBEGroupFilter
Introductionto filter when searching a list of Group. Methods
getAscending-(bool) getAscending; DiscussionReturns the settings on how the data was sorted and displayed. getCount-(uint32_t) getCount; DiscussionReturns the value of the count that was set for the query. getDeleted-(bool) getDeleted; DiscussionIf deleted objects in the bin are included. getOffset-(uint32_t) getOffset; DiscussionReturns the offset that was used for the filter in the query. getQuery-(NSString*) getQuery; DiscussionReturns the query string that was set on the filter. E.g., name:Abc* setAscending:-(void) setAscending:(bool)ascending; DiscussionSets the Order in which data should be displayed: Acending meaning alfabetical setCount:-(void) setCount:(uint32_t)count; DiscussionSet the Number of items you want to get from a container. So if a container has 50 items but you only want the 10 first in ascending order then set ascending to true and setCount to 10. setDeleted:-(void) setDeleted:(bool)deleted; DiscussionIf you want to see deleted groups set deleted to true. setFilter:-(void) setFilter:(NSString*)filter; DiscussionNot fully tested but should be a regular expression. setOffset:-(void) setOffset:(uint32_t)offset; DiscussionSet the offset for paging, offset is the item offset where to start your query. i.e: There is already a query of the first 99 items and to get the rest you have setOffest to 100 to get the next set. setQuery:-(void) setQuery:(NSString*)query; DiscussionSet the query string, e.g: Name:* (would search for all objects with the metadata key of Name). \note If used with rootContainer id as the dataId, search in the whole account will be done. |