Class SOLRTrackingComponentImpl

    • Constructor Detail

      • SOLRTrackingComponentImpl

        public SOLRTrackingComponentImpl()
    • Method Detail

      • setCacheAncestors

        public void setCacheAncestors​(boolean cacheAncestors)
        Parameters:
        cacheAncestors - the cacheAncestors to set
      • setSolrDAO

        public void setSolrDAO​(SOLRDAO solrDAO)
      • setNodeDAO

        public void setNodeDAO​(NodeDAO nodeDAO)
      • setQnameDAO

        public void setQnameDAO​(QNameDAO qnameDAO)
      • setPermissionService

        public void setPermissionService​(org.alfresco.service.cmr.security.PermissionService permissionService)
      • setOwnableService

        public void setOwnableService​(OwnableService ownableService)
      • setTenantService

        public void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)
      • setDictionaryService

        public void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
      • setAclDAO

        public void setAclDAO​(AclDAO aclDAO)
      • setDictionaryDAO

        public void setDictionaryDAO​(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
      • setTypeIndexFilter

        public void setTypeIndexFilter​(TypeIndexFilter typeIndexFilter)
      • setAspectIndexFilter

        public void setAspectIndexFilter​(AspectIndexFilter aspectIndexFilter)
      • setShardRegistry

        public void setShardRegistry​(ShardRegistry shardRegistry)
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
      • init

        public void init()
        Initialize
      • getAclChangeSets

        public java.util.List<AclChangeSet> getAclChangeSets​(java.lang.Long minAclChangeSetId,
                                                             java.lang.Long fromCommitTime,
                                                             java.lang.Long maxAclChangeSetId,
                                                             java.lang.Long toCommitTime,
                                                             int maxResults)
        Description copied from interface: SOLRTrackingComponent
        Get the ACL changesets for given range parameters
        Specified by:
        getAclChangeSets in interface SOLRTrackingComponent
        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

        public java.util.List<Acl> getAcls​(java.util.List<java.lang.Long> aclChangeSetIds,
                                           java.lang.Long minAclId,
                                           int maxResults)
        Description copied from interface: SOLRTrackingComponent
        Get the ACLs with paging options for a specific ACL ChangeSet
        Specified by:
        getAcls in interface SOLRTrackingComponent
        Parameters:
        aclChangeSetIds - the ACL ChangeSet IDs
        minAclId - 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

        public java.util.List<AclReaders> getAclsReaders​(java.util.List<java.lang.Long> aclIds)
        Description copied from interface: SOLRTrackingComponent
        Get the ACL readers ("authorities who can read this ACL") for a given set of ACL IDs
        Specified by:
        getAclsReaders in interface SOLRTrackingComponent
        Parameters:
        aclIds - the ACL IDs
        Returns:
        Returns the list of ACL readers (includes original ACL IDs)
      • getTransactions

        public java.util.List<Transaction> getTransactions​(java.lang.Long minTxnId,
                                                           java.lang.Long fromCommitTime,
                                                           java.lang.Long maxTxnId,
                                                           java.lang.Long toCommitTime,
                                                           int maxResults)
        Description copied from interface: SOLRTrackingComponent
        Get the transactions from either minTxnId or fromCommitTime, optionally limited to maxResults
        Specified by:
        getTransactions in interface SOLRTrackingComponent
        Parameters:
        minTxnId - greater than or equal to minTxnId
        fromCommitTime - greater than or equal to transaction commit time
        maxTxnId - less than maxTxnId
        toCommitTime - less then toCommitTimeint
        maxResults - limit the results. 0 or Integer.MAX_VALUE does not limit the results
        Returns:
        list of transactions
      • getProperties

        protected java.util.Map<org.alfresco.service.namespace.QName,​java.io.Serializable> getProperties​(java.lang.Long nodeId)
      • getCRC

        public long getCRC​(java.lang.Long nodeId)
        Description copied from interface: SOLRTrackingComponent
        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.
        Specified by:
        getCRC in interface SOLRTrackingComponent
        Returns:
      • convertVersionNodeRefToVersionedNodeRef

        protected org.alfresco.service.cmr.repository.NodeRef convertVersionNodeRefToVersionedNodeRef​(org.alfresco.service.cmr.repository.NodeRef versionNodeRef)
      • getModel

        public AlfrescoModel getModel​(org.alfresco.service.namespace.QName modelName)
        Returns the Alfresco model given by the name modelName
        Specified by:
        getModel in interface SOLRTrackingComponent
        Parameters:
        modelName - the name of the model
        Returns:
        the model plus a checksum
      • getModelDiffs

        public java.util.List<AlfrescoModelDiff> getModelDiffs​(java.util.Map<org.alfresco.service.namespace.QName,​java.lang.Long> models)
        Returns a list of diffs representing differences between the current Repository models and those passed in the models parameter.
        Specified by:
        getModelDiffs in interface SOLRTrackingComponent
        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