public class SOLRTrackingComponentImpl extends Object implements SOLRTrackingComponent
Modifier and Type | Class and Description |
---|---|
protected class |
SOLRTrackingComponentImpl.NodeMetaDataQueryRowHandler
Class that passes results from a result entity into the client callback
|
protected class |
SOLRTrackingComponentImpl.NodeQueryRowHandler
Class that passes results from a result entity into the client callback
|
SOLRTrackingComponent.NodeMetaDataQueryCallback, SOLRTrackingComponent.NodeQueryCallback
Constructor and Description |
---|
SOLRTrackingComponentImpl() |
Modifier and Type | Method and Description |
---|---|
protected org.alfresco.service.cmr.repository.NodeRef |
convertVersionNodeRefToVersionedNodeRef(org.alfresco.service.cmr.repository.NodeRef versionNodeRef) |
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
|
protected Map<org.alfresco.service.namespace.QName,Serializable> |
getProperties(Long nodeId) |
ShardRegistry |
getShardRegistry()
Get the shard registry
|
List<Transaction> |
getTransactions(Long minTxnId,
Long fromCommitTime,
Long maxTxnId,
Long toCommitTime,
int maxResults)
Get the transactions from either minTxnId or fromCommitTime, optionally limited to maxResults
|
void |
init()
Initialize
|
boolean |
isEnabled() |
void |
registerShardState(org.alfresco.repo.index.shard.ShardState shardState)
Register and update a shard state
|
void |
setAclDAO(AclDAO aclDAO) |
void |
setAspectIndexFilter(AspectIndexFilter aspectIndexFilter) |
void |
setCacheAncestors(boolean cacheAncestors) |
void |
setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setEnabled(boolean enabled) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeDAO(NodeDAO nodeDAO) |
void |
setOwnableService(OwnableService ownableService) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setShardRegistry(ShardRegistry shardRegistry) |
void |
setSolrDAO(SOLRDAO solrDAO) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
void |
setTypeIndexFilter(TypeIndexFilter typeIndexFilter) |
public boolean isEnabled()
isEnabled
in interface SOLRTrackingComponent
public void setEnabled(boolean enabled)
setEnabled
in interface SOLRTrackingComponent
enabled
- booleanpublic void setCacheAncestors(boolean cacheAncestors)
cacheAncestors
- the cacheAncestors to setpublic void setSolrDAO(SOLRDAO solrDAO)
public void setNodeDAO(NodeDAO nodeDAO)
public void setQnameDAO(QNameDAO qnameDAO)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setOwnableService(OwnableService ownableService)
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setAclDAO(AclDAO aclDAO)
public void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
public void setTypeIndexFilter(TypeIndexFilter typeIndexFilter)
public void setAspectIndexFilter(AspectIndexFilter aspectIndexFilter)
public void setShardRegistry(ShardRegistry shardRegistry)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void init()
public List<AclChangeSet> getAclChangeSets(Long minAclChangeSetId, Long fromCommitTime, Long maxAclChangeSetId, Long toCommitTime, int maxResults)
SOLRTrackingComponent
getAclChangeSets
in interface SOLRTrackingComponent
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 resultspublic List<Acl> getAcls(List<Long> aclChangeSetIds, Long minAclId, int maxResults)
SOLRTrackingComponent
getAcls
in interface SOLRTrackingComponent
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)public List<AclReaders> getAclsReaders(List<Long> aclIds)
SOLRTrackingComponent
getAclsReaders
in interface SOLRTrackingComponent
aclIds
- the ACL IDspublic List<Transaction> getTransactions(Long minTxnId, Long fromCommitTime, Long maxTxnId, Long toCommitTime, int maxResults)
SOLRTrackingComponent
getTransactions
in interface SOLRTrackingComponent
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 resultspublic void getNodes(NodeParameters nodeParameters, SOLRTrackingComponent.NodeQueryCallback callback)
getNodes
in interface SOLRTrackingComponent
nodeParameters
- set of constraints for which nodes to returncallback
- a callback to receive the resultsprotected Map<org.alfresco.service.namespace.QName,Serializable> getProperties(Long nodeId)
public long getCRC(Long nodeId)
SOLRTrackingComponent
getCRC
in interface SOLRTrackingComponent
public void getNodesMetadata(NodeMetaDataParameters nodeMetaDataParameters, MetaDataResultsFilter resultFilter, SOLRTrackingComponent.NodeMetaDataQueryCallback callback)
getNodesMetadata
in interface SOLRTrackingComponent
nodeMetaDataParameters
- NodeMetaDataParametersresultFilter
- MetaDataResultsFiltercallback
- a callback to receive the resultsprotected org.alfresco.service.cmr.repository.NodeRef convertVersionNodeRefToVersionedNodeRef(org.alfresco.service.cmr.repository.NodeRef versionNodeRef)
public AlfrescoModel getModel(org.alfresco.service.namespace.QName modelName)
getModel
in interface SOLRTrackingComponent
modelName
- the name of the modelpublic List<AlfrescoModelDiff> getModelDiffs(Map<org.alfresco.service.namespace.QName,Long> models)
getModelDiffs
in interface SOLRTrackingComponent
models
- a set of mappings of model names to checksumspublic Long getMaxTxnCommitTime()
SOLRTrackingComponent
getMaxTxnCommitTime
in interface SOLRTrackingComponent
public Long getMaxTxnId()
SOLRTrackingComponent
getMaxTxnId
in interface SOLRTrackingComponent
public Long getMaxChangeSetCommitTime()
getMaxChangeSetCommitTime
in interface SOLRTrackingComponent
public Long getMaxChangeSetId()
getMaxChangeSetId
in interface SOLRTrackingComponent
public void registerShardState(org.alfresco.repo.index.shard.ShardState shardState)
SOLRTrackingComponent
registerShardState
in interface SOLRTrackingComponent
public ShardRegistry getShardRegistry()
SOLRTrackingComponent
getShardRegistry
in interface SOLRTrackingComponent
Copyright © 2005–2017 Alfresco Software. All rights reserved.