public interface SOLRTrackingComponent
Modifier and Type | Interface and Description |
---|---|
static interface |
SOLRTrackingComponent.NodeMetaDataQueryCallback
The interface that will be used to give query results to the calling code.
|
static interface |
SOLRTrackingComponent.NodeQueryCallback
The interface that will be used to give query results to the calling code.
|
Modifier and Type | Method and Description |
---|---|
List<AclChangeSet> |
getAclChangeSets(Long minAclChangeSetId,
Long fromCommitTime,
Long maxAclChangeSetId,
Long toCommitTime,
int maxResults)
Get the ACL changesets for given range parameters
|
List<Acl> |
getAcls(List<Long> aclChangeSetIds,
Long minAclId,
int maxResults)
Get the ACLs with paging options for a specific ACL ChangeSet
|
List<AclReaders> |
getAclsReaders(List<Long> aclIds)
Get the ACL readers ("authorities who can read this ACL") for a given set of ACL IDs
|
long |
getCRC(Long nodeId)
Compute the CRC for the parent associations to this node that can cause its PATH to change
- primary & secondary associations and virtual associations from categories.
|
Long |
getMaxChangeSetCommitTime() |
Long |
getMaxChangeSetId() |
Long |
getMaxTxnCommitTime()
Get the last transaction timestamp from the repo
|
Long |
getMaxTxnId()
Get the last transaction id from the repo
|
AlfrescoModel |
getModel(org.alfresco.service.namespace.QName modelName)
Returns the Alfresco model given by the name modelName
|
List<AlfrescoModelDiff> |
getModelDiffs(Map<org.alfresco.service.namespace.QName,Long> models)
Returns a list of diffs representing differences between the current Repository models
and those passed in the models parameter.
|
void |
getNodes(NodeParameters nodeParameters,
SOLRTrackingComponent.NodeQueryCallback callback)
Get the nodes satisfying the constraints in nodeParameters
|
void |
getNodesMetadata(NodeMetaDataParameters nodeMetaDataParameters,
MetaDataResultsFilter resultFilter,
SOLRTrackingComponent.NodeMetaDataQueryCallback callback)
Returns metadata for a set of node ids
|
ShardRegistry |
getShardRegistry()
Get the shard registry
|
List<Transaction> |
getTransactions(Long minTxnId,
Long fromCommitTime,
Long maxTxnId,
Long toCommitTimeint,
int maxResults)
Get the transactions from either minTxnId or fromCommitTime, optionally limited to maxResults
|
boolean |
isEnabled() |
void |
registerShardState(org.alfresco.repo.index.shard.ShardState shardState)
Register and update a shard state
|
void |
setEnabled(boolean enabled) |
List<AclChangeSet> getAclChangeSets(Long minAclChangeSetId, Long fromCommitTime, Long maxAclChangeSetId, Long toCommitTime, int maxResults)
minAclChangeSetId
- minimum ACL changeset ID - (inclusive and optional)fromCommitTime
- minimum ACL commit time - (inclusive and optional)maxAclChangeSetId
- max ACL changeset ID - (exclusive and optional)toCommitTime
- max ACL commit time - (exclusive and optional)maxResults
- limit the results. 0 or Integer.MAX_VALUE does not limit the resultsList<Acl> getAcls(List<Long> aclChangeSetIds, Long minAclId, int maxResults)
aclChangeSetIds
- the ACL ChangeSet IDsminAclId
- the minimum ACL ID - (inclusive and optional).maxResults
- the maximum number of results (must be greater than zero and less than MAX)List<AclReaders> getAclsReaders(List<Long> aclIds)
aclIds
- the ACL IDsList<Transaction> getTransactions(Long minTxnId, Long fromCommitTime, Long maxTxnId, Long toCommitTimeint, int maxResults)
minTxnId
- greater than or equal to minTxnIdfromCommitTime
- greater than or equal to transaction commit timemaxTxnId
- less than maxTxnIdtoCommitTimeint
- less then toCommitTimeintmaxResults
- limit the results. 0 or Integer.MAX_VALUE does not limit the resultsvoid getNodes(NodeParameters nodeParameters, SOLRTrackingComponent.NodeQueryCallback callback)
nodeParameters
- set of constraints for which nodes to returncallback
- a callback to receive the resultsvoid getNodesMetadata(NodeMetaDataParameters nodeMetaDataParameters, MetaDataResultsFilter resultFilter, SOLRTrackingComponent.NodeMetaDataQueryCallback callback)
nodeMetaDataParameters
- NodeMetaDataParametersresultFilter
- MetaDataResultsFiltercallback
- a callback to receive the resultsAlfrescoModel getModel(org.alfresco.service.namespace.QName modelName)
modelName
- the name of the modelList<AlfrescoModelDiff> getModelDiffs(Map<org.alfresco.service.namespace.QName,Long> models)
models
- a set of mappings of model names to checksumsboolean isEnabled()
void setEnabled(boolean enabled)
enabled
- booleanLong getMaxTxnCommitTime()
Long getMaxTxnId()
Long getMaxChangeSetCommitTime()
Long getMaxChangeSetId()
void registerShardState(org.alfresco.repo.index.shard.ShardState shardState)
shardState
- ShardRegistry getShardRegistry()
long getCRC(Long nodeId)
nodeId
- Copyright © 2005–2017 Alfresco Software. All rights reserved.