public class RepositoryApiClientImpl extends Object implements RepositoryApiClient, AutoCloseable
| Modifier | Constructor and Description |
|---|---|
protected |
RepositoryApiClientImpl(String baseUrl,
com.laserfiche.api.client.httphandlers.HttpRequestHandler httpHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release the thread pool held by the underlying HTTP clients.
|
static RepositoryApiClient |
createFromAccessKey(String servicePrincipalKey,
com.laserfiche.api.client.model.AccessKey accessKey)
Creates a new Laserfiche repository client that will use Laserfiche Cloud OAuth client credentials to get access tokens.
|
static RepositoryApiClient |
createFromAccessKey(String servicePrincipalKey,
com.laserfiche.api.client.model.AccessKey accessKey,
String scope)
Creates a new Laserfiche repository client that will use Laserfiche Cloud OAuth client credentials to get access tokens.
|
static RepositoryApiClient |
createFromAccessKey(String servicePrincipalKey,
com.laserfiche.api.client.model.AccessKey accessKey,
String scope,
String baseUrlDebug)
Creates a new Laserfiche repository client that will use Laserfiche Cloud OAuth client credentials to get access tokens.
|
static RepositoryApiClient |
createFromUsernamePassword(String repositoryId,
String username,
String password,
String baseUrl)
Creates a new Laserfiche repository client that will use username and password to get access tokens for Laserfiche API.
|
AttributesClient |
getAttributesClient()
Returns the Laserfiche Repository Attributes API client.
|
AuditReasonsClient |
getAuditReasonsClient()
Returns the Laserfiche Repository Audit Reasons API client.
|
Map<String,String> |
getDefaultRequestHeaders()
Returns default request headers that will be used for all requests.
|
EntriesClient |
getEntriesClient()
Returns the Laserfiche Repository Entries API client.
|
FieldDefinitionsClient |
getFieldDefinitionsClient()
Returns the Laserfiche Repository Field Definitions API client.
|
LinkDefinitionsClient |
getLinkDefinitionsClient()
Returns the Laserfiche Repository Link Definitions API client.
|
RepositoriesClient |
getRepositoryClient()
Returns the Laserfiche Repository Repositories API client.
|
SearchesClient |
getSearchesClient()
Returns the Laserfiche Repository Searches API client.
|
SimpleSearchesClient |
getSimpleSearchesClient()
Returns the Laserfiche Repository Simple Searches API client.
|
TagDefinitionsClient |
getTagDefinitionsClient()
Returns the Laserfiche Repository Tag Definitions API client.
|
TasksClient |
getTasksClient()
Returns the Laserfiche Repository Tasks API client.
|
TemplateDefinitionsClient |
getTemplateDefinitionClient()
Returns the Laserfiche Repository Template Definitions API client.
|
void |
setDefaultRequestHeaders(Map<String,String> defaultRequestHeaders)
Set default headers that will be used for all requests.
|
protected RepositoryApiClientImpl(String baseUrl, com.laserfiche.api.client.httphandlers.HttpRequestHandler httpHandler)
public static RepositoryApiClient createFromAccessKey(String servicePrincipalKey, com.laserfiche.api.client.model.AccessKey accessKey, String scope, String baseUrlDebug)
servicePrincipalKey - The service principal key created for the service principal from the Laserfiche Account Administration.accessKey - The access key exported from the Laserfiche Developer Console.scope - The requested space-delimited scopes for the access token.baseUrlDebug - Optional override for the Laserfiche repository API base url.RepositoryApiClientpublic static RepositoryApiClient createFromAccessKey(String servicePrincipalKey, com.laserfiche.api.client.model.AccessKey accessKey, String scope)
servicePrincipalKey - The service principal key created for the service principal from the Laserfiche Account Administration.accessKey - The access key exported from the Laserfiche Developer Console.scope - The requested space-delimited scopes for the access token.RepositoryApiClientpublic static RepositoryApiClient createFromAccessKey(String servicePrincipalKey, com.laserfiche.api.client.model.AccessKey accessKey)
servicePrincipalKey - The service principal key created for the service principal from the Laserfiche Account Administration.accessKey - The access key exported from the Laserfiche Developer Console.RepositoryApiClientpublic static RepositoryApiClient createFromUsernamePassword(String repositoryId, String username, String password, String baseUrl)
repositoryId - The repository ID.username - The username.password - The password.baseUrl - API server base URL e.g., https://{APIServerName}/LFRepositoryAPI.RepositoryApiClientpublic void setDefaultRequestHeaders(Map<String,String> defaultRequestHeaders)
RepositoryApiClientsetDefaultRequestHeaders in interface RepositoryApiClientdefaultRequestHeaders - A key value pair of header name and value.public Map<String,String> getDefaultRequestHeaders()
RepositoryApiClientgetDefaultRequestHeaders in interface RepositoryApiClientpublic AttributesClient getAttributesClient()
RepositoryApiClientgetAttributesClient in interface RepositoryApiClientpublic AuditReasonsClient getAuditReasonsClient()
RepositoryApiClientgetAuditReasonsClient in interface RepositoryApiClientpublic EntriesClient getEntriesClient()
RepositoryApiClientgetEntriesClient in interface RepositoryApiClientpublic FieldDefinitionsClient getFieldDefinitionsClient()
RepositoryApiClientgetFieldDefinitionsClient in interface RepositoryApiClientpublic LinkDefinitionsClient getLinkDefinitionsClient()
RepositoryApiClientgetLinkDefinitionsClient in interface RepositoryApiClientpublic RepositoriesClient getRepositoryClient()
RepositoryApiClientgetRepositoryClient in interface RepositoryApiClientpublic SearchesClient getSearchesClient()
RepositoryApiClientgetSearchesClient in interface RepositoryApiClientpublic SimpleSearchesClient getSimpleSearchesClient()
RepositoryApiClientgetSimpleSearchesClient in interface RepositoryApiClientpublic TagDefinitionsClient getTagDefinitionsClient()
RepositoryApiClientgetTagDefinitionsClient in interface RepositoryApiClientpublic TasksClient getTasksClient()
RepositoryApiClientgetTasksClient in interface RepositoryApiClientpublic TemplateDefinitionsClient getTemplateDefinitionClient()
RepositoryApiClientgetTemplateDefinitionClient in interface RepositoryApiClientpublic void close()
close in interface RepositoryApiClientclose in interface AutoCloseableCopyright © 2025. All rights reserved.