|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.solr.SOLRTrackingComponentImpl
public class SOLRTrackingComponentImpl
Component providing data for SOLR tracking
| Nested Class Summary | |
|---|---|
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 |
| Nested classes/interfaces inherited from interface org.alfresco.repo.solr.SOLRTrackingComponent |
|---|
SOLRTrackingComponent.NodeMetaDataQueryCallback, SOLRTrackingComponent.NodeQueryCallback |
| Constructor Summary | |
|---|---|
SOLRTrackingComponentImpl()
|
|
| Method Summary | |
|---|---|
java.util.List |
getAclChangeSets(java.lang.Long minAclChangeSetId,
java.lang.Long fromCommitTime,
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 |
getMaxTxnCommitTime()
Get the last transaction timestamp 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 |
java.util.List |
getTransactions(java.lang.Long minTxnId,
java.lang.Long fromCommitTime,
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SOLRTrackingComponentImpl()
| Method Detail |
|---|
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,
int maxResults)
SOLRTrackingComponent
getAclChangeSets in interface SOLRTrackingComponentminAclChangeSetId - minimum ACL changeset ID - (inclusive and optional)fromCommitTime - minimum ACL commit time - (inclusive and optional)maxResults - limit the results. 0 or Integer.MAX_VALUE does not limit the results
public java.util.List getAcls(java.util.List aclChangeSetIds,
java.lang.Long minAclId,
int maxResults)
SOLRTrackingComponent
getAcls 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)
SOLRTrackingComponent
getAclsReaders in interface SOLRTrackingComponentaclIds - the ACL IDs
public java.util.List getTransactions(java.lang.Long minTxnId,
java.lang.Long fromCommitTime,
int maxResults)
SOLRTrackingComponent
getTransactions in interface SOLRTrackingComponentminTxnId - greater than or equal to minTxnIdfromCommitTime - greater than or equal to transaction commit timemaxResults - limit the results. 0 or Integer.MAX_VALUE does not limit the results
public void getNodes(NodeParameters nodeParameters,
SOLRTrackingComponent.NodeQueryCallback callback)
getNodes in interface SOLRTrackingComponentnodeParameters - set of constraints for which nodes to returncallback - a callback to receive the results
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 model
public java.util.List getModelDiffs(java.util.Map models)
getModelDiffs in interface SOLRTrackingComponentmodels - a set of mappings of model names to checksums
public java.lang.Long getMaxTxnCommitTime()
SOLRTrackingComponent
getMaxTxnCommitTime in interface SOLRTrackingComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||