Class SearchDAOImpl
java.lang.Object
org.alfresco.repo.domain.solr.ibatis.SearchDAOImpl
- All Implemented Interfaces:
SearchDAO
DAO support for SOLR web scripts.
- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAclChangeSets(Long minAclChangeSetId, Long fromCommitTime, Long maxAclChangeSetId, Long toCommitTime, int maxResults) Get the ACL changesets summary (rollup count) with paging optionsGet the ACLs (no rollup count) for the given ACL ChangeSetsgetNodes(NodeParameters nodeParameters, QName shardPropertyQName, QName shardPropertyTypeName) Get the nodes satisfying the constraints in nodeParametersgetTransactions(Long minTxnId, Long fromCommitTime, Long maxTxnId, Long toCommitTime, int maxResults) Get the transactions from either minTxnId or fromCommitTime, optionally limited to maxResultsvoidinit()InitializevoidsetQNameDAO(QNameDAO qnameDAO) final voidsetSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
-
Constructor Details
-
SearchDAOImpl
public SearchDAOImpl()
-
-
Method Details
-
setSqlSessionTemplate
public final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) -
setQNameDAO
-
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:
getAclChangeSetsin interfaceSearchDAO- 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
Get the ACLs (no rollup count) for the given ACL ChangeSets -
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:
getTransactionsin interfaceSearchDAO- Parameters:
minTxnId- greater than or equal to minTxnIdfromCommitTime- greater than or equal to transaction commit timemaxTxnId- less than maxTxnIdtoCommitTime- less than toCommitTimemaxResults- limit the results. 0 or Integer.MAX_VALUE does not limit the results- Returns:
- list of transactions
-
getNodes
public List<Node> getNodes(NodeParameters nodeParameters, QName shardPropertyQName, QName shardPropertyTypeName) Get the nodes satisfying the constraints in nodeParameters
-