Package com.cbe
Class GroupFilter
- java.lang.Object
-
- com.cbe.GroupFilter
-
public class GroupFilter extends java.lang.Object
class GroupFilter, helper class for GroupQueries see API:s on groupManager.
-
-
Constructor Summary
Constructors Constructor Description GroupFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(GroupFilter filter)
boolean
getAscending()
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.boolean
getDeleted()
java.lang.String
getFilter()
FilterOrder
getGroupOrder()
Returns the order the query was sorted check enum FilterOrder to see options for sorting.long
getOffset()
Returns the offset that was used for the filter in the query.java.lang.String
getOrder()
get the filterorder as a string.boolean
getPublicFirst()
java.lang.String
getQuery()
Returns the query string that was set on the filter.boolean
matchesGroupId(long id)
boolean
matchesQuery(long parentId, int type, boolean isDeleted)
boolean
matchesQuery(Group group)
java.lang.String
order()
void
order(java.lang.String o)
void
setAscending(boolean arg0)
Sets the Order in which data should be displayed: Acending meaning alfabeticalvoid
setCount(long arg0)
Set the Number of items you want to get from a container.void
setDeleted(boolean arg0)
If you want to see deleted groups set deleted to true.void
setFilter(java.lang.String arg0)
Not fully tested but should be a regular expression.void
setGroupOrder(FilterOrder o)
Set the order of how data will be shown by the enum of FilterOrder ex: Titel first, published e.t.cvoid
setOffset(long arg0)
Set the offset for paging, offset is the item offset where to start your query.void
setQuery(java.lang.String arg0)
Set the query string, e.x: Name:* (would search for all objects with the metadata key of Name).void
updateCompareValue()
-
-
-
Method Detail
-
getQuery
public java.lang.String getQuery()
Returns the query string that was set on the filter. I.E key:value (name:*) would be an example.
-
getFilter
public java.lang.String getFilter()
-
getAscending
public boolean getAscending()
Returns the settings on how the data was sorted and displayed.
-
getDeleted
public boolean getDeleted()
-
getPublicFirst
public boolean getPublicFirst()
-
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
public java.lang.String getOrder()
get the filterorder as a string.
-
getGroupOrder
public FilterOrder getGroupOrder()
Returns the order the query was sorted check enum FilterOrder to see options for sorting.
-
setQuery
public void setQuery(java.lang.String arg0)
Set the query string, e.x: Name:* (would search for all objects with the metadata key of Name).
Note* if used with rootContainer id as the dataId to search in the whole account will be searched.
-
setFilter
public void setFilter(java.lang.String arg0)
Not fully tested but should be a regular expression.
-
setAscending
public void setAscending(boolean arg0)
Sets the Order in which data should be displayed: Acending meaning alfabetical
-
setDeleted
public void setDeleted(boolean arg0)
If you want to see deleted groups set deleted to true.
-
setOffset
public void setOffset(long arg0)
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've setOffest to 100 to get the next set.
-
setCount
public void setCount(long arg0)
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.
-
setGroupOrder
public void setGroupOrder(FilterOrder o)
Set the order of how data will be shown by the enum of FilterOrder ex: Titel first, published e.t.c
-
matchesGroupId
public boolean matchesGroupId(long id)
-
matchesQuery
public boolean matchesQuery(long parentId, int type, boolean isDeleted)
-
matchesQuery
public boolean matchesQuery(Group group)
-
equals
public boolean equals(GroupFilter filter)
-
updateCompareValue
public void updateCompareValue()
-
order
public java.lang.String order()
-
order
public void order(java.lang.String o)
-
-