Get Alfresco NodeRef by path (real-time, race condition safe)
问题 I want to get the NodeRef of a document (or space) stored in Alfresco. My code is in Java, running within Alfresco (for instance in an AMP). My code needs to be safe against race conditions, for instance it must find nodes that have been created a second before. In this context, the usual methods (search-based) can not be used. How to do? 回答1: You need to avoid anything that touches SOLR, as those APIs are only Eventually Consistent Specifically, you need an API that's based on canned queries