public class SOLRAPIClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SOLRAPIClient.GetNodesMetaDataResponse |
static class |
SOLRAPIClient.GetNodesResponse |
static class |
SOLRAPIClient.GetTextContentResponse |
static class |
SOLRAPIClient.GetTransactionsResponse |
static class |
SOLRAPIClient.SolrApiContentStatus |
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
SOLRAPIClient(org.alfresco.httpclient.AlfrescoHttpClient repositoryHttpClient,
org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
AclChangeSets |
getAclChangeSets(Long fromCommitTime,
Long minAclChangeSetId,
Long toCommitTime,
Long maxAclChangeSetId,
int maxResults)
Get the ACL ChangeSets
|
List<AclReaders> |
getAclReaders(List<Acl> acls)
Get the ACL readers for a given list of ACLs
|
List<Acl> |
getAcls(List<AclChangeSet> aclChangeSets,
Long minAclId,
int maxResults)
Get the ACLs associated with a given list of ACL ChangeSets.
|
AlfrescoModel |
getModel(String coreName,
org.alfresco.service.namespace.QName modelName) |
List<AlfrescoModelDiff> |
getModelsDiff(String coreName,
List<AlfrescoModel> currentModels) |
List<Node> |
getNodes(GetNodesParameters parameters,
int maxResults) |
List<NodeMetaData> |
getNodesMetaData(NodeMetaDataParameters params,
int maxResults) |
SOLRAPIClient.GetTextContentResponse |
getTextContent(Long nodeId,
org.alfresco.service.namespace.QName propertyQName,
Long modifiedSince) |
Transactions |
getTransactions(Long fromCommitTime,
Long minTxnId,
Long toCommitTime,
Long maxTxnId,
int maxResults) |
Transactions |
getTransactions(Long fromCommitTime,
Long minTxnId,
Long toCommitTime,
Long maxTxnId,
int maxResults,
org.alfresco.repo.index.shard.ShardState shardState) |
public SOLRAPIClient(org.alfresco.httpclient.AlfrescoHttpClient repositoryHttpClient,
org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO)
public AclChangeSets getAclChangeSets(Long fromCommitTime, Long minAclChangeSetId, Long toCommitTime, Long maxAclChangeSetId, int maxResults) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
fromCommitTime - the lowest commit time (optional)minAclChangeSetId - the lowest ChangeSet ID (optional)maxResults - the maximum number of results (a reasonable value only)org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionpublic List<Acl> getAcls(List<AclChangeSet> aclChangeSets, Long minAclId, int maxResults) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
ACL ChangeSets.aclChangeSets - the ACL ChangeSets to includeminAclId - the lowest ACL ID (may be null)maxResults - the maximum number of results to retrieveorg.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionpublic List<AclReaders> getAclReaders(List<Acl> acls) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
acls - the ACLsorg.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionpublic Transactions getTransactions(Long fromCommitTime, Long minTxnId, Long toCommitTime, Long maxTxnId, int maxResults) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionpublic Transactions getTransactions(Long fromCommitTime, Long minTxnId, Long toCommitTime, Long maxTxnId, int maxResults, org.alfresco.repo.index.shard.ShardState shardState) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException, org.apache.commons.codec.EncoderException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionorg.apache.commons.codec.EncoderExceptionpublic List<Node> getNodes(GetNodesParameters parameters, int maxResults) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionpublic List<NodeMetaData> getNodesMetaData(NodeMetaDataParameters params, int maxResults) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionpublic SOLRAPIClient.GetTextContentResponse getTextContent(Long nodeId, org.alfresco.service.namespace.QName propertyQName, Long modifiedSince) throws org.alfresco.httpclient.AuthenticationException, IOException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionpublic AlfrescoModel getModel(String coreName, org.alfresco.service.namespace.QName modelName) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionpublic List<AlfrescoModelDiff> getModelsDiff(String coreName, List<AlfrescoModel> currentModels) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionpublic void close()
Copyright © 2005–2020 Alfresco Software. All rights reserved.