Package com.cbe

Class GroupFilter

java.lang.Object
com.cbe.GroupFilter

public class GroupFilter extends Object
To filter when searching a list of Group.
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • GroupFilter

      public GroupFilter(long cPtr, boolean cMemoryOwn)
    • GroupFilter

      public GroupFilter()
    • GroupFilter

      public GroupFilter(GroupFilter rh)
  • Method Details

    • getCPtr

      public static long getCPtr(GroupFilter obj)
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object
    • delete

      public void delete()
    • getQuery

      public String getQuery()
      Returns the query string that was set on the filter.
      E.g., name:Abc*
    • getFilter

      public String 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

      public 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 GroupFilter setQuery(String arg0)
      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

      public GroupFilter setFilter(String arg0)
      Not fully tested but should be a regular expression.
    • setAscending

      public GroupFilter setAscending(boolean arg0)
      Sets the Order in which data should be displayed, Acending meaning alfabetical order.
    • setDeleted

      public GroupFilter setDeleted(boolean arg0)
      If you want to see deleted groups set deleted to true.
    • setOffset

      public GroupFilter 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 have setOffest to 100 to get the next set.
    • setCount

      public GroupFilter 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.