Class SOLRDAOImpl

  • All Implemented Interfaces:
    SOLRDAO

    public class SOLRDAOImpl
    extends Object
    implements SOLRDAO
    DAO support for SOLR web scripts.
    Since:
    4.0
    • Constructor Detail

      • SOLRDAOImpl

        public SOLRDAOImpl()
    • Method Detail

      • setSqlSessionTemplate

        public final void setSqlSessionTemplate​(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
      • setQNameDAO

        public void setQNameDAO​(QNameDAO qnameDAO)
      • init

        public void init()
        Initialize
      • getAclChangeSets

        public List<AclChangeSet> getAclChangeSets​(Long minAclChangeSetId,
                                                   Long fromCommitTime,
                                                   Long maxAclChangeSetId,
                                                   Long toCommitTime,
                                                   int maxResults)
        Get the ACL changesets summary (rollup count) with paging options
        Specified by:
        getAclChangeSets in interface SOLRDAO
        Parameters:
        minAclChangeSetId - minimum ACL changeset ID - (inclusive and optional)
        fromCommitTime - minimum ACL commit time - (inclusive and optional)
        maxAclChangeSetId - maximum ACL changeset ID - (exclusive and optional)
        toCommitTime - maximum ACL commit time - (exclusive and optional)
        maxResults - limit the results (must be greater than zero and less than MAX)
        Returns:
        list of ACL changesets (no details)
      • getAcls

        public List<Acl> getAcls​(List<Long> aclChangeSetIds,
                                 Long minAclId,
                                 int maxResults)
        Get the ACLs (no rollup count) for the given ACL ChangeSets
        Specified by:
        getAcls in interface SOLRDAO
        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
      • getTransactions

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

        public List<Node> getNodes​(NodeParameters nodeParameters,
                                   org.alfresco.service.namespace.QName shardPropertyQName)
        Get the nodes satisfying the constraints in nodeParameters
        Specified by:
        getNodes in interface SOLRDAO
        Parameters:
        nodeParameters - set of constraints for which nodes to return
        Returns:
        list of matching nodes