Class BaseSelectRowsCommand<ResponseType extends CommandResponse>

java.lang.Object
org.labkey.remoteapi.Command<ResponseType>
org.labkey.remoteapi.PostCommand<ResponseType>
org.labkey.remoteapi.query.BaseQueryCommand<ResponseType>
org.labkey.remoteapi.query.BaseSelectRowsCommand<ResponseType>
All Implemented Interfaces:
HasRequiredVersion
Direct Known Subclasses:
NAbRunsCommand, SelectRowsCommand

public class BaseSelectRowsCommand<ResponseType extends CommandResponse> extends BaseQueryCommand<ResponseType>
  • Constructor Details

    • BaseSelectRowsCommand

      public BaseSelectRowsCommand(String controllerName, String actionName)
  • Method Details

    • getFilters

      public List<Filter> getFilters()
      Returns the current list of filters, or null if none are defined.
      Returns:
      The current list of filters.
    • setFilters

      public void setFilters(List<Filter> filters)
      Sets the current list of filters.
      Parameters:
      filters - The new list of filters.
    • addFilter

      public void addFilter(Filter filter)
      Adds a new filter to the list.
      Parameters:
      filter - The new filter definition.
    • addFilter

      public void addFilter(String columnName, Object value, Filter.Operator operator)
      Constructs and adds a new filter to the list. This is equivalent to addFilter(new Filter(columnName, value, operator))
      Parameters:
      columnName - The column name.
      value - The filter value.
      operator - The filter operator.
      See Also:
    • isIgnoreFilter

      public boolean isIgnoreFilter()
    • setIgnoreFilter

      public void setIgnoreFilter(boolean ignoreFilter)
      Pass true to ignore any filter that may be part of the chosen view. Defaults to false.
      Parameters:
      ignoreFilter - Set to 'true' to ignore the view filter.
    • getJsonObject

      public org.json.JSONObject getJsonObject()
      Description copied from class: PostCommand
      Returns the JSON object to post or null for no JSON. Override this method to provide parameters as JSON.
      Overrides:
      getJsonObject in class BaseQueryCommand<ResponseType extends CommandResponse>
      Returns:
      The JSON object to post.