mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-30 18:15:39 +00:00
33935: ALF-12854: SOLR - requires more detailed tracking information - Part 1: info reported for the SOLR SUMMARY action 33936: ALF-11693: Treat logging.properties the same way as log4j.properties and excluded it from the core .jar 33945: ALF-12867: RIP jmx-dumper.jar 33946: Fix minor issue introduced in r33920 33947: IT-6847 "Error displays on recent 4.0 TS upgrade while navigate to a document details page" - errors spotted on folder details & in document library list also resolved by this fix 33951: ALF-12867: Fixed typo 33955: Some unit tests and examples on how to implement file wiping or shredding - One API change: On EagerContentStoreCleaner, the following is now protected: protected boolean deleteFromStore(String contentUrl, ContentStore store) - Examples in unit test ContentStoreCleanerTest: testForcedImmediateShredding and testShreddingCleanup 33962: RIP hyperic plugin 33965: ALF-12697: Asynchronously get RSS items for dashlets on page load 33969: Fix for ALF-12307 Solr backup fills the disk - number to Keep can be set by property/subsystem/Share admin - set default backup localtion 33970: Fix for ALF-12854 SOLR - requires more detailed tracking information Part 2: basic stats added to JMX and improved statistical moment calculation 33984: Update 4.0.1 installers to use Tomcat 6.0.35 - Remembered to set useHttpOnly on <Context> - Also commented out JreMemoryLeakPreventionListener 33988: ALF-12717 CIFS: Unfriendly message occurs when a user with consumer/contributor role tries to rename space. 33997: ALF-12697: Remove async WebScript from dashlet family 33999: Fix for ALF-12854 SOLR - requires more detailed tracking information - Final part - Expose via share admin 34005: Fix for ALF-12708 34007: Merged V3.4-BUG-FIX (3.4.9) to 3.4-BUG-FIX (4.0.1) 34006: Merged V3.4 (3.4.8) to V3.4-BUG-FIX (3.4.9) 34002: ALF-12898: MMT does not calculate the current version number correctly and does not report errors - ModuleManagementTool was constructing the wrong current war file version number. The minor and revision values were the wrong way around. 3.4.8 became 3.8.4 - Modified unit test to use the actual version number in the test war 4.1.0 rather than 4.0.1 - Modified the ModuleManagementTool so that problems would be reported to the user even if they did not have -verbose set 34016: Update version.revision for 4.0.1 34022: Merged V3.4-BUG-FIX to V4.0-BUG-FIX 33952: ALF-5680: It is possible to cut/paste a locked file 34003: Merged DEV to V3.4-BUG-FIX 34001: ALF-12709: CLONE - Run action Wizard. Can't run action. Fixed regression connected with separator of AVM path in .NodeRef. id that has been changed from .;. to .|. 34023: Merged V3.4-BUG-FIX to V4.0-BUG-FIX (RECORD ONLY) 33912: ALF-9899: Merged HEAD to V3.4-BUG-FIX (PARTIAL) 31912: Merged DEV to HEAD 31823: TransactionalCache provides REPEATABLE READ - Values found in shared cache are placed into transactional cache - Previously, values could keep changing until first write (READ COMMITTED) but now the first read sets the value until it is changed by the current transaction 33981: Updated version.revision for 3.4.9 33985: ALF-12364: Merged V4.0-BUG-FIX to V3.4-BUG-FIX 33984: Update 3.4.9 installers to use Tomcat 6.0.35 - Remembered to set useHttpOnly on <Context> - Also commented out JreMemoryLeakPreventionListener git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@34024 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
161 lines
6.0 KiB
Java
161 lines
6.0 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.Map;
|
|
|
|
import org.alfresco.repo.domain.node.Node;
|
|
import org.alfresco.service.namespace.QName;
|
|
|
|
/**
|
|
* Interface for component to provide tracking data for SOLR.
|
|
*
|
|
* @since 4.0
|
|
*/
|
|
public interface SOLRTrackingComponent
|
|
{
|
|
/**
|
|
* Get the ACL changesets for given range parameters
|
|
*
|
|
* @param minAclChangeSetId minimum ACL changeset ID - (inclusive and optional)
|
|
* @param fromCommitTime minimum ACL commit time - (inclusive and optional)
|
|
* @param maxAclChangeSetId max ACL changeset ID - (exclusive and optional)
|
|
* @param toCommitTime max ACL commit time - (exclusive and optional)
|
|
* @param maxResults limit the results. 0 or Integer.MAX_VALUE does not limit the results
|
|
* @return list of ACL changesets
|
|
*/
|
|
public List<AclChangeSet> getAclChangeSets(Long minAclChangeSetId, Long fromCommitTime, Long maxAclChangeSetId, Long toCommitTime, int maxResults);
|
|
|
|
/**
|
|
* Get the ACLs with paging options for a specific ACL ChangeSet
|
|
*
|
|
* @param aclChangeSetIds the ACL ChangeSet IDs
|
|
* @param minAclId the minimum ACL ID - (inclusive and optional).
|
|
* @param maxResults the maximum number of results (must be greater than zero and less than MAX)
|
|
* @return list of ACLs
|
|
*/
|
|
public List<Acl> getAcls(List<Long> aclChangeSetIds, Long minAclId, int maxResults);
|
|
|
|
/**
|
|
* Get the ACL readers ("authorities who can read this ACL") for a given set of ACL IDs
|
|
*
|
|
* @param aclIds the ACL IDs
|
|
* @return Returns the list of ACL readers (includes original ACL IDs)
|
|
*/
|
|
public List<AclReaders> getAclsReaders(List<Long> aclIds);
|
|
|
|
/**
|
|
* Get the transactions from either minTxnId or fromCommitTime, optionally limited to maxResults
|
|
*
|
|
* @param minTxnId greater than or equal to minTxnId
|
|
* @param fromCommitTime greater than or equal to transaction commit time
|
|
* @param maxTxnId less than maxTxnId
|
|
* @param toCommitTimeint less then toCommitTimeint
|
|
* @param maxResults limit the results. 0 or Integer.MAX_VALUE does not limit the results
|
|
* @return list of transactions
|
|
*/
|
|
public List<Transaction> getTransactions(Long minTxnId, Long fromCommitTime, Long maxTxnId, Long toCommitTimeint, int maxResults);
|
|
|
|
/**
|
|
* Get the nodes satisfying the constraints in nodeParameters
|
|
*
|
|
* @param nodeParameters set of constraints for which nodes to return
|
|
* @param maxResults limit the results. 0 or Integer.MAX_VALUE does not limit the results
|
|
* @param callback a callback to receive the results
|
|
*/
|
|
public void getNodes(NodeParameters nodeParameters, NodeQueryCallback callback);
|
|
|
|
/**
|
|
* Returns metadata for a set of node ids
|
|
*
|
|
* @param nodeIds a set of nodeIds for which to return node metadata
|
|
* @param maxResults limit the results. 0 or Integer.MAX_VALUE does not limit the results
|
|
* @param callback a callback to receive the results
|
|
*/
|
|
public void getNodesMetadata(NodeMetaDataParameters nodeMetaDataParameters, MetaDataResultsFilter resultFilter, NodeMetaDataQueryCallback callback);
|
|
|
|
/**
|
|
* Returns the Alfresco model given by the name modelName
|
|
*
|
|
* @param modelName the name of the model
|
|
* @return the model plus a checksum
|
|
*/
|
|
public AlfrescoModel getModel(QName modelName);
|
|
|
|
/**
|
|
* Returns a list of diffs representing differences between the current Repository models
|
|
* and those passed in the models parameter.
|
|
*
|
|
* @param models a set of mappings of model names to checksums
|
|
* @return a list of diffs between those in the repository and those passed in the models parameter
|
|
*/
|
|
public List<AlfrescoModelDiff> getModelDiffs(Map<QName, Long> models);
|
|
|
|
/**
|
|
* The interface that will be used to give query results to the calling code.
|
|
*/
|
|
public 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);
|
|
}
|
|
|
|
/**
|
|
* The interface that will be used to give query results to the calling code.
|
|
*/
|
|
public interface NodeMetaDataQueryCallback
|
|
{
|
|
/**
|
|
* Handle a node.
|
|
*
|
|
* @param node the node meta data
|
|
* @return Return <tt>true</tt> to continue processing rows or <tt>false</tt> to stop
|
|
*/
|
|
boolean handleNodeMetaData(NodeMetaData nodeMetaData);
|
|
}
|
|
|
|
/**
|
|
* @return
|
|
*/
|
|
boolean isEnabled();
|
|
|
|
/**
|
|
* @param enabled
|
|
*/
|
|
void setEnabled(boolean enabled);
|
|
|
|
/**
|
|
* Get the last transaction timestamp from the repo
|
|
* @return
|
|
*/
|
|
public Long getMaxTxnCommitTime();
|
|
|
|
/**
|
|
* Get the last transaction id from the repo
|
|
* @return
|
|
*/
|
|
public Long getMaxTxnId();
|
|
}
|