public class LinkDefinitionsClientImpl extends ApiClient implements LinkDefinitionsClient
baseUrl, httpClient, httpRequestHandler, objectMapper| Constructor and Description |
|---|
LinkDefinitionsClientImpl(String baseUrl,
kong.unirest.UnirestInstance httpClient,
com.laserfiche.api.client.httphandlers.HttpRequestHandler httpRequestHandler) |
| Modifier and Type | Method and Description |
|---|---|
LinkDefinition |
getLinkDefinition(ParametersForGetLinkDefinition parameters)
- Returns a single link definition associated with the specified ID.
- Provide a link definition ID and get the associated link definition. |
LinkDefinitionCollectionResponse |
listLinkDefinitions(ParametersForListLinkDefinitions parameters)
- Returns the link definitions in the repository.
- Provide a repository ID and get a paged listing of link definitions available in the repository. |
void |
listLinkDefinitionsForEach(Function<LinkDefinitionCollectionResponse,Boolean> callback,
Integer maxPageSize,
ParametersForListLinkDefinitions parameters)
Provides the functionality to iteratively (i.e.
|
LinkDefinitionCollectionResponse |
listLinkDefinitionsNextLink(String nextLink,
int maxPageSize)
Returns the next subset of the requested collection, using a nextlink url.
|
public LinkDefinitionsClientImpl(String baseUrl, kong.unirest.UnirestInstance httpClient, com.laserfiche.api.client.httphandlers.HttpRequestHandler httpRequestHandler)
public LinkDefinitionCollectionResponse listLinkDefinitions(ParametersForListLinkDefinitions parameters)
LinkDefinitionsClientlistLinkDefinitions in interface LinkDefinitionsClientparameters - An object of type ParametersForListLinkDefinitions which encapsulates the parameters of listLinkDefinitions method.LinkDefinitionCollectionResponse The return valuepublic LinkDefinitionCollectionResponse listLinkDefinitionsNextLink(String nextLink, int maxPageSize)
LinkDefinitionsClientlistLinkDefinitionsNextLink in interface LinkDefinitionsClientnextLink - A url that allows retrieving the next subset of the requested collection.maxPageSize - Optionally specify the maximum number of items to retrieve.LinkDefinitionCollectionResponse The return valuepublic void listLinkDefinitionsForEach(Function<LinkDefinitionCollectionResponse,Boolean> callback, Integer maxPageSize, ParametersForListLinkDefinitions parameters)
LinkDefinitionsClientlistLinkDefinitions, and apply a function on the response of each iteration.listLinkDefinitionsForEach in interface LinkDefinitionsClientcallback - 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 ParametersForListLinkDefinitions which encapsulates the parameters of listLinkDefinitions method.public LinkDefinition getLinkDefinition(ParametersForGetLinkDefinition parameters)
LinkDefinitionsClientgetLinkDefinition in interface LinkDefinitionsClientparameters - An object of type ParametersForGetLinkDefinition which encapsulates the parameters of getLinkDefinition method.LinkDefinition The return valueCopyright © 2025. All rights reserved.