Package com.cbe
Class GroupFilter
java.lang.Object
com.cbe.GroupFilter
To filter when searching a list of Group.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
void
finalize()
boolean
Returns the settings on how the data was sorted and displayed.long
getCount()
Returns the value of the count that was set for the query.static long
getCPtr
(GroupFilter obj) boolean
If deleted objects in the bin are included.The filter in question.Returns the order the query was sorted check enum FilterOrder to see options for sorting.long
Returns the offset that was used for the filter in the query.getOrder()
get the filterorder as a string.boolean
If public groups should be sorted before private.getQuery()
Returns the query string that was set on the filter.setAscending
(boolean arg0) Sets the Order in which data should be displayed, Acending meaning alfabetical order.setCount
(long arg0) Set the Number of items you want to get from a container.setDeleted
(boolean arg0) If you want to see deleted groups set deleted to true.Not fully tested but should be a regular expression.setOffset
(long arg0) Set the offset for paging, offset is the item offset where to start your query.Set the query string.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
GroupFilter
public GroupFilter(long cPtr, boolean cMemoryOwn) -
GroupFilter
public GroupFilter() -
GroupFilter
-
-
Method Details
-
getCPtr
-
finalize
public void finalize() -
delete
public void delete() -
getQuery
Returns the query string that was set on the filter.
E.g., name:Abc* -
getFilter
The filter in question. -
getAscending
public boolean getAscending()Returns the settings on how the data was sorted and displayed. -
getDeleted
public boolean getDeleted()If deleted objects in the bin are included. -
getPublicFirst
public boolean getPublicFirst()If public groups should be sorted before private. -
getOffset
public long getOffset()Returns the offset that was used for the filter in the query. -
getCount
public long getCount()Returns the value of the count that was set for the query. -
getOrder
get the filterorder as a string. -
getGroupOrder
Returns the order the query was sorted check enum FilterOrder to see options for sorting. -
setQuery
Set 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. -
setFilter
Not fully tested but should be a regular expression. -
setAscending
Sets the Order in which data should be displayed, Acending meaning alfabetical order. -
setDeleted
If you want to see deleted groups set deleted to true. -
setOffset
Set 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. -
setCount
Set 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.
-