net.ibizsys.model.util.merger.control.PSMDAjaxControlContainerMerger Maven / Gradle / Ivy
package net.ibizsys.model.util.merger.control;
import com.fasterxml.jackson.databind.node.ObjectNode;
import net.ibizsys.model.util.merger.IPSModelListMerger;
import net.ibizsys.model.util.merger.IPSModelMergeContext;
import net.ibizsys.model.util.merger.PSModelMergerFactory;
import static net.ibizsys.model.control.PSMDAjaxControlContainerImpl.*;
public class PSMDAjaxControlContainerMerger extends net.ibizsys.model.util.merger.control.PSAjaxControlContainerMerger{
@Override
protected boolean isEnableMergeChild(IPSModelMergeContext iPSModelMergeContext, String strFieldName) {
Boolean ret = iPSModelMergeContext.isEnableMergeChild(net.ibizsys.model.control.PSMDAjaxControlContainerImpl.class, strFieldName);
return (ret != null)?ret:super.isEnableMergeChild(iPSModelMergeContext, strFieldName);
}
@Override
protected void onMerge(IPSModelMergeContext iPSModelMergeContext, ObjectNode objectNode, ObjectNode mergeObjectNode) throws Exception {
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSCONTROLNAVCONTEXTS)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.control.IPSControlNavContext.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSCONTROLNAVCONTEXTS);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSCONTROLNAVPARAMS)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.control.IPSControlNavParam.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSCONTROLNAVPARAMS);
}
}
super.onMerge(iPSModelMergeContext, objectNode, mergeObjectNode);
}
}