Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
net.ibizsys.model.util.merger.app.view.PSAppViewMerger Maven / Gradle / Ivy
package net.ibizsys.model.util.merger.app.view;
import static net.ibizsys.model.app.view.PSAppViewImpl.ATTR_GETPSAPPCOUNTERREFS;
import static net.ibizsys.model.app.view.PSAppViewImpl.ATTR_GETPSAPPVIEWENGINES;
import static net.ibizsys.model.app.view.PSAppViewImpl.ATTR_GETPSAPPVIEWLOGICS;
import static net.ibizsys.model.app.view.PSAppViewImpl.ATTR_GETPSAPPVIEWNAVCONTEXTS;
import static net.ibizsys.model.app.view.PSAppViewImpl.ATTR_GETPSAPPVIEWNAVPARAMS;
import static net.ibizsys.model.app.view.PSAppViewImpl.ATTR_GETPSAPPVIEWPARAMS;
import static net.ibizsys.model.app.view.PSAppViewImpl.ATTR_GETPSAPPVIEWREFS;
import static net.ibizsys.model.app.view.PSAppViewImpl.ATTR_GETPSAPPVIEWUIACTIONS;
import static net.ibizsys.model.app.view.PSAppViewImpl.ATTR_GETPSCONTROLS;
import static net.ibizsys.model.app.view.PSAppViewImpl.ATTR_GETPSVIEWLAYOUTPANEL;
import com.fasterxml.jackson.databind.node.ObjectNode;
import net.ibizsys.model.util.merger.IPSModelListMerger;
import net.ibizsys.model.util.merger.IPSModelMergeContext;
public class PSAppViewMerger extends net.ibizsys.model.util.merger.app.PSApplicationObjectMerger{
@Override
protected boolean isEnableMergeChild(IPSModelMergeContext iPSModelMergeContext, String strFieldName) {
Boolean ret = iPSModelMergeContext.isEnableMergeChild(net.ibizsys.model.app.view.PSAppViewImpl.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_GETPSAPPCOUNTERREFS)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.app.control.IPSAppCounterRef.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSAPPCOUNTERREFS);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSAPPVIEWENGINES)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.app.view.IPSAppViewEngine.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSAPPVIEWENGINES);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSAPPVIEWLOGICS)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.app.view.IPSAppViewLogic.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSAPPVIEWLOGICS);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSAPPVIEWNAVCONTEXTS)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.app.view.IPSAppViewNavContext.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSAPPVIEWNAVCONTEXTS);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSAPPVIEWNAVPARAMS)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.app.view.IPSAppViewNavParam.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSAPPVIEWNAVPARAMS);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSAPPVIEWPARAMS)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.app.view.IPSAppViewParam.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSAPPVIEWPARAMS);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSAPPVIEWREFS)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.app.view.IPSAppViewRef.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSAPPVIEWREFS);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSAPPVIEWUIACTIONS)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.app.view.IPSAppViewUIAction.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSAPPVIEWUIACTIONS);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSCONTROLS)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.control.IPSControl.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSCONTROLS);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSVIEWLAYOUTPANEL)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.control.panel.IPSViewLayoutPanel.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.mergeSingle(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSVIEWLAYOUTPANEL);
}
}
super.onMerge(iPSModelMergeContext, objectNode, mergeObjectNode);
}
}