07-15-2019 01:51 PM
Faced a problem in which memory is being filled while adding an association. And I need to override the method in the class AssocSourceMultiplicityIntegrityEvent.
List<AssociationRef> sourceAssocRefs = nodeService.getSourceAssocs(targetNodeRef, assocTypeQName);
The line above may have a result of one million entries, but for conditions only 2 entries are needed.
With the help of mybatis, I created a sql query that satisfies the conditions, and now I need to replace the string in the AssocSourceMultiplicityIntegrityEvent class. But for this I need to create my own IntegrityChecker, because it cannot be inherited correctly from it. Are there other methods to solve this problem?
Alfresco Repository 5.2
Explore our Alfresco products with the links below. Use labels to filter content by product module.