Class AclTracker

    • Field Detail

      • log

        protected static final org.slf4j.Logger log
    • Method Detail

      • doTrack

        protected void doTrack​(String iterationId)
                        throws Throwable
        Description copied from class: AbstractTracker
        Subclasses must implement behaviour that completes the following steps, in order:
        1. Purge
        2. Reindex
        3. Index
        4. Track repository
        Specified by:
        doTrack in class AbstractTracker
        Parameters:
        iterationId - an identifier which is uniquely associated with a given iteration.
        Throws:
        Throwable
      • hasMaintenance

        public boolean hasMaintenance()
      • indexAclChangeSets

        protected void indexAclChangeSets()
                                   throws org.alfresco.httpclient.AuthenticationException,
                                          IOException,
                                          org.json.JSONException
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
      • indexAcls

        protected void indexAcls()
                          throws org.alfresco.httpclient.AuthenticationException,
                                 IOException,
                                 org.json.JSONException
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
      • reindexAclChangeSets

        protected void reindexAclChangeSets()
                                     throws org.alfresco.httpclient.AuthenticationException,
                                            IOException,
                                            org.json.JSONException
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
      • reindexAcls

        protected void reindexAcls()
                            throws org.alfresco.httpclient.AuthenticationException,
                                   IOException,
                                   org.json.JSONException
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
      • purgeAclChangeSets

        protected void purgeAclChangeSets()
                                   throws org.alfresco.httpclient.AuthenticationException,
                                          IOException,
                                          org.json.JSONException
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
      • purgeAcls

        protected void purgeAcls()
                          throws org.alfresco.httpclient.AuthenticationException,
                                 IOException,
                                 org.json.JSONException
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
      • addAclChangeSetToReindex

        public void addAclChangeSetToReindex​(Long aclChangeSetToReindex)
      • addAclChangeSetToIndex

        public void addAclChangeSetToIndex​(Long aclChangeSetToIndex)
      • addAclChangeSetToPurge

        public void addAclChangeSetToPurge​(Long aclChangeSetToPurge)
      • addAclToReindex

        public void addAclToReindex​(Long aclToReindex)
      • addAclToIndex

        public void addAclToIndex​(Long aclToIndex)
      • addAclToPurge

        public void addAclToPurge​(Long aclToPurge)
      • trackRepository

        protected void trackRepository()
                                throws IOException,
                                       org.alfresco.httpclient.AuthenticationException,
                                       org.json.JSONException
        Throws:
        IOException
        org.alfresco.httpclient.AuthenticationException
        org.json.JSONException
      • getChangeSetFromCommitTime

        protected Long getChangeSetFromCommitTime​(org.alfresco.solr.BoundedDeque<org.alfresco.solr.client.AclChangeSet> changeSetsFound,
                                                  long lastGoodChangeSetCommitTimeInIndex)
        Parameters:
        changeSetsFound - BoundedDeque
        lastGoodChangeSetCommitTimeInIndex - long
        Returns:
        Long
      • getSomeAclChangeSets

        protected org.alfresco.solr.client.AclChangeSets getSomeAclChangeSets​(org.alfresco.solr.BoundedDeque<org.alfresco.solr.client.AclChangeSet> changeSetsFound,
                                                                              Long fromCommitTime,
                                                                              long timeStep,
                                                                              int maxResults,
                                                                              long endTime)
                                                                       throws org.alfresco.httpclient.AuthenticationException,
                                                                              IOException,
                                                                              org.json.JSONException
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
      • indexAcl

        protected void indexAcl​(List<org.alfresco.solr.client.AclReaders> aclReaderList,
                                boolean overwrite)
                         throws IOException
        Parameters:
        aclReaderList - List
        overwrite - boolean
        Throws:
        IOException
      • checkIndex

        public org.alfresco.solr.tracker.IndexHealthReport checkIndex​(Long toTx,
                                                                      Long toAclTx,
                                                                      Long fromTime,
                                                                      Long toTime)
                                                               throws org.alfresco.httpclient.AuthenticationException,
                                                                      IOException,
                                                                      org.json.JSONException
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
      • getFullNodesForDbTransaction

        public List<org.alfresco.solr.client.Node> getFullNodesForDbTransaction​(Long txid)
      • getAclsForDbAclTransaction

        public List<Long> getAclsForDbAclTransaction​(Long acltxid)
        Parameters:
        acltxid - Long
        Returns:
        List
      • checkAcl

        public org.alfresco.solr.AclReport checkAcl​(Long aclid)
      • trackAclChangeSets

        protected void trackAclChangeSets()
                                   throws org.alfresco.httpclient.AuthenticationException,
                                          IOException,
                                          org.json.JSONException
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException