mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged SWIFT to HEAD
25250: SWIFT branch moved to 4.0.0 schema 5000 25435: Initial checkin for ALF-7069 25450: ALF-7069: - add maxResults to SOLR DAO - refactoring 25480: ALF-7069: further enhancements + unit tests - include/exclude aspects, store protocol + identifier git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@27999 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
31
source/java/org/alfresco/repo/domain/solr/SOLRDAO.java
Normal file
31
source/java/org/alfresco/repo/domain/solr/SOLRDAO.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package org.alfresco.repo.domain.solr;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.repo.domain.node.Node;
|
||||
|
||||
/**
|
||||
* DAO support for SOLR web scripts.
|
||||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
// TODO - permit shortened form of QNames for e.g. aspects i.e. cm:content vs {http://www.alfresco.org/model/content/1.0}content?
|
||||
public interface SOLRDAO
|
||||
{
|
||||
public List<Transaction> getTransactions(Long minTxnId, Long fromCommitTime, int maxResults);
|
||||
public void getNodes(NodeParameters nodeParameters, int maxResults, NodeQueryCallback callback);
|
||||
|
||||
/**
|
||||
* The interface that will be used to give query results to the calling code.
|
||||
*/
|
||||
public static interface NodeQueryCallback
|
||||
{
|
||||
/**
|
||||
* Handle a node.
|
||||
*
|
||||
* @param node the node
|
||||
* @return Return <tt>true</tt> to continue processing rows or <tt>false</tt> to stop
|
||||
*/
|
||||
boolean handleNode(Node node);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user