TUP-641: add Junit to test the ERepositoryObjectType, if add/delete the types, in order to detect the modification and check together for DI and TAC.
git-svn-id: http://talendforge.org/svn/tos/trunk@101130 f6f1c999-d317-4740-80b0-e6d1abc6f99e
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2013 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.core.model.repository;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
||||
import junit.framework.Assert;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* DOC ggu class global comment. Detailled comment
|
||||
*/
|
||||
public class ERepositoryObjectTypeTest {
|
||||
|
||||
private ERepositoryObjectType[] allTypes;
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
allTypes = (ERepositoryObjectType[]) ERepositoryObjectType.values();
|
||||
Arrays.sort(allTypes, new Comparator<ERepositoryObjectType>() {
|
||||
|
||||
@Override
|
||||
public int compare(ERepositoryObjectType o1, ERepositoryObjectType o2) {
|
||||
return o1.getType().compareToIgnoreCase(o2.getType());
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
allTypes = null;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLoadedDITypes() {
|
||||
List<ERepositoryObjectType> resourceTypes = new ArrayList<ERepositoryObjectType>();
|
||||
for (ERepositoryObjectType type : allTypes) {
|
||||
if (type.isResouce() && type.isDIItemType()) {
|
||||
resourceTypes.add(type);
|
||||
// System.out.println(type.getType() + "(\"" + type.getKey() + "\"),");
|
||||
}
|
||||
}
|
||||
// System.out.println("DI Types totals:" + resourceTypes.size());
|
||||
Assert.assertEquals("Please check with TAC Team for Class ItemType, after add/delete some types for DI.", 41,
|
||||
resourceTypes.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLoadedCamelTypes() {
|
||||
List<ERepositoryObjectType> resourceTypes = new ArrayList<ERepositoryObjectType>();
|
||||
for (ERepositoryObjectType type : allTypes) {
|
||||
if (type.isResouce() && Arrays.asList(type.getProducts()).contains(ERepositoryObjectType.PROD_CAMEL)) {
|
||||
resourceTypes.add(type);
|
||||
// System.out.println(type.getType() + "(\"" + type.getKey() + "\"),");
|
||||
}
|
||||
}
|
||||
// System.out.println("Camel Types totals:" + resourceTypes.size());
|
||||
Assert.assertEquals("Please check with TAC Team for Class ItemType, after add/delete some types for Camel.", 4,
|
||||
resourceTypes.size());
|
||||
}
|
||||
|
||||
// @Test
|
||||
public void testLoadedDQTypes() {
|
||||
List<ERepositoryObjectType> resourceTypes = new ArrayList<ERepositoryObjectType>();
|
||||
for (ERepositoryObjectType type : allTypes) {
|
||||
if (type.isDQItemType()) {
|
||||
resourceTypes.add(type);
|
||||
// System.out.println(type.getType() + "(\"" + type.getKey() + "\"),");
|
||||
}
|
||||
}
|
||||
// PTODO
|
||||
// Assert.assertEquals("Please check with TAC Team for Class ItemType, after add/delete some types for DQ.", -1,
|
||||
// resourceTypes.size());
|
||||
// System.out.println("DQ Types totals:" + resourceTypes.size());
|
||||
}
|
||||
|
||||
// @Test
|
||||
public void testLoadedMDMTypes() {
|
||||
List<ERepositoryObjectType> resourceTypes = new ArrayList<ERepositoryObjectType>();
|
||||
for (ERepositoryObjectType type : allTypes) {
|
||||
if (type.getType().startsWith("MDM")) {
|
||||
resourceTypes.add(type);
|
||||
// System.out.println(type.getType() + "(\"" + type.getKey() + "\"),");
|
||||
}
|
||||
}
|
||||
// PTODO
|
||||
// Assert.assertEquals("Please check with TAC Team for Class ItemType, after add/delete some types for MDM.",
|
||||
// -1,
|
||||
// resourceTypes.size());
|
||||
// System.out.println("MDM Types totals:" + resourceTypes.size());
|
||||
}
|
||||
}
|
||||
@@ -74,254 +74,260 @@ import org.talend.repository.ProjectManager;
|
||||
*/
|
||||
public class ERepositoryObjectType extends DynaEnum<ERepositoryObjectType> {
|
||||
|
||||
public static final String PROD_DI = "DI"; //$NON-NLS-1$
|
||||
|
||||
private static final String PROD_DQ = "DQ"; //$NON-NLS-1$
|
||||
|
||||
public static final String PROD_CAMEL = "CAMEL"; //$NON-NLS-1$
|
||||
|
||||
public final static ERepositoryObjectType SVN_ROOT = new ERepositoryObjectType("repository.svnroot", "", "SVN_ROOT", true, 1,
|
||||
new String[] { "DI", "CAMEL" }, new String[] {}, false);
|
||||
new String[] { PROD_DI, PROD_CAMEL }, new String[] {}, false);
|
||||
|
||||
public final static ERepositoryObjectType SVG_BUSINESS_PROCESS = new ERepositoryObjectType("repository.svgBusinessProcess",
|
||||
"businessProcessSVG", "SVG_BUSINESS_PROCESS", true, 3, new String[] { "DI" }, new String[] {});
|
||||
"businessProcessSVG", "SVG_BUSINESS_PROCESS", true, 3, new String[] { PROD_DI }, new String[] {});
|
||||
|
||||
public final static ERepositoryObjectType SNIPPETS = new ERepositoryObjectType("repository.snippets", "code/snippets",
|
||||
"SNIPPETS", true, 10, new String[] { "DI" }, new String[] {}, false);
|
||||
"SNIPPETS", true, 10, new String[] { PROD_DI }, new String[] {}, false);
|
||||
|
||||
public final static ERepositoryObjectType DOCUMENTATION = new ERepositoryObjectType("repository.documentation",
|
||||
"documentations", "DOCUMENTATION", true, 11, new String[] { "DI" }, new String[] {});
|
||||
"documentations", "DOCUMENTATION", true, 11, new String[] { PROD_DI }, new String[] {});
|
||||
|
||||
public final static ERepositoryObjectType METADATA = new ERepositoryObjectType("repository.metadata", "metadata", "METADATA",
|
||||
true, 12, new String[] { "DI", "DQ" }, new String[] {}, false);
|
||||
true, 12, new String[] { PROD_DI, PROD_DQ }, new String[] {}, false);
|
||||
|
||||
public final static ERepositoryObjectType METADATA_CON_TABLE = new ERepositoryObjectType("repository.metadataTable",
|
||||
"METADATA_CON_TABLE", 13, true, true, new String[] { "DI" }, new String[] {}, false);
|
||||
"METADATA_CON_TABLE", 13, true, true, new String[] { PROD_DI }, new String[] {}, false);
|
||||
|
||||
public final static ERepositoryObjectType METADATA_CON_COLUMN = new ERepositoryObjectType("repository.metadataColumn",
|
||||
"METADATA_CON_COLUMN", 14, true, true, new String[] { "DI" }, new String[] {}, false);
|
||||
"METADATA_CON_COLUMN", 14, true, true, new String[] { PROD_DI }, new String[] {}, false);
|
||||
|
||||
public final static ERepositoryObjectType METADATA_CON_VIEW = new ERepositoryObjectType("repository.metadataView",
|
||||
"METADATA_CON_VIEW", 15, true, true, new String[] { "DI" }, new String[] {}, false);
|
||||
"METADATA_CON_VIEW", 15, true, true, new String[] { PROD_DI }, new String[] {}, false);
|
||||
|
||||
public final static ERepositoryObjectType METADATA_CON_CATALOG = new ERepositoryObjectType("repository.metadataCatalog",
|
||||
"METADATA_CON_CATALOG", 16, true, true, new String[] { "DI" }, new String[] {}, false);
|
||||
"METADATA_CON_CATALOG", 16, true, true, new String[] { PROD_DI }, new String[] {}, false);
|
||||
|
||||
public final static ERepositoryObjectType METADATA_CON_SCHEMA = new ERepositoryObjectType("repository.metadataSchema",
|
||||
"METADATA_CON_SCHEMA", 17, true, true, new String[] { "DI" }, new String[] {}, false);
|
||||
"METADATA_CON_SCHEMA", 17, true, true, new String[] { PROD_DI }, new String[] {}, false);
|
||||
|
||||
public final static ERepositoryObjectType METADATA_CON_SYNONYM = new ERepositoryObjectType("repository.synonym",
|
||||
"METADATA_CON_SYNONYM", 18, true, true, new String[] { "DI" }, new String[] {}, false);
|
||||
"METADATA_CON_SYNONYM", 18, true, true, new String[] { PROD_DI }, new String[] {}, false);
|
||||
|
||||
public final static ERepositoryObjectType METADATA_CON_QUERY = new ERepositoryObjectType("repository.query",
|
||||
"METADATA_CON_QUERY", 19, true, true, new String[] { "DI" }, new String[] {}, false);
|
||||
"METADATA_CON_QUERY", 19, true, true, new String[] { PROD_DI }, new String[] {}, false);
|
||||
|
||||
public final static ERepositoryObjectType METADATA_CON_CDC = new ERepositoryObjectType("repository.CDC", "METADATA_CON_CDC",
|
||||
20, true, true, new String[] { "DI" }, new String[] {}, false);
|
||||
20, true, true, new String[] { PROD_DI }, new String[] {}, false);
|
||||
|
||||
public final static ERepositoryObjectType METADATA_SAP_FUNCTION = new ERepositoryObjectType(
|
||||
"repository.SAPFunction", "METADATA_SAP_FUNCTION", 21, true, true, new String[] { "DI" }, new String[] {}, false); //$NON-NLS-1$
|
||||
"repository.SAPFunction", "METADATA_SAP_FUNCTION", 21, true, true, new String[] { PROD_DI }, new String[] {}, false); //$NON-NLS-1$
|
||||
|
||||
public final static ERepositoryObjectType METADATA_SAP_IDOC = new ERepositoryObjectType("repository.SAPIDoc",
|
||||
"METADATA_SAP_IDOC", 22, true, true, new String[] { "DI" }, new String[] {}, false);
|
||||
"METADATA_SAP_IDOC", 22, true, true, new String[] { PROD_DI }, new String[] {}, false);
|
||||
|
||||
public final static ERepositoryObjectType MDM_CONCEPT = new ERepositoryObjectType(
|
||||
"repository.concept", "MDM_CONCEPT", 23, true, true, new String[] { "DI" }, new String[] {}, false); //$NON-NLS-1$
|
||||
"repository.concept", "MDM_CONCEPT", 23, true, true, new String[] { PROD_DI }, new String[] {}, false); //$NON-NLS-1$
|
||||
|
||||
public final static ERepositoryObjectType MDM_SCHEMA = new ERepositoryObjectType(
|
||||
"repository.xmlSchema", "MDM_SCHEMA", 24, true, true, new String[] { "DI" }, new String[] {}, false); //$NON-NLS-1$
|
||||
"repository.xmlSchema", "MDM_SCHEMA", 24, true, true, new String[] { PROD_DI }, new String[] {}, false); //$NON-NLS-1$
|
||||
|
||||
public final static ERepositoryObjectType MDM_ELEMENT_TYPE = new ERepositoryObjectType(
|
||||
"repository.xmlElementType", "MDM_ELEMENT_TYPE", 25, true, true, new String[] { "DI" }, new String[] {}, false);//$NON-NLS-1$
|
||||
"repository.xmlElementType", "MDM_ELEMENT_TYPE", 25, true, true, new String[] { PROD_DI }, new String[] {}, false);//$NON-NLS-1$
|
||||
|
||||
public final static ERepositoryObjectType RECYCLE_BIN = new ERepositoryObjectType("repository.recyclebin", "", "RECYCLE_BIN",
|
||||
true, 26, new String[] { "DI", "CAMEL" }, new String[] {}, false);
|
||||
true, 26, new String[] { PROD_DI, PROD_CAMEL }, new String[] {}, false);
|
||||
|
||||
public final static ERepositoryObjectType METADATA_COLUMN = new ERepositoryObjectType("repository.column", "",
|
||||
"METADATA_COLUMN", true, 27, new String[] { "DI" }, new String[] {}, false);
|
||||
"METADATA_COLUMN", true, 27, new String[] { PROD_DI }, new String[] {}, false);
|
||||
|
||||
// feature 0006484 add
|
||||
public final static ERepositoryObjectType METADATA_FILE_RULES = new ERepositoryObjectType(
|
||||
"repository.metadataFileRules", "metadata/rules", "METADATA_FILE_RULES", 28, true, "repository.metadataFileRules.alias", new String[] { "DI" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataFileRules", "metadata/rules", "METADATA_FILE_RULES", 28, true, "repository.metadataFileRules.alias", new String[] { PROD_DI }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType METADATA_FILE_LINKRULES = new ERepositoryObjectType(
|
||||
"repository.metadataLinkFileRules", "metadata/rules", "METADATA_FILE_LINKRULES", 29, true, "repository.metadataLinkFileRules.alias", new String[] { "DI" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataLinkFileRules", "metadata/rules", "METADATA_FILE_LINKRULES", 29, true, "repository.metadataLinkFileRules.alias", new String[] { PROD_DI }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType METADATA_RULES_MANAGEMENT = new ERepositoryObjectType(
|
||||
"repository.metadataRulesManagement", "", "METADATA_RULES_MANAGEMENT", 30, true, "repository.metadataRulesManagement.alias", new String[] { "DI" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataRulesManagement", "", "METADATA_RULES_MANAGEMENT", 30, true, "repository.metadataRulesManagement.alias", new String[] { PROD_DI }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType METADATA_CONNECTIONS = new ERepositoryObjectType(
|
||||
"repository.metadataConnections", "metadata/connections", "METADATA_CONNECTIONS", 31, true, "repository.metadataConnections.alias", new String[] { "DI", "DQ" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataConnections", "metadata/connections", "METADATA_CONNECTIONS", 31, true, "repository.metadataConnections.alias", new String[] { PROD_DI, PROD_DQ }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType METADATA_SAPCONNECTIONS = new ERepositoryObjectType(
|
||||
"repository.metadataSAPConnections", "metadata/sapconnections", "METADATA_SAPCONNECTIONS", 32, true, "repository.metadataSAPConnections.alias", new String[] { "DI" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataSAPConnections", "metadata/sapconnections", "METADATA_SAPCONNECTIONS", 32, true, "repository.metadataSAPConnections.alias", new String[] { PROD_DI }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType METADATA_EDIFACT = new ERepositoryObjectType("repositorymetadataEDIFact",
|
||||
"metadata/EDISchema", "METADATA_EDIFACT", 50, true, "repositorymetadataEDIFact.alias", new String[] { "DI" },
|
||||
"metadata/EDISchema", "METADATA_EDIFACT", 50, true, "repositorymetadataEDIFact.alias", new String[] { PROD_DI },
|
||||
new String[] {});
|
||||
|
||||
public final static ERepositoryObjectType SQLPATTERNS = new ERepositoryObjectType(
|
||||
"repository.metadataSQLPatterns", "sqlPatterns", "SQLPATTERNS", 33, true, "repository.metadataSQLPatterns.alias", new String[] { "DI" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataSQLPatterns", "sqlPatterns", "SQLPATTERNS", 33, true, "repository.metadataSQLPatterns.alias", new String[] { PROD_DI }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType METADATA_FILE_EBCDIC = new ERepositoryObjectType(
|
||||
"repository.metadataFileEDCDIC", "metadata/fileEBCDIC", "METADATA_FILE_EBCDIC", 34, true, "repository.metadataFileEDCDIC.alias", new String[] { "DI" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataFileEDCDIC", "metadata/fileEBCDIC", "METADATA_FILE_EBCDIC", 34, true, "repository.metadataFileEDCDIC.alias", new String[] { PROD_DI }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType METADATA_FILE_HL7 = new ERepositoryObjectType(
|
||||
"repository.metadataFileHL7", "metadata/fileHL7", "METADATA_FILE_HL7", 35, true, "repository.metadataFileHL7.alias", new String[] { "DI" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataFileHL7", "metadata/fileHL7", "METADATA_FILE_HL7", 35, true, "repository.metadataFileHL7.alias", new String[] { PROD_DI }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType METADATA_FILE_FTP = new ERepositoryObjectType(
|
||||
"repository.metadataFileFTP", "metadata/FTPconnections", "METADATA_FILE_FTP", 36, true, "repository.metadataFileFTP.alias", new String[] { "DI" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataFileFTP", "metadata/FTPconnections", "METADATA_FILE_FTP", 36, true, "repository.metadataFileFTP.alias", new String[] { PROD_DI }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
// 0015169 added
|
||||
public final static ERepositoryObjectType METADATA_FILE_BRMS = new ERepositoryObjectType(
|
||||
"repository.metadataFileBRMS", "metadata/BRMSconnections", "METADATA_FILE_BRMS", 37, true, "repository.metadataFileBRMS.alias", new String[] { "DI" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataFileBRMS", "metadata/BRMSconnections", "METADATA_FILE_BRMS", 37, true, "repository.metadataFileBRMS.alias", new String[] { PROD_DI }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType METADATA_FILE_DELIMITED = new ERepositoryObjectType(
|
||||
"repository.metadataFileDelimited", "metadata/fileDelimited", "METADATA_FILE_DELIMITED", 39, true, "repository.metadataFileDelimited.alias", new String[] { "DI", "DQ" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataFileDelimited", "metadata/fileDelimited", "METADATA_FILE_DELIMITED", 39, true, "repository.metadataFileDelimited.alias", new String[] { PROD_DI, PROD_DQ }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType METADATA_VALIDATION_RULES = new ERepositoryObjectType(
|
||||
"repository.metadataValidationRules", "metadata/validationRules", "METADATA_VALIDATION_RULES", 48, true, "repository.metadataValidationRules.alias", new String[] { "DI" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataValidationRules", "metadata/validationRules", "METADATA_VALIDATION_RULES", 48, true, "repository.metadataValidationRules.alias", new String[] { PROD_DI }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType METADATA_VALIDATIONS_RULES_FOLDER = new ERepositoryObjectType(
|
||||
"repository.metadataValidationRulesFolder", "", "METADATA_VALIDATIONS_RULES_FOLDER", 49, true, "repository.metadataValidationRulesFolder.alias", new String[] { "DI" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataValidationRulesFolder", "", "METADATA_VALIDATIONS_RULES_FOLDER", 49, true, "repository.metadataValidationRulesFolder.alias", new String[] { PROD_DI }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType FOLDER = new ERepositoryObjectType(
|
||||
"repository.folder", "", "FOLDER", true, 50, new String[] { "DI" }, new String[] {}, false); //$NON-NLS-1$
|
||||
"repository.folder", "", "FOLDER", true, 50, new String[] { PROD_DI }, new String[] {}, false); //$NON-NLS-1$
|
||||
|
||||
public final static ERepositoryObjectType REFERENCED_PROJECTS = new ERepositoryObjectType(
|
||||
"repository.referencedProjects", "", "REFERENCED_PROJECTS", 51, true, "repository.referencedProjects.alias", new String[] { "DI" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.referencedProjects", "", "REFERENCED_PROJECTS", 51, true, "repository.referencedProjects.alias", new String[] { PROD_DI }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType GENERATED = new ERepositoryObjectType(
|
||||
"repository.generated", "documentations/generated", "GENERATED", true, 52, new String[] { "DI" }, new String[] {}, false); //$NON-NLS-1$
|
||||
"repository.generated", "documentations/generated", "GENERATED", true, 52, new String[] { PROD_DI }, new String[] {}, false); //$NON-NLS-1$
|
||||
|
||||
public final static ERepositoryObjectType JOBS = new ERepositoryObjectType(
|
||||
"repository.jobs", "documentations/generated/jobs", "JOBS", true, 53, new String[] { "DI" }, new String[] {}, false); //$NON-NLS-1$
|
||||
"repository.jobs", "documentations/generated/jobs", "JOBS", true, 53, new String[] { PROD_DI }, new String[] {}, false); //$NON-NLS-1$
|
||||
|
||||
public final static ERepositoryObjectType JOB_DOC = new ERepositoryObjectType(
|
||||
"repository.jobdoc", "documentations/generated/jobs", "JOB_DOC", true, 54, new String[] { "DI" }, new String[] {}); //$NON-NLS-1$
|
||||
"repository.jobdoc", "documentations/generated/jobs", "JOB_DOC", true, 54, new String[] { PROD_DI }, new String[] {}); //$NON-NLS-1$
|
||||
|
||||
public final static ERepositoryObjectType LIBS = new ERepositoryObjectType(
|
||||
"repository.libs", "libs", "LIBS", true, 56, new String[] { "DI" }, new String[] {}, false); //$NON-NLS-1$
|
||||
"repository.libs", "libs", "LIBS", true, 56, new String[] { PROD_DI }, new String[] {}, false); //$NON-NLS-1$
|
||||
|
||||
public final static ERepositoryObjectType JOBLETS = new ERepositoryObjectType(
|
||||
"repository.joblets", "documentations/generated/joblets", "JOBLETS", true, 58, new String[] { "DI" }, new String[] {}, false); //$NON-NLS-1$
|
||||
"repository.joblets", "documentations/generated/joblets", "JOBLETS", true, 58, new String[] { PROD_DI }, new String[] {}, false); //$NON-NLS-1$
|
||||
|
||||
public final static ERepositoryObjectType JOBLET_DOC = new ERepositoryObjectType(
|
||||
"repository.jobletdoc", "documentations/generated/joblets", "JOBLET_DOC", true, 59, new String[] { "DI" }, new String[] {}); //$NON-NLS-1$
|
||||
"repository.jobletdoc", "documentations/generated/joblets", "JOBLET_DOC", true, 59, new String[] { PROD_DI }, new String[] {}); //$NON-NLS-1$
|
||||
|
||||
public final static ERepositoryObjectType COMPONENTS = new ERepositoryObjectType(
|
||||
"repository.components", "components", "COMPONENTS", true, 61, new String[] { "DI" }, new String[] {}, false); //$NON-NLS-1$
|
||||
"repository.components", "components", "COMPONENTS", true, 61, new String[] { PROD_DI }, new String[] {}, false); //$NON-NLS-1$
|
||||
|
||||
// MOD mzhao feature 9207
|
||||
public final static ERepositoryObjectType TDQ_ELEMENT = new ERepositoryObjectType(
|
||||
"repository.tdqelement", "", "TDQ_ELEMENT", 62, true, "repository.tdqelement.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.tdqelement", "", "TDQ_ELEMENT", 62, true, "repository.tdqelement.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
// MOD mzhao feature 13114, 2010-05-19
|
||||
public final static ERepositoryObjectType TDQ_ANALYSIS_ELEMENT = new ERepositoryObjectType(
|
||||
"repository.tdqelement.analysis", "TDQ_Data Profiling/Analyses", "TDQ_ANALYSIS_ELEMENT", 63, true, "repository.tdqelement.analysis.alias", new String[] { "DQ" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.tdqelement.analysis", "TDQ_Data Profiling/Analyses", "TDQ_ANALYSIS_ELEMENT", 63, true, "repository.tdqelement.analysis.alias", new String[] { PROD_DQ }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType TDQ_REPORT_ELEMENT = new ERepositoryObjectType(
|
||||
"repository.tdqelement.report", "TDQ_Data Profiling/Reports", "TDQ_REPORT_ELEMENT", 64, true, "repository.tdqelement.report.alias", new String[] { "DQ" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.tdqelement.report", "TDQ_Data Profiling/Reports", "TDQ_REPORT_ELEMENT", 64, true, "repository.tdqelement.report.alias", new String[] { PROD_DQ }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType TDQ_INDICATOR_ELEMENT = new ERepositoryObjectType(
|
||||
"repository.tdqelement.indicator", "TDQ_Libraries/Indicators", "TDQ_INDICATOR_ELEMENT", 66, true, "repository.tdqelement.indicator.alias", new String[] { "DQ" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.tdqelement.indicator", "TDQ_Libraries/Indicators", "TDQ_INDICATOR_ELEMENT", 66, true, "repository.tdqelement.indicator.alias", new String[] { PROD_DQ }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType TDQ_PATTERN_ELEMENT = new ERepositoryObjectType(
|
||||
"repository.tdqelement.pattern", "TDQ_Libraries/Patterns", "TDQ_PATTERN_ELEMENT", 67, true, "repository.tdqelement.pattern.alias", new String[] { "DQ" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.tdqelement.pattern", "TDQ_Libraries/Patterns", "TDQ_PATTERN_ELEMENT", 67, true, "repository.tdqelement.pattern.alias", new String[] { PROD_DQ }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType TDQ_SOURCE_FILE_ELEMENT = new ERepositoryObjectType(
|
||||
"repository.tdqelement.sourceFile", "TDQ_Libraries/Source Files", "TDQ_SOURCE_FILE_ELEMENT", 68, true, "repository.tdqelement.sourceFile.alias", new String[] { "DQ" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.tdqelement.sourceFile", "TDQ_Libraries/Source Files", "TDQ_SOURCE_FILE_ELEMENT", 68, true, "repository.tdqelement.sourceFile.alias", new String[] { PROD_DQ }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
// MOD zqin feature 14507
|
||||
public final static ERepositoryObjectType TDQ_JRAXML_ELEMENT = new ERepositoryObjectType(
|
||||
"repository.tdqelement.jrxml", "TDQ_Libraries/JRXML Template", "TDQ_JRAXML_ELEMENT", 69, true, "repository.tdqelement.jrxml.alias", new String[] { "DQ" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.tdqelement.jrxml", "TDQ_Libraries/JRXML Template", "TDQ_JRAXML_ELEMENT", 69, true, "repository.tdqelement.jrxml.alias", new String[] { PROD_DQ }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType TDQ_FOLDER_NODE = new ERepositoryObjectType(
|
||||
"repository.tdqelement.folderNode", "", "TDQ_FOLDER_NODE", 70, true, "repository.tdqelement.folderNode.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.tdqelement.folderNode", "", "TDQ_FOLDER_NODE", 70, true, "repository.tdqelement.folderNode.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
// MOD klliu feature 15750
|
||||
public final static ERepositoryObjectType TDQ_DATA_PROFILING = new ERepositoryObjectType(
|
||||
"repository.dataprofiling", "TDQ_Data Profiling", "TDQ_DATA_PROFILING", 71, true, "repository.dataprofiling.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.dataprofiling", "TDQ_Data Profiling", "TDQ_DATA_PROFILING", 71, true, "repository.dataprofiling.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType TDQ_LIBRARIES = new ERepositoryObjectType(
|
||||
"repository.libraries", "TDQ_Libraries", "TDQ_LIBRARIES", 74, true, "repository.libraries.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.libraries", "TDQ_Libraries", "TDQ_LIBRARIES", 74, true, "repository.libraries.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType TDQ_PATTERN_REGEX = new ERepositoryObjectType(
|
||||
"repository.patternRegex", "TDQ_Libraries/Patterns/Regex", "TDQ_PATTERN_REGEX", 76, true, "repository.patternRegex.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.patternRegex", "TDQ_Libraries/Patterns/Regex", "TDQ_PATTERN_REGEX", 76, true, "repository.patternRegex.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType TDQ_PATTERN_SQL = new ERepositoryObjectType(
|
||||
"repository.patternSql", "TDQ_Libraries/Patterns/SQL", "TDQ_PATTERN_SQL", 77, true, "repository.patternSql.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.patternSql", "TDQ_Libraries/Patterns/SQL", "TDQ_PATTERN_SQL", 77, true, "repository.patternSql.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType TDQ_RULES = new ERepositoryObjectType(
|
||||
"repository.rules", "TDQ_Libraries/Rules", "TDQ_RULES", 79, true, "repository.rules.alias", new String[] { "DQ" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.rules", "TDQ_Libraries/Rules", "TDQ_RULES", 79, true, "repository.rules.alias", new String[] { PROD_DQ }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType TDQ_RULES_SQL = new ERepositoryObjectType(
|
||||
"repository.rulesSql", "TDQ_Libraries/Rules/SQL", "TDQ_RULES_SQL", 80, true, "repository.rulesSql.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.rulesSql", "TDQ_Libraries/Rules/SQL", "TDQ_RULES_SQL", 80, true, "repository.rulesSql.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
// MOD klliu feature 23109
|
||||
|
||||
public final static ERepositoryObjectType TDQ_RULES_PARSER = new ERepositoryObjectType(
|
||||
"repository.rulesParser", "TDQ_Libraries/Rules/Parser", "TDQ_RULES_PARSER", 81, true, "repository.rulesParser.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.rulesParser", "TDQ_Libraries/Rules/Parser", "TDQ_RULES_PARSER", 81, true, "repository.rulesParser.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
// ~
|
||||
// MOD klliu 2010-11-26 definition type
|
||||
|
||||
public final static ERepositoryObjectType TDQ_SYSTEM_INDICATORS = new ERepositoryObjectType(
|
||||
"repository.systemIndicators", "TDQ_Libraries/Indicators/System Indicators", "TDQ_SYSTEM_INDICATORS", 83, true, "repository.systemIndicators.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators", "TDQ_Libraries/Indicators/System Indicators", "TDQ_SYSTEM_INDICATORS", 83, true, "repository.systemIndicators.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType TDQ_USERDEFINE_INDICATORS = new ERepositoryObjectType(
|
||||
"repository.userDefineIndicators", "TDQ_Libraries/Indicators/User Defined Indicators", "TDQ_USERDEFINE_INDICATORS", 84, true, "repository.userDefineIndicators.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.userDefineIndicators", "TDQ_Libraries/Indicators/User Defined Indicators", "TDQ_USERDEFINE_INDICATORS", 84, true, "repository.userDefineIndicators.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType TDQ_USERDEFINE_INDICATORS_LIB = new ERepositoryObjectType(
|
||||
"repository.userDefineIndicators.lib", "", "TDQ_USERDEFINE_INDICATORS_LIB", 85, true, "repository.userDefineIndicators.lib.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.userDefineIndicators.lib", "", "TDQ_USERDEFINE_INDICATORS_LIB", 85, true, "repository.userDefineIndicators.lib.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_ADVANCED_STATISTICS = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.advancedStatistics", "TDQ_Libraries/Indicators/System Indicators/Advanced Statistics", "SYSTEM_INDICATORS_ADVANCED_STATISTICS", 86, true, "repository.systemIndicators.advancedStatistics.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.advancedStatistics", "TDQ_Libraries/Indicators/System Indicators/Advanced Statistics", "SYSTEM_INDICATORS_ADVANCED_STATISTICS", 86, true, "repository.systemIndicators.advancedStatistics.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_BUSINESS_RULES = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.businessRules", "TDQ_Libraries/Indicators/System Indicators/Business Rules", "SYSTEM_INDICATORS_BUSINESS_RULES", 87, true, "repository.systemIndicators.businessRules.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.businessRules", "TDQ_Libraries/Indicators/System Indicators/Business Rules", "SYSTEM_INDICATORS_BUSINESS_RULES", 87, true, "repository.systemIndicators.businessRules.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_CORRELATION = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.correlation", "TDQ_Libraries/Indicators/System Indicators/Correlation", "SYSTEM_INDICATORS_CORRELATION", 88, true, "repository.systemIndicators.correlation.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.correlation", "TDQ_Libraries/Indicators/System Indicators/Correlation", "SYSTEM_INDICATORS_CORRELATION", 88, true, "repository.systemIndicators.correlation.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_FUNCTIONAL_DEPENDENCY = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.functionalDependency", "TDQ_Libraries/Indicators/System Indicators/Functional Dependency", "SYSTEM_INDICATORS_FUNCTIONAL_DEPENDENCY", 89, true, "repository.systemIndicators.functionalDependency.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.functionalDependency", "TDQ_Libraries/Indicators/System Indicators/Functional Dependency", "SYSTEM_INDICATORS_FUNCTIONAL_DEPENDENCY", 89, true, "repository.systemIndicators.functionalDependency.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_OVERVIEW = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.overview, repository.systemIndicators.overview.alias", "TDQ_Libraries/Indicators/System Indicators/Overview", "SYSTEM_INDICATORS_OVERVIEW", true, 90, new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.overview, repository.systemIndicators.overview.alias", "TDQ_Libraries/Indicators/System Indicators/Overview", "SYSTEM_INDICATORS_OVERVIEW", true, 90, new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_PATTERN_FINDER = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.patternFinder", "TDQ_Libraries/Indicators/System Indicators/Pattern Finder", "SYSTEM_INDICATORS_PATTERN_FINDER", 91, true, "repository.systemIndicators.patternFinder.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.patternFinder", "TDQ_Libraries/Indicators/System Indicators/Pattern Finder", "SYSTEM_INDICATORS_PATTERN_FINDER", 91, true, "repository.systemIndicators.patternFinder.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_PATTERN_MATCHING = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.patternMatching", "TDQ_Libraries/Indicators/System Indicators/Pattern Matching", "SYSTEM_INDICATORS_PATTERN_MATCHING", 92, true, "repository.systemIndicators.patternMatching.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.patternMatching", "TDQ_Libraries/Indicators/System Indicators/Pattern Matching", "SYSTEM_INDICATORS_PATTERN_MATCHING", 92, true, "repository.systemIndicators.patternMatching.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_ROW_COMPARISON = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.rowComparison", "TDQ_Libraries/Indicators/System Indicators/Row Comparison", "SYSTEM_INDICATORS_ROW_COMPARISON", 93, true, "repository.systemIndicators.rowComparison.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.rowComparison", "TDQ_Libraries/Indicators/System Indicators/Row Comparison", "SYSTEM_INDICATORS_ROW_COMPARISON", 93, true, "repository.systemIndicators.rowComparison.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_SIMPLE_STATISTICS = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.simpleStatistics", "TDQ_Libraries/Indicators/System Indicators/Simple Statistics", "SYSTEM_INDICATORS_SIMPLE_STATISTICS", 94, true, "repository.systemIndicators.simpleStatistics.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.simpleStatistics", "TDQ_Libraries/Indicators/System Indicators/Simple Statistics", "SYSTEM_INDICATORS_SIMPLE_STATISTICS", 94, true, "repository.systemIndicators.simpleStatistics.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_SOUNDEX = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.soundex", "TDQ_Libraries/Indicators/System Indicators/Soundex", "SYSTEM_INDICATORS_SOUNDEX", 95, true, "repository.systemIndicators.soundex.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.soundex", "TDQ_Libraries/Indicators/System Indicators/Soundex", "SYSTEM_INDICATORS_SOUNDEX", 95, true, "repository.systemIndicators.soundex.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_SUMMARY_STATISTICS = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.summaryStatistics", "TDQ_Libraries/Indicators/System Indicators/Summary Statistics", "SYSTEM_INDICATORS_SUMMARY_STATISTICS", 96, true, "repository.systemIndicators.summaryStatistics.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.summaryStatistics", "TDQ_Libraries/Indicators/System Indicators/Summary Statistics", "SYSTEM_INDICATORS_SUMMARY_STATISTICS", 96, true, "repository.systemIndicators.summaryStatistics.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_TEXT_STATISTICS = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.textStatistics", "TDQ_Libraries/Indicators/System Indicators/Text Statistics", "SYSTEM_INDICATORS_TEXT_STATISTICS", 97, true, "repository.systemIndicators.textStatistics.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.textStatistics", "TDQ_Libraries/Indicators/System Indicators/Text Statistics", "SYSTEM_INDICATORS_TEXT_STATISTICS", 97, true, "repository.systemIndicators.textStatistics.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType TDQ_EXCHANGE = new ERepositoryObjectType(
|
||||
"repository.tdqExchange", "TDQ_Libraries/Exchange", "TDQ_EXCHANGE", 98, true, "repository.tdqExchange.alias", new String[] { "DQ" }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.tdqExchange", "TDQ_Libraries/Exchange", "TDQ_EXCHANGE", 98, true, "repository.tdqExchange.alias", new String[] { PROD_DQ }, new String[] {}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType METADATA_SALESFORCE_MODULE = new ERepositoryObjectType(
|
||||
"repository.metadataSalesforceModule", "METADATA_SALESFORCE_MODULE", 99, true, true, new String[] { "DI" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.metadataSalesforceModule", "METADATA_SALESFORCE_MODULE", 99, true, true, new String[] { PROD_DI }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_PHONENUMBER_STATISTICS = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.phoneNumberStatistics", "TDQ_Libraries/Indicators/System Indicators/Phone Number Statistics", "SYSTEM_INDICATORS_PHONENUMBER_STATISTICS", 100, true, "repository.systemIndicators.phoneNumberStatistics.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.phoneNumberStatistics", "TDQ_Libraries/Indicators/System Indicators/Phone Number Statistics", "SYSTEM_INDICATORS_PHONENUMBER_STATISTICS", 100, true, "repository.systemIndicators.phoneNumberStatistics.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SERVICESOPERATION = new ERepositoryObjectType(
|
||||
"repository.servicesOperation", "SERVICESOPERATION", 101, true, true, new String[] { "DI", "CAMEL" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.servicesOperation", "SERVICESOPERATION", 101, true, true, new String[] { PROD_DI, PROD_CAMEL }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SERVICESPORT = new ERepositoryObjectType(
|
||||
"repository.servicesPort", "SERVICESPORT", 102, true, true, new String[] { "DI", "CAMEL" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.servicesPort", "SERVICESPORT", 102, true, true, new String[] { PROD_DI, PROD_CAMEL }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
public final static ERepositoryObjectType SYSTEM_INDICATORS_FRAUDDETECTION = new ERepositoryObjectType(
|
||||
"repository.systemIndicators.fraudDetection", "TDQ_Libraries/Indicators/System Indicators/Fraud Detection", "SYSTEM_INDICATORS_FRAUDDETECTION", 103, true, "repository.systemIndicators.fraudDetectionStatistics.alias", new String[] { "DQ" }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"repository.systemIndicators.fraudDetection", "TDQ_Libraries/Indicators/System Indicators/Fraud Detection", "SYSTEM_INDICATORS_FRAUDDETECTION", 103, true, "repository.systemIndicators.fraudDetectionStatistics.alias", new String[] { PROD_DQ }, new String[] {}, false); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
private String label;
|
||||
|
||||
@@ -456,12 +462,12 @@ public class ERepositoryObjectType extends DynaEnum<ERepositoryObjectType> {
|
||||
if (currentProject != null) {
|
||||
projectType = currentProject.getEmfProject().getType();
|
||||
}
|
||||
if ("DI".equals(projectType)) {
|
||||
if (PROD_DI.equals(projectType)) {
|
||||
// limit with DI items only.
|
||||
List<ERepositoryObjectType> toReturn = new ArrayList<ERepositoryObjectType>();
|
||||
for (ERepositoryObjectType currentType : values(ERepositoryObjectType.class)) {
|
||||
if (ArrayUtils.contains(currentType.getProducts(), "DI")
|
||||
|| ArrayUtils.contains(currentType.getProducts(), "CAMEL")) {
|
||||
if (ArrayUtils.contains(currentType.getProducts(), PROD_DI)
|
||||
|| ArrayUtils.contains(currentType.getProducts(), PROD_CAMEL)) {
|
||||
toReturn.add(currentType);
|
||||
}
|
||||
}
|
||||
@@ -473,7 +479,7 @@ public class ERepositoryObjectType extends DynaEnum<ERepositoryObjectType> {
|
||||
if (!PluginChecker.isPluginLoaded("org.talend.dataprofiler.core")) { //$NON-NLS-1$
|
||||
List<ERepositoryObjectType> toReturn = new ArrayList<ERepositoryObjectType>();
|
||||
for (ERepositoryObjectType currentType : values(ERepositoryObjectType.class)) {
|
||||
if (!(currentType.getProducts().length == 1 && ArrayUtils.contains(currentType.getProducts(), "DQ"))) { //$NON-NLS-1$
|
||||
if (!(currentType.getProducts().length == 1 && ArrayUtils.contains(currentType.getProducts(), PROD_DQ))) {
|
||||
toReturn.add(currentType);
|
||||
}
|
||||
}
|
||||
@@ -946,7 +952,7 @@ public class ERepositoryObjectType extends DynaEnum<ERepositoryObjectType> {
|
||||
* @return
|
||||
*/
|
||||
public boolean isDQItemType() {
|
||||
return Arrays.asList(this.getProducts()).contains("DQ");
|
||||
return Arrays.asList(this.getProducts()).contains(PROD_DQ);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -958,7 +964,7 @@ public class ERepositoryObjectType extends DynaEnum<ERepositoryObjectType> {
|
||||
* @return
|
||||
*/
|
||||
public boolean isDIItemType() {
|
||||
return Arrays.asList(this.getProducts()).contains("DI");
|
||||
return Arrays.asList(this.getProducts()).contains(PROD_DI);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user