Interface ChildFunction

All Known Implementing Classes:
PropagateBusinessUnitFunction

public interface ChildFunction
Can be implemented to execute a function with each child of a certain node if certain changes have been applied to the node. Example: The related business unit of a domain should be set on all child nodes: Return a function which sets the business unit on the given node, if the trigger node is a domain and the relation to the business unit has been touched. If the trigger node isn't a domain or if the relation hasn't been touched, return nothing. See ch.tocco.nice2.dms.impl.entitylistener.childfunction.ChildFunctionListener
  • Method Details

    • getFunction

      Return a function to apply to all children.
      Parameters:
      triggerNode - the node which has been changed or deleted. This node could be of any type, is not necessarily a root node.
      Returns:
      a function to apply to all children or Optional.empty().