Package dev.array21.espocrm.types
Class Params
java.lang.Object
dev.array21.espocrm.types.Params
Query parameters for a GET request to EspoCRM
Refer to the EspoCRM documentation for more information
Refer to the EspoCRM documentation for more information
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Bool filters.How much records to return.An offset for pagination.getOrder()A direction of order: 'desc' or 'asc'.An attribute to order by.A primary filter.What record attributes to return.Where[]getWhere()Search criteria.setBoolFilterList(String[] boolFilterList) Bool filters.setBoolFilterList(List<String> boolFilterList) Bool filters.setMaxSize(long maxSize) How much records to return.setOffset(long offset) An offset for pagination.A direction of order: 'desc' or 'asc'.setOrderBy(String orderBy) An attribute to order by.setPrimaryFilter(String primaryFilter) A primary filter.What record attributes to return.Search criteria.Search criteria.
-
Constructor Details
-
Params
public Params()
-
-
Method Details
-
setOffset
An offset for pagination.- Parameters:
offset- The offset- Returns:
- Returns an instance of Params for easy chaining
-
getOffset
An offset for pagination.- Returns:
- Returns the offset
-
setMaxSize
How much records to return.- Parameters:
maxSize- The maxSize- Returns:
- Returns an instance of Params for easy chaining
-
getMaxSize
How much records to return.- Returns:
- The maxSize
-
setSelect
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
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
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
A primary filter. Primary filters are usualy defined in Select Manager class.- Returns:
- Returns the primaryFilter
-
setOrderBy
An attribute to order by.- Parameters:
orderBy- The orderBy- Returns:
- Returns an instance of Params for easy chaining
-
getOrderBy
An attribute to order by.- Returns:
- Returns the orderBy
-
setBoolFilterList
Bool filters. E.g. onlyMy, followed.- Parameters:
boolFilterList- The boolFilterList- Returns:
- Returns an instance of Params for easy chaining
-
setBoolFilterList
Bool filters. E.g. onlyMy, followed.- Parameters:
boolFilterList- The boolFilterList- Returns:
- Returns an instance of Params for easy chaining
-
getBoolFilterList
Bool filters. E.g. onlyMy, followed.- Returns:
- Returns the boolFilterList
-
setWhere
Search criteria. Can contain nested arrays and objects.- Parameters:
where- The where- Returns:
- Returns an instance of Params for easy chaining
- See Also:
-
setWhere
Search criteria. Can contain nested arrays and objects.- Parameters:
where- The where- Returns:
- Returns an instance of Params for easy chaining
- See Also:
-
getWhere
Search criteria. Can contain nested arrays and objects- Returns:
- Returns the where
-
setOrder
A direction of order: 'desc' or 'asc'.- Parameters:
order- The order- Returns:
- Returns an instance of Params for easy chaining
-
getOrder
A direction of order: 'desc' or 'asc'.- Returns:
- Returns the order
-