Search in sources :

Example 1 with TransformerV2NodeConfiguration

use of org.talend.mdm.repository.core.impl.transformerV2.TransformerV2NodeConfiguration in project tmdm-studio-se by Talend.

the class RepositoryViewFilterDialog method solveProcTriCase.

private void solveProcTriCase() {
    IRepositoryViewObject eventMgr = null;
    boolean exist = false;
    for (IRepositoryViewObject conf : enabledConfigs) {
        Item item = conf.getProperty().getItem();
        IRepositoryNodeConfiguration repositoryConf = RepositoryNodeConfigurationManager.getConfiguration(item);
        if (repositoryConf instanceof EventManagerNodeConfiguration) {
            exist = true;
            break;
        }
        if (repositoryConf instanceof IRepositoryViewObject || repositoryConf instanceof TransformerV2NodeConfiguration)
            for (IRepositoryViewObject confi : allConfigs) eventMgr = confi;
    }
    if (eventMgr != null && !exist)
        enabledConfigs.add(eventMgr);
}
Also used : Item(org.talend.core.model.properties.Item) ContainerItem(org.talend.mdm.repository.model.mdmproperties.ContainerItem) EventManagerNodeConfiguration(org.talend.mdm.repository.core.impl.eventmanager.EventManagerNodeConfiguration) IRepositoryViewObject(org.talend.core.model.repository.IRepositoryViewObject) IRepositoryNodeConfiguration(org.talend.mdm.repository.core.IRepositoryNodeConfiguration) TransformerV2NodeConfiguration(org.talend.mdm.repository.core.impl.transformerV2.TransformerV2NodeConfiguration)

Aggregations

Item (org.talend.core.model.properties.Item)1 IRepositoryViewObject (org.talend.core.model.repository.IRepositoryViewObject)1 IRepositoryNodeConfiguration (org.talend.mdm.repository.core.IRepositoryNodeConfiguration)1 EventManagerNodeConfiguration (org.talend.mdm.repository.core.impl.eventmanager.EventManagerNodeConfiguration)1 TransformerV2NodeConfiguration (org.talend.mdm.repository.core.impl.transformerV2.TransformerV2NodeConfiguration)1 ContainerItem (org.talend.mdm.repository.model.mdmproperties.ContainerItem)1