Compare commits

...

1 Commits

Author SHA1 Message Date
pyzhou
4be3086b83 fix(TDI-50733):Deprecate tCouchbaseDCP 2024-01-30 22:39:08 +08:00
2 changed files with 8 additions and 0 deletions

View File

@@ -1729,6 +1729,10 @@ public class Component extends AbstractBasicComponent {
@Override
public boolean isVisibleInComponentDefinition() {
if(ComponentsUtils.DEPRECATED_COMPONENT_LIST.contains(this.getName())) {
return false;
}
return true;
}

View File

@@ -13,6 +13,7 @@
package org.talend.designer.core.generic.utils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
@@ -96,6 +97,9 @@ public class ComponentsUtils {
private static ComponentService compService = null;
public static List<String> DEPRECATED_COMPONENT_LIST = Arrays
.asList(new String[] { "tCouchbaseDCPInput","tCouchbaseDCPOutput" });
public static ComponentService getComponentService() {
if (compService != null) {
return compService;