mirror of
				https://github.com/Alfresco/alfresco-community-repo.git
				synced 2025-10-29 15:21:53 +00:00 
			
		
		
		
	27125: Subtasks of ALF-7072: RSOLR 013: Remote API to get ACLs and readers
          - ALF-8334: RSOLR 013: Modify ACL schema to record change times
          - ALF-8336: RSOLR 013: DB upgrade scripts for ACL changes
          - TODO: Query APIs
   27128: Added TooManyResultsException as a concurrency detection trigger
          - Usually too many results indicates that the DB table key is not as specific as it should be,
            but it's AVM that showed this up.
   27132: Clean up: javadocs; non-javadocs; uncommented fields; @since tags; etc.
   27134: Removed empty directory
   27135: Fix for ALF-8333: CMIS query: JOIN on an aspect results in CmisInvalidArgumentException
          - incorrect scope used when building orderings
   27139: Fixed SORL transaction tracking queries
          - Queries were using incompatible boolean comparisons
          - Added SOLRDAO to test suite
          - Cleaned up code and reformatted code
   27141: Minor additions to CannedQuery interface
          - get parameter bean
          - construct sort details from a list
          - ALF-7167: Canned queries
   27146: RINF 09 / RINF 10: DB-based paged query for get children (DocLib & CMIS) 
          - milestone check-in for sprint demo & review (WIP)
          - added new FileFolderService (paged) list query (public API is subject to change)
          - moved temp JavaScript sorting to Java
          - example usage by DocLib (via ScriptNode) and CMIS (via AlfrescoCmisService)
          - implemented as demo "canned query" including embedded use of "list" permission interceptor
          - ALF-7402 / ALF-7168
   27150: RINF 09 / RINF 10: DB-based paged query for get children (DocLib & CMIS) 
          - missed file (follow-on to r27146)
   27158: ALF-7070, ALF-7072: SOLR tracking (node and changeset)
          - Pulled non-DAO code into SOLRTrackingComponent
          - DAO code and related tests just test basic CRUD
          - SOLRTrackingComponent does complex cross-schema manipulation
   27159: Fixed line ending and removed svn:eol-style
   27160: ALF-8334: RSOLR 013: Fixed SQL Server syntax
   27165: RINF 09 / RINF 10: DB-based paged query for get children (DocLib & CMIS) 
          - fix listDeepFolders (causing Imap*Test to fail) 
          - all private methods now order files followed by folders
		    (consistent with existing public APIs such as FileFolderService.search & ScriptNode.childFileFolders*)
          - follow-on to r27146
   28271: Consolidate diagnostic logging for max perm checks (ALF-8388 + ALF-8419)
          - note: this should be a trivial merge to HEAD
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28292 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
		
	
		
			
				
	
	
		
			177 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			177 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
| /*
 | |
|  * Copyright (C) 2005-2011 Alfresco Software Limited.
 | |
|  *
 | |
|  * This file is part of Alfresco
 | |
|  *
 | |
|  * Alfresco is free software: you can redistribute it and/or modify
 | |
|  * it under the terms of the GNU Lesser General Public License as published by
 | |
|  * the Free Software Foundation, either version 3 of the License, or
 | |
|  * (at your option) any later version.
 | |
|  *
 | |
|  * Alfresco is distributed in the hope that it will be useful,
 | |
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
|  * GNU Lesser General Public License for more details.
 | |
|  *
 | |
|  * You should have received a copy of the GNU Lesser General Public License
 | |
|  * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
 | |
|  */
 | |
| package org.alfresco.repo.solr;
 | |
| 
 | |
| import java.util.List;
 | |
| import java.util.Set;
 | |
| 
 | |
| import org.alfresco.service.namespace.QName;
 | |
| 
 | |
| /**
 | |
|  * Stores node query parameters for use in SOLR DAO queries
 | |
|  * 
 | |
|  * @since 4.0
 | |
|  */
 | |
| public class NodeParameters
 | |
| {
 | |
|     private List<Long> transactionIds;
 | |
|     private Long fromTxnId;
 | |
|     private Long toTxnId;
 | |
| 
 | |
|     private Long fromNodeId;
 | |
|     private Long toNodeId;
 | |
| 
 | |
|     // default is 'all' results
 | |
|     private int maxResults = 0;
 | |
| 
 | |
|     private String storeProtocol;
 | |
|     private String storeIdentifier;
 | |
|     
 | |
|     private Set<QName> includeNodeTypes;
 | |
|     private Set<QName> excludeNodeTypes;
 | |
|     
 | |
|     private Set<QName> includeAspects;
 | |
|     private Set<QName> excludeAspects;
 | |
|     
 | |
|     public int getMaxResults()
 | |
|     {
 | |
|         return maxResults;
 | |
|     }
 | |
| 
 | |
|     public void setMaxResults(int maxResults)
 | |
|     {
 | |
|         this.maxResults = maxResults;
 | |
|     }
 | |
| 
 | |
|     public boolean getStoreFilter()
 | |
|     {
 | |
|         return (storeProtocol != null || storeIdentifier != null);
 | |
|     }
 | |
|     
 | |
|     public void setStoreProtocol(String storeProtocol)
 | |
|     {
 | |
|         this.storeProtocol = storeProtocol;
 | |
|     }
 | |
| 
 | |
|     public String getStoreProtocol()
 | |
|     {
 | |
|         return storeProtocol;
 | |
|     }
 | |
| 
 | |
|     public void setStoreIdentifier(String storeIdentifier)
 | |
|     {
 | |
|         this.storeIdentifier = storeIdentifier;
 | |
|     }
 | |
| 
 | |
|     public String getStoreIdentifier()
 | |
|     {
 | |
|         return storeIdentifier;
 | |
|     }
 | |
|     
 | |
|     public void setTransactionIds(List<Long> txnIds)
 | |
|     {
 | |
|         this.transactionIds = txnIds;
 | |
|     }
 | |
| 
 | |
|     public List<Long> getTransactionIds()
 | |
|     {
 | |
|         return transactionIds;
 | |
|     }
 | |
|     
 | |
|     public Long getFromTxnId()
 | |
|     {
 | |
|         return fromTxnId;
 | |
|     }
 | |
| 
 | |
|     public void setFromTxnId(Long fromTxnId)
 | |
|     {
 | |
|         this.fromTxnId = fromTxnId;
 | |
|     }
 | |
| 
 | |
|     public Long getToTxnId()
 | |
|     {
 | |
|         return toTxnId;
 | |
|     }
 | |
| 
 | |
|     public void setToTxnId(Long toTxnId)
 | |
|     {
 | |
|         this.toTxnId = toTxnId;
 | |
|     }
 | |
| 
 | |
|     public Long getFromNodeId()
 | |
|     {
 | |
|         return fromNodeId;
 | |
|     }
 | |
| 
 | |
|     public void setFromNodeId(Long fromNodeId)
 | |
|     {
 | |
|         this.fromNodeId = fromNodeId;
 | |
|     }
 | |
| 
 | |
|     public Long getToNodeId()
 | |
|     {
 | |
|         return toNodeId;
 | |
|     }
 | |
| 
 | |
|     public void setToNodeId(Long toNodeId)
 | |
|     {
 | |
|         this.toNodeId = toNodeId;
 | |
|     }
 | |
| 
 | |
|     public Set<QName> getIncludeNodeTypes()
 | |
|     {
 | |
|         return includeNodeTypes;
 | |
|     }
 | |
| 
 | |
|     public Set<QName> getExcludeNodeTypes()
 | |
|     {
 | |
|         return excludeNodeTypes;
 | |
|     }
 | |
| 
 | |
|     public Set<QName> getIncludeAspects()
 | |
|     {
 | |
|         return includeAspects;
 | |
|     }
 | |
| 
 | |
|     public Set<QName> getExcludeAspects()
 | |
|     {
 | |
|         return excludeAspects;
 | |
|     }
 | |
| 
 | |
|     public void setIncludeNodeTypes(Set<QName> includeNodeTypes)
 | |
|     {
 | |
|         this.includeNodeTypes = includeNodeTypes;
 | |
|     }
 | |
| 
 | |
|     public void setExcludeNodeTypes(Set<QName> excludeNodeTypes)
 | |
|     {
 | |
|         this.excludeNodeTypes = excludeNodeTypes;
 | |
|     }
 | |
| 
 | |
|     public void setIncludeAspects(Set<QName> includeAspects)
 | |
|     {
 | |
|         this.includeAspects = includeAspects;
 | |
|     }
 | |
| 
 | |
|     public void setExcludeAspects(Set<QName> excludeAspects)
 | |
|     {
 | |
|         this.excludeAspects = excludeAspects;
 | |
|     }
 | |
| }
 |