public class SOLRTrackingComponentImpl extends java.lang.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 |
|---|---|
java.util.List |
getAclChangeSets(java.lang.Long minAclChangeSetId,
java.lang.Long fromCommitTime,
java.lang.Long maxAclChangeSetId,
java.lang.Long toCommitTime,
int maxResults)
Get the ACL changesets for given range parameters
|
java.util.List |
getAcls(java.util.List aclChangeSetIds,
java.lang.Long minAclId,
int maxResults)
Get the ACLs with paging options for a specific ACL ChangeSet
|
java.util.List |
getAclsReaders(java.util.List aclIds)
Get the ACL readers ("authorities who can read this ACL") for a given set of ACL IDs
|
java.lang.Long |
getMaxChangeSetCommitTime() |
java.lang.Long |
getMaxChangeSetId() |
java.lang.Long |
getMaxTxnCommitTime()
Get the last transaction timestamp from the repo
|
java.lang.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
|
java.util.List |
getModelDiffs(java.util.Map 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 java.util.Map |
getProperties(java.lang.Long nodeId) |
java.util.List |
getTransactions(java.lang.Long minTxnId,
java.lang.Long fromCommitTime,
java.lang.Long maxTxnId,
java.lang.Long toCommitTime,
int maxResults)
Get the transactions from either minTxnId or fromCommitTime, optionally limited to maxResults
|
void |
init()
Initialize
|
boolean |
isEnabled() |
void |
setAclDAO(AclDAO aclDAO) |
void |
setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setEnabled(boolean enabled) |
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) |
public boolean isEnabled()
isEnabled in interface SOLRTrackingComponentpublic void setEnabled(boolean enabled)
setEnabled in interface SOLRTrackingComponentpublic 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 init()
public java.util.List getAclChangeSets(java.lang.Long minAclChangeSetId,
java.lang.Long fromCommitTime,
java.lang.Long maxAclChangeSetId,
java.lang.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 java.util.List getAcls(java.util.List aclChangeSetIds,
java.lang.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 java.util.List getAclsReaders(java.util.List aclIds)
SOLRTrackingComponentgetAclsReaders in interface SOLRTrackingComponentaclIds - the ACL IDspublic java.util.List getTransactions(java.lang.Long minTxnId,
java.lang.Long fromCommitTime,
java.lang.Long maxTxnId,
java.lang.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 java.util.Map getProperties(java.lang.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 java.util.List getModelDiffs(java.util.Map models)
getModelDiffs in interface SOLRTrackingComponentmodels - a set of mappings of model names to checksumspublic java.lang.Long getMaxTxnCommitTime()
SOLRTrackingComponentgetMaxTxnCommitTime in interface SOLRTrackingComponentpublic java.lang.Long getMaxTxnId()
SOLRTrackingComponentgetMaxTxnId in interface SOLRTrackingComponentpublic java.lang.Long getMaxChangeSetCommitTime()
getMaxChangeSetCommitTime in interface SOLRTrackingComponentpublic java.lang.Long getMaxChangeSetId()
getMaxChangeSetId in interface SOLRTrackingComponentCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.