public class AttributesClientImpl extends ApiClient implements AttributesClient
baseUrl, httpClient, httpRequestHandler, objectMapper| Constructor and Description |
|---|
AttributesClientImpl(String baseUrl,
kong.unirest.UnirestInstance httpClient,
com.laserfiche.api.client.httphandlers.HttpRequestHandler httpRequestHandler) |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttribute(ParametersForGetAttribute parameters)
- Returns the attribute associated with the key.
|
AttributeCollectionResponse |
listAttributes(ParametersForListAttributes parameters)
- Returns the attribute key value pairs associated with the authenticated user.
|
void |
listAttributesForEach(Function<AttributeCollectionResponse,Boolean> callback,
Integer maxPageSize,
ParametersForListAttributes parameters)
Provides the functionality to iteratively (i.e.
|
AttributeCollectionResponse |
listAttributesNextLink(String nextLink,
int maxPageSize)
Returns the next subset of the requested collection, using a nextlink url.
|
public AttributesClientImpl(String baseUrl, kong.unirest.UnirestInstance httpClient, com.laserfiche.api.client.httphandlers.HttpRequestHandler httpRequestHandler)
public AttributeCollectionResponse listAttributes(ParametersForListAttributes parameters)
AttributesClientlistAttributes in interface AttributesClientparameters - An object of type ParametersForListAttributes which encapsulates the parameters of listAttributes method.AttributeCollectionResponse The return valuepublic AttributeCollectionResponse listAttributesNextLink(String nextLink, int maxPageSize)
AttributesClientlistAttributesNextLink in interface AttributesClientnextLink - A url that allows retrieving the next subset of the requested collection.maxPageSize - Optionally specify the maximum number of items to retrieve.AttributeCollectionResponse The return valuepublic void listAttributesForEach(Function<AttributeCollectionResponse,Boolean> callback, Integer maxPageSize, ParametersForListAttributes parameters)
AttributesClientlistAttributes, and apply a function on the response of each iteration.listAttributesForEach in interface AttributesClientcallback - 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 ParametersForListAttributes which encapsulates the parameters of listAttributes method.public Attribute getAttribute(ParametersForGetAttribute parameters)
AttributesClientgetAttribute in interface AttributesClientparameters - An object of type ParametersForGetAttribute which encapsulates the parameters of getAttribute method.Attribute The return valueCopyright © 2025. All rights reserved.