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 |
|---|---|
FieldDefinition |
getFieldDefinition(ParametersForGetFieldDefinition parameters)
- Returns a single field definition associated with the specified ID.
|
FieldDefinitionCollectionResponse |
listFieldDefinitions(ParametersForListFieldDefinitions 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 |
listFieldDefinitionsForEach(Function<FieldDefinitionCollectionResponse,Boolean> callback,
Integer maxPageSize,
ParametersForListFieldDefinitions parameters)
Provides the functionality to iteratively (i.e.
|
FieldDefinitionCollectionResponse |
listFieldDefinitionsNextLink(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 FieldDefinitionCollectionResponse listFieldDefinitions(ParametersForListFieldDefinitions parameters)
FieldDefinitionsClientlistFieldDefinitions in interface FieldDefinitionsClientparameters - An object of type ParametersForListFieldDefinitions which encapsulates the parameters of listFieldDefinitions method.FieldDefinitionCollectionResponse The return valuepublic FieldDefinitionCollectionResponse listFieldDefinitionsNextLink(String nextLink, int maxPageSize)
FieldDefinitionsClientlistFieldDefinitionsNextLink 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.FieldDefinitionCollectionResponse The return valuepublic void listFieldDefinitionsForEach(Function<FieldDefinitionCollectionResponse,Boolean> callback, Integer maxPageSize, ParametersForListFieldDefinitions parameters)
FieldDefinitionsClientlistFieldDefinitions, and apply a function on the response of each iteration.listFieldDefinitionsForEach 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 ParametersForListFieldDefinitions which encapsulates the parameters of listFieldDefinitions method.public FieldDefinition getFieldDefinition(ParametersForGetFieldDefinition parameters)
FieldDefinitionsClientgetFieldDefinition in interface FieldDefinitionsClientparameters - An object of type ParametersForGetFieldDefinition which encapsulates the parameters of getFieldDefinition method.FieldDefinition The return valueCopyright © 2025. All rights reserved.