Package org.alfresco.repo.solr
Class SOLRTrackingComponentImpl
java.lang.Object
org.alfresco.repo.solr.SOLRTrackingComponentImpl
- All Implemented Interfaces:
SearchTrackingComponent
Component providing data for SOLR tracking
- Since:
- 4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classClass that passes results from a result entity into the client callbackprotected classClass that passes results from a result entity into the client callbackNested classes/interfaces inherited from interface org.alfresco.repo.search.SearchTrackingComponent
SearchTrackingComponent.NodeMetaDataQueryCallback, SearchTrackingComponent.NodeQueryCallback -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NodeRefconvertVersionNodeRefToVersionedNodeRef(NodeRef versionNodeRef) getAclChangeSets(Long minAclChangeSetId, Long fromCommitTime, Long maxAclChangeSetId, Long toCommitTime, int maxResults) Get the ACL changesets for given range parametersGet the ACLs with paging options for a specific ACL ChangeSetgetAclsReaders(List<Long> aclIds) Get the ACL readers ("authorities who can read this ACL") for a given set of ACL IDslongCompute the CRC for the parent associations to this node that can cause its PATH to change - primary & secondary associations and virtual associations from categories.Get the last transaction timestamp from the repoGet the last transaction id from the repoReturns the Alfresco model given by the name modelNamegetModelDiffs(Map<QName, Long> models) Returns a list of diffs representing differences between the current Repository models and those passed in the models parameter.voidgetNodes(NodeParameters nodeParameters, SearchTrackingComponent.NodeQueryCallback callback) Get the nodes satisfying the constraints in nodeParametersvoidgetNodesMetadata(NodeMetaDataParameters nodeMetaDataParameters, MetaDataResultsFilter resultFilter, SearchTrackingComponent.NodeMetaDataQueryCallback callback) Returns metadata for a set of node idsprotected Map<QName,Serializable> getProperties(Long nodeId) Get properties that we want to be indexed.Get the shard registrygetTransactions(Long minTxnId, Long fromCommitTime, Long maxTxnId, Long toCommitTime, int maxResults) Get the transactions from either minTxnId or fromCommitTime, optionally limited to maxResultsvoidinit()InitializebooleanvoidregisterShardState(ShardState shardState) Register and update a shard statevoidvoidsetAspectIndexFilter(AspectIndexFilter aspectIndexFilter) voidsetCacheAncestors(boolean cacheAncestors) voidsetDictionaryDAO(DictionaryDAO dictionaryDAO) voidsetDictionaryService(DictionaryService dictionaryService) voidsetEnabled(boolean enabled) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeDAO(NodeDAO nodeDAO) voidsetOwnableService(OwnableService ownableService) voidsetPermissionService(PermissionService permissionService) voidsetQnameDAO(QNameDAO qnameDAO) voidsetSearchDAO(SearchDAO searchDAO) voidsetShardRegistry(ShardRegistry shardRegistry) voidsetTenantService(TenantService tenantService) voidsetTypeIndexFilter(TypeIndexFilter typeIndexFilter)
-
Constructor Details
-
SOLRTrackingComponentImpl
public SOLRTrackingComponentImpl()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceSearchTrackingComponent- Returns:
- boolean
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceSearchTrackingComponent- Parameters:
enabled- boolean
-
setCacheAncestors
public void setCacheAncestors(boolean cacheAncestors) - Parameters:
cacheAncestors- the cacheAncestors to set
-
setSearchDAO
-
setNodeDAO
-
setQnameDAO
-
setPermissionService
-
setOwnableService
-
setTenantService
-
setDictionaryService
-
setAclDAO
-
setDictionaryDAO
-
setTypeIndexFilter
-
setAspectIndexFilter
-
setShardRegistry
-
setNamespaceService
-
init
public void init()Initialize -
getAclChangeSets
public List<AclChangeSet> getAclChangeSets(Long minAclChangeSetId, Long fromCommitTime, Long maxAclChangeSetId, Long toCommitTime, int maxResults) Description copied from interface:SearchTrackingComponentGet the ACL changesets for given range parameters- Specified by:
getAclChangeSetsin interfaceSearchTrackingComponent- Parameters:
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 results- Returns:
- list of ACL changesets
-
getAcls
Description copied from interface:SearchTrackingComponentGet the ACLs with paging options for a specific ACL ChangeSet- Specified by:
getAclsin interfaceSearchTrackingComponent- Parameters:
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)- Returns:
- list of ACLs
-
getAclsReaders
Description copied from interface:SearchTrackingComponentGet the ACL readers ("authorities who can read this ACL") for a given set of ACL IDs- Specified by:
getAclsReadersin interfaceSearchTrackingComponent- Parameters:
aclIds- the ACL IDs- Returns:
- Returns the list of ACL readers (includes original ACL IDs)
-
getTransactions
public List<Transaction> getTransactions(Long minTxnId, Long fromCommitTime, Long maxTxnId, Long toCommitTime, int maxResults) Description copied from interface:SearchTrackingComponentGet the transactions from either minTxnId or fromCommitTime, optionally limited to maxResults- Specified by:
getTransactionsin interfaceSearchTrackingComponent- Parameters:
minTxnId- greater than or equal to minTxnIdfromCommitTime- greater than or equal to transaction commit timemaxTxnId- less than maxTxnIdtoCommitTime- less then toCommitTimeintmaxResults- limit the results. 0 or Integer.MAX_VALUE does not limit the results- Returns:
- list of transactions
-
getNodes
public void getNodes(NodeParameters nodeParameters, SearchTrackingComponent.NodeQueryCallback callback) Get the nodes satisfying the constraints in nodeParameters- Specified by:
getNodesin interfaceSearchTrackingComponent- Parameters:
nodeParameters- set of constraints for which nodes to returncallback- a callback to receive the results
-
getProperties
Get properties that we want to be indexed. -
getCRC
Description copied from interface:SearchTrackingComponentCompute the CRC for the parent associations to this node that can cause its PATH to change - primary & secondary associations and virtual associations from categories.- Specified by:
getCRCin interfaceSearchTrackingComponent- Returns:
-
getNodesMetadata
public void getNodesMetadata(NodeMetaDataParameters nodeMetaDataParameters, MetaDataResultsFilter resultFilter, SearchTrackingComponent.NodeMetaDataQueryCallback callback) Returns metadata for a set of node ids- Specified by:
getNodesMetadatain interfaceSearchTrackingComponent- Parameters:
nodeMetaDataParameters- NodeMetaDataParametersresultFilter- MetaDataResultsFiltercallback- a callback to receive the results
-
convertVersionNodeRefToVersionedNodeRef
-
getModel
Returns the Alfresco model given by the name modelName- Specified by:
getModelin interfaceSearchTrackingComponent- Parameters:
modelName- the name of the model- Returns:
- the model plus a checksum
-
getModelDiffs
Returns a list of diffs representing differences between the current Repository models and those passed in the models parameter.- Specified by:
getModelDiffsin interfaceSearchTrackingComponent- Parameters:
models- a set of mappings of model names to checksums- Returns:
- a list of diffs between those in the repository and those passed in the models parameter
-
getMaxTxnCommitTime
Description copied from interface:SearchTrackingComponentGet the last transaction timestamp from the repo- Specified by:
getMaxTxnCommitTimein interfaceSearchTrackingComponent- Returns:
- Long
-
getMaxTxnId
Description copied from interface:SearchTrackingComponentGet the last transaction id from the repo- Specified by:
getMaxTxnIdin interfaceSearchTrackingComponent- Returns:
- Long
-
getMaxChangeSetCommitTime
- Specified by:
getMaxChangeSetCommitTimein interfaceSearchTrackingComponent- Returns:
- Long
-
getMaxChangeSetId
- Specified by:
getMaxChangeSetIdin interfaceSearchTrackingComponent- Returns:
- Long
-
registerShardState
Description copied from interface:SearchTrackingComponentRegister and update a shard state- Specified by:
registerShardStatein interfaceSearchTrackingComponent
-
getShardRegistry
Description copied from interface:SearchTrackingComponentGet the shard registry- Specified by:
getShardRegistryin interfaceSearchTrackingComponent- Returns:
- the shard registry or null if one is not registered. This is an optional feature.
-