Class Params

java.lang.Object
dev.array21.espocrm.types.Params

public class Params extends Object
Query parameters for a GET request to EspoCRM
Refer to the EspoCRM documentation for more information
Since:
1.0.0
  • Constructor Details

    • Params

      public Params()
  • Method Details

    • setOffset

      public Params setOffset(long offset)
      An offset for pagination.
      Parameters:
      offset - The offset
      Returns:
      Returns an instance of Params for easy chaining
    • getOffset

      public Long getOffset()
      An offset for pagination.
      Returns:
      Returns the offset
    • setMaxSize

      public Params setMaxSize(long maxSize)
      How much records to return.
      Parameters:
      maxSize - The maxSize
      Returns:
      Returns an instance of Params for easy chaining
    • getMaxSize

      public Long getMaxSize()
      How much records to return.
      Returns:
      The maxSize
    • setSelect

      public Params setSelect(String select)
      What record attributes to return. Separated by comma. Whitespaces are not allowed. Specify only attributes that you need, it can improve performance.

      Example:
      id,name,status,assignedUserId
      Parameters:
      select - The select parameters
      Returns:
      Returns an instance of Params for easy chaining
    • getSelect

      public String getSelect()
      What record attributes to return. Separated by comma. Whitespaces are not allowed. Specify only attributes that you need, it can improve performance.

      Example:
      id,name,status,assignedUserId
      Returns:
      Returns the select String
    • setPrimaryFilter

      public Params setPrimaryFilter(String primaryFilter)
      A primary filter. Primary filters are usualy defined in Select Manager class.
      Parameters:
      primaryFilter - The primaryFilter
      Returns:
      Returns an instance of Params for easy chaining
    • getPrimaryFilter

      public String getPrimaryFilter()
      A primary filter. Primary filters are usualy defined in Select Manager class.
      Returns:
      Returns the primaryFilter
    • setOrderBy

      public Params setOrderBy(String orderBy)
      An attribute to order by.
      Parameters:
      orderBy - The orderBy
      Returns:
      Returns an instance of Params for easy chaining
    • getOrderBy

      public String getOrderBy()
      An attribute to order by.
      Returns:
      Returns the orderBy
    • setBoolFilterList

      public Params setBoolFilterList(String[] boolFilterList)
      Bool filters. E.g. onlyMy, followed.
      Parameters:
      boolFilterList - The boolFilterList
      Returns:
      Returns an instance of Params for easy chaining
    • setBoolFilterList

      public Params setBoolFilterList(List<String> boolFilterList)
      Bool filters. E.g. onlyMy, followed.
      Parameters:
      boolFilterList - The boolFilterList
      Returns:
      Returns an instance of Params for easy chaining
    • getBoolFilterList

      public String[] getBoolFilterList()
      Bool filters. E.g. onlyMy, followed.
      Returns:
      Returns the boolFilterList
    • setWhere

      public Params setWhere(Where[] where)
      Search criteria. Can contain nested arrays and objects.
      Parameters:
      where - The where
      Returns:
      Returns an instance of Params for easy chaining
      See Also:
    • setWhere

      public Params setWhere(List<Where> where)
      Search criteria. Can contain nested arrays and objects.
      Parameters:
      where - The where
      Returns:
      Returns an instance of Params for easy chaining
      See Also:
    • getWhere

      public Where[] getWhere()
      Search criteria. Can contain nested arrays and objects
      Returns:
      Returns the where
    • setOrder

      public Params setOrder(Order order)
      A direction of order: 'desc' or 'asc'.
      Parameters:
      order - The order
      Returns:
      Returns an instance of Params for easy chaining
    • getOrder

      public Order getOrder()
      A direction of order: 'desc' or 'asc'.
      Returns:
      Returns the order