public class FieldDefinitionsClientImpl extends ApiClient implements FieldDefinitionsClient
baseUrl, httpClient, httpRequestHandler, objectMapper| Constructor and Description |
|---|
FieldDefinitionsClientImpl(String baseUrl,
kong.unirest.UnirestInstance httpClient,
com.laserfiche.api.client.httphandlers.HttpRequestHandler httpRequestHandler) |
| Modifier and Type | Method and Description |
|---|---|
WFieldInfo |
getFieldDefinitionById(ParametersForGetFieldDefinitionById parameters)
- Returns a single field definition associated with the specified ID.
|
ODataValueContextOfIListOfWFieldInfo |
getFieldDefinitions(ParametersForGetFieldDefinitions parameters)
- Returns a paged listing of field definitions available in the specified repository.
- Useful when trying to find a list of all field definitions available, rather than only those assigned to a specific entry/template. - Default page size: 100. |
void |
getFieldDefinitionsForEach(Function<ODataValueContextOfIListOfWFieldInfo,Boolean> callback,
Integer maxPageSize,
ParametersForGetFieldDefinitions parameters)
Provides the functionality to iteratively (i.e.
|
ODataValueContextOfIListOfWFieldInfo |
getFieldDefinitionsNextLink(String nextLink,
int maxPageSize)
Returns the next subset of the requested collection, using a nextlink url.
|
public FieldDefinitionsClientImpl(String baseUrl, kong.unirest.UnirestInstance httpClient, com.laserfiche.api.client.httphandlers.HttpRequestHandler httpRequestHandler)
public WFieldInfo getFieldDefinitionById(ParametersForGetFieldDefinitionById parameters)
FieldDefinitionsClientgetFieldDefinitionById in interface FieldDefinitionsClientparameters - An object of type ParametersForGetFieldDefinitionById which encapsulates the parameters of getFieldDefinitionById method.WFieldInfo The return valuepublic ODataValueContextOfIListOfWFieldInfo getFieldDefinitions(ParametersForGetFieldDefinitions parameters)
FieldDefinitionsClientgetFieldDefinitions in interface FieldDefinitionsClientparameters - An object of type ParametersForGetFieldDefinitions which encapsulates the parameters of getFieldDefinitions method.ODataValueContextOfIListOfWFieldInfo The return valuepublic ODataValueContextOfIListOfWFieldInfo getFieldDefinitionsNextLink(String nextLink, int maxPageSize)
FieldDefinitionsClientgetFieldDefinitionsNextLink in interface FieldDefinitionsClientnextLink - A url that allows retrieving the next subset of the requested collection.maxPageSize - Optionally specify the maximum number of items to retrieve.ODataValueContextOfIListOfWFieldInfo The return valuepublic void getFieldDefinitionsForEach(Function<ODataValueContextOfIListOfWFieldInfo,Boolean> callback, Integer maxPageSize, ParametersForGetFieldDefinitions parameters)
FieldDefinitionsClientgetFieldDefinitions, and apply a function on the response of each iteration.getFieldDefinitionsForEach in interface FieldDefinitionsClientcallback - A delegate that will be called each time new data is retrieved. Returns false to stop receiving more data; returns true to be called again if there's more data.maxPageSize - Optionally specify the maximum number of items to retrieve.parameters - An object of type ParametersForGetFieldDefinitions which encapsulates the parameters of getFieldDefinitions method.Copyright © 2025. All rights reserved.