Package dev.array21.espocrm.types
Class Params
- java.lang.Object
-
- dev.array21.espocrm.types.Params
-
public class Params extends java.lang.ObjectQuery parameters for a GET request to EspoCRM
Refer to the EspoCRM documentation for more information- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description Params()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getBoolFilterList()Bool filters.java.lang.LonggetMaxSize()How much records to return.java.lang.LonggetOffset()An offset for pagination.OrdergetOrder()A direction of order: 'desc' or 'asc'.java.lang.StringgetOrderBy()An attribute to order by.java.lang.StringgetPrimaryFilter()A primary filter.java.lang.StringgetSelect()What record attributes to return.Where[]getWhere()Search criteria.ParamssetBoolFilterList(java.lang.String[] boolFilterList)Bool filters.ParamssetBoolFilterList(java.util.List<java.lang.String> boolFilterList)Bool filters.ParamssetMaxSize(long maxSize)How much records to return.ParamssetOffset(long offset)An offset for pagination.ParamssetOrder(Order order)A direction of order: 'desc' or 'asc'.ParamssetOrderBy(java.lang.String orderBy)An attribute to order by.ParamssetPrimaryFilter(java.lang.String primaryFilter)A primary filter.ParamssetSelect(java.lang.String select)What record attributes to return.ParamssetWhere(Where[] where)Search criteria.ParamssetWhere(java.util.List<Where> where)Search criteria.
-
-
-
Method Detail
-
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 java.lang.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 java.lang.Long getMaxSize()
How much records to return.- Returns:
- The maxSize
-
setSelect
public Params setSelect(java.lang.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 java.lang.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(java.lang.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 java.lang.String getPrimaryFilter()
A primary filter. Primary filters are usualy defined in Select Manager class.- Returns:
- Returns the primaryFilter
-
setOrderBy
public Params setOrderBy(java.lang.String orderBy)
An attribute to order by.- Parameters:
orderBy- The orderBy- Returns:
- Returns an instance of Params for easy chaining
-
getOrderBy
public java.lang.String getOrderBy()
An attribute to order by.- Returns:
- Returns the orderBy
-
setBoolFilterList
public Params setBoolFilterList(java.lang.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(java.util.List<java.lang.String> boolFilterList)
Bool filters. E.g. onlyMy, followed.- Parameters:
boolFilterList- The boolFilterList- Returns:
- Returns an instance of Params for easy chaining
-
getBoolFilterList
public java.lang.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:
Where
-
setWhere
public Params setWhere(java.util.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:
Where
-
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
-
-