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 |
|---|---|
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 |
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) |
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() |
boolean |
isIgnorePathsForSpecificTypes() |
void |
setAclDAO(AclDAO aclDAO) |
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 |
setIgnorePathsForSpecificTypes(boolean ignorePersonAndConfigurationPaths) |
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 |
setSolrDAO(SOLRDAO solrDAO) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
void |
setTypesForIgnoringPaths(List<String> typesForIgnoringPaths) |
public boolean isEnabled()
isEnabled in interface SOLRTrackingComponentpublic void setEnabled(boolean enabled)
setEnabled in interface SOLRTrackingComponentpublic boolean isIgnorePathsForSpecificTypes()
public void setIgnorePathsForSpecificTypes(boolean ignorePersonAndConfigurationPaths)
public 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 setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setAclDAO(AclDAO aclDAO)
public void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
public void init()
public List<AclChangeSet> getAclChangeSets(Long minAclChangeSetId, Long fromCommitTime, Long maxAclChangeSetId, Long toCommitTime, int maxResults)
SOLRTrackingComponentgetAclChangeSets in interface SOLRTrackingComponentminAclChangeSetId - 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)
SOLRTrackingComponentgetAcls in interface SOLRTrackingComponentaclChangeSetIds - 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)
SOLRTrackingComponentgetAclsReaders in interface SOLRTrackingComponentaclIds - the ACL IDspublic List<Transaction> getTransactions(Long minTxnId, Long fromCommitTime, Long maxTxnId, Long toCommitTime, int maxResults)
SOLRTrackingComponentgetTransactions in interface SOLRTrackingComponentminTxnId - 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 SOLRTrackingComponentnodeParameters - 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 void getNodesMetadata(NodeMetaDataParameters nodeMetaDataParameters, MetaDataResultsFilter resultFilter, SOLRTrackingComponent.NodeMetaDataQueryCallback callback)
getNodesMetadata in interface SOLRTrackingComponentcallback - a callback to receive the resultspublic AlfrescoModel getModel(org.alfresco.service.namespace.QName modelName)
getModel in interface SOLRTrackingComponentmodelName - the name of the modelpublic List<AlfrescoModelDiff> getModelDiffs(Map<org.alfresco.service.namespace.QName,Long> models)
getModelDiffs in interface SOLRTrackingComponentmodels - a set of mappings of model names to checksumspublic Long getMaxTxnCommitTime()
SOLRTrackingComponentgetMaxTxnCommitTime in interface SOLRTrackingComponentpublic Long getMaxTxnId()
SOLRTrackingComponentgetMaxTxnId in interface SOLRTrackingComponentpublic Long getMaxChangeSetCommitTime()
getMaxChangeSetCommitTime in interface SOLRTrackingComponentpublic Long getMaxChangeSetId()
getMaxChangeSetId in interface SOLRTrackingComponentCopyright © 2005–2014 Alfresco Software. All rights reserved.