As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
ChildAssociationRef primaryAssoc = this.nodeService.getPrimaryParent(node); if (null == primaryAssoc) { /** * Is this an orphaned node ??? */ if (logger.isWarnEnabled()) { logger.warn("Can not notify node without a parent: " + node.toString()); } return; } NodeRef parent = primaryAssoc.getParentRef(); if (this.nodeService.getNodeStatus(parent).isDeleted()) { if (logger.isDebugEnabled()) { logger.debug("Node's parent is deleted, ommitting deletion notification for this node: " + node.toString()); } return; }
/** * Search and disable behaviour for all the children nodes. */ String query = ".//*[hasAspect('" + Model.ASPECT_NOTIFY_IN_DISCUSSION.toString() + "')]"; List<NodeRef> childrenNodes = this.searchService.selectNodes(node, query, null, this.namespaceService, false); for (NodeRef childNode : childrenNodes) { if (logger.isDebugEnabled()) { logger .debug("Disabling behaviour for child node: " + childNode); } this.behaviourFilter.disableBehaviour(childNode, Model.ASPECT_NOTIFY_IN_DISCUSSION); }