Class SOLRAPIQueueClient


  • public class SOLRAPIQueueClient
    extends SOLRAPIClient
    A client that reads from an internal queue. This is used for test cases.
    • Constructor Detail

      • SOLRAPIQueueClient

        public SOLRAPIQueueClient​(org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO)
    • Method Detail

      • setThrowException

        public static void setThrowException​(boolean _throwException)
      • getAclChangeSets

        public AclChangeSets getAclChangeSets​(Long fromCommitTime,
                                              Long minAclChangeSetId,
                                              Long toCommitTime,
                                              Long maxAclChangeSetId,
                                              int maxResults)
                                       throws org.alfresco.httpclient.AuthenticationException,
                                              IOException,
                                              org.json.JSONException
        Description copied from class: SOLRAPIClient
        Get the ACL ChangeSets
        Overrides:
        getAclChangeSets in class SOLRAPIClient
        Parameters:
        fromCommitTime - the lowest commit time (optional)
        minAclChangeSetId - the lowest ChangeSet ID (optional)
        maxResults - the maximum number of results (a reasonable value only)
        Returns:
        the ACL ChangeSets in order of commit time and ID
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
      • getAcls

        public List<Acl> getAcls​(List<AclChangeSet> aclChangeSets,
                                 Long minAclId,
                                 int maxResults)
                          throws org.alfresco.httpclient.AuthenticationException,
                                 IOException,
                                 org.json.JSONException
        Get the ACLs associated with a given list of ACL ChangeSets. The ACLs may be truncated for the last ACL ChangeSet in the return values - the ACL count from the ACL ChangeSets.
        Overrides:
        getAcls in class SOLRAPIClient
        Parameters:
        aclChangeSets - the ACL ChangeSets to include
        minAclId - the lowest ACL ID (may be null)
        maxResults - the maximum number of results to retrieve
        Returns:
        the ACLs (includes ChangeSet ID)
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
      • getAclReaders

        public List<AclReaders> getAclReaders​(List<Acl> acls)
                                       throws org.alfresco.httpclient.AuthenticationException,
                                              IOException,
                                              org.json.JSONException
        Get the ACL readers for a given list of ACLs
        Overrides:
        getAclReaders in class SOLRAPIClient
        Parameters:
        acls - the ACLs
        Returns:
        the readers for the ACLs
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
      • getTransactions

        public Transactions getTransactions​(Long fromCommitTime,
                                            Long minTxnId,
                                            Long toCommitTime,
                                            Long maxTxnId,
                                            int maxResults,
                                            org.alfresco.repo.index.shard.ShardState shardState)
                                     throws org.alfresco.httpclient.AuthenticationException,
                                            IOException,
                                            org.json.JSONException,
                                            org.apache.commons.codec.EncoderException
        Overrides:
        getTransactions in class SOLRAPIClient
        Throws:
        org.alfresco.httpclient.AuthenticationException
        IOException
        org.json.JSONException
        org.apache.commons.codec.EncoderException