public class SOLRAPIQueueClient extends SOLRAPIClient
SOLRAPIClient.GetNodesMetaDataResponse, SOLRAPIClient.GetNodesResponse, SOLRAPIClient.GetTextContentResponse, SOLRAPIClient.GetTransactionsResponse, SOLRAPIClient.SolrApiContentStatus
Modifier and Type | Field and Description |
---|---|
static List<AclChangeSet> |
aclChangeSetQueue |
static Map<Long,List<Acl>> |
aclMap |
static Map<Long,AclReaders> |
aclReadersMap |
static Map<Long,String> |
nodeContentMap |
static Map<Long,List<Node>> |
nodeMap |
static Map<Long,NodeMetaData> |
nodeMetaDataMap |
static List<Transaction> |
transactionQueue |
log
Constructor and Description |
---|
SOLRAPIQueueClient(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.
|
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) |
static void |
setThrowException(boolean _throwException) |
getModel
public static List<AclChangeSet> aclChangeSetQueue
public static Map<Long,AclReaders> aclReadersMap
public static List<Transaction> transactionQueue
public static Map<Long,NodeMetaData> nodeMetaDataMap
public SOLRAPIQueueClient(org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO)
public static void setThrowException(boolean _throwException)
public AclChangeSets getAclChangeSets(Long fromCommitTime, Long minAclChangeSetId, Long toCommitTime, Long maxAclChangeSetId, int maxResults) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
SOLRAPIClient
getAclChangeSets
in class SOLRAPIClient
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.AuthenticationException
IOException
org.json.JSONException
public List<Acl> getAcls(List<AclChangeSet> aclChangeSets, Long minAclId, int maxResults) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
ACL ChangeSets
.getAcls
in class SOLRAPIClient
aclChangeSets
- the ACL ChangeSets to includeminAclId
- the lowest ACL ID (may be null)maxResults
- the maximum number of results to retrieveorg.alfresco.httpclient.AuthenticationException
IOException
org.json.JSONException
public List<AclReaders> getAclReaders(List<Acl> acls) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
getAclReaders
in class SOLRAPIClient
acls
- the ACLsorg.alfresco.httpclient.AuthenticationException
IOException
org.json.JSONException
public List<AlfrescoModelDiff> getModelsDiff(String coreName, List<AlfrescoModel> currentModels) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
getModelsDiff
in class SOLRAPIClient
org.alfresco.httpclient.AuthenticationException
IOException
org.json.JSONException
public Transactions getTransactions(Long fromCommitTime, Long minTxnId, Long toCommitTime, Long maxTxnId, int maxResults) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
getTransactions
in class SOLRAPIClient
org.alfresco.httpclient.AuthenticationException
IOException
org.json.JSONException
public 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
getTransactions
in class SOLRAPIClient
org.alfresco.httpclient.AuthenticationException
IOException
org.json.JSONException
org.apache.commons.codec.EncoderException
public List<Node> getNodes(GetNodesParameters parameters, int maxResults) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
getNodes
in class SOLRAPIClient
org.alfresco.httpclient.AuthenticationException
IOException
org.json.JSONException
public List<NodeMetaData> getNodesMetaData(NodeMetaDataParameters params, int maxResults) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
getNodesMetaData
in class SOLRAPIClient
org.alfresco.httpclient.AuthenticationException
IOException
org.json.JSONException
public SOLRAPIClient.GetTextContentResponse getTextContent(Long nodeId, org.alfresco.service.namespace.QName propertyQName, Long modifiedSince) throws org.alfresco.httpclient.AuthenticationException, IOException
getTextContent
in class SOLRAPIClient
org.alfresco.httpclient.AuthenticationException
IOException
public void close()
close
in class SOLRAPIClient
Copyright © 2005–2019 Alfresco Software. All rights reserved.