Compare commits
2 Commits
release/6.
...
release/6.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c6744b049 | ||
|
|
bd79c45bed |
4
.gitignore
vendored
@@ -4,7 +4,3 @@ target/
|
||||
class/
|
||||
classes/
|
||||
.settings/
|
||||
main/plugins/org.talend.designer.codegen/resources/sparkstreaming_footer.javajet
|
||||
main/plugins/org.talend.designer.codegen/resources/sparkstreaming_header.javajet
|
||||
main/plugins/org.talend.designer.codegen/resources/sparkstreaming_subprocess_footer.javajet
|
||||
main/plugins/org.talend.designer.codegen/resources/sparkstreaming_subprocess_header.javajet
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.componentdesigner.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.componentdesigner.rcp.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.abstractmap.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.alfrescooutput.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.business.diagram.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.codegen.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.components.exchange.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.core.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.dbmap.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.documentation.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.fileoutputxml.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.gefabstractmap.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.hl7.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.mapper.nl</artifactId>
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src/main/java"/>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
@@ -1,28 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>org.talend.designer.maven.job.nl</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -1,8 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: Maven Job NL
|
||||
Bundle-SymbolicName: org.talend.designer.maven.job.nl
|
||||
Bundle-Version: 6.0.0.qualifier
|
||||
Bundle-Vendor: .Talend SA.
|
||||
Fragment-Host: org.talend.designer.maven.job
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||
@@ -1 +0,0 @@
|
||||
jarprocessor.exclude.children=true
|
||||
@@ -1,5 +0,0 @@
|
||||
source.. = src/main/java/
|
||||
output.. = target/classes/
|
||||
bin.includes = META-INF/,\
|
||||
.,\
|
||||
plugin_en.properties
|
||||
@@ -1,4 +0,0 @@
|
||||
ProjectSettingPage_Assembly=Assembly
|
||||
ProjectSettingPage_StandaloneJob=Standalone Job
|
||||
RepositorySettingPage_Pom_Title=Pom script setting
|
||||
RepositorySettingPage_ASSEMBLY_Title=Assembly script setting
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.maven.job.nl</artifactId>
|
||||
<packaging>eclipse-plugin</packaging>
|
||||
</project>
|
||||
@@ -1,6 +0,0 @@
|
||||
StandaloneJobPomProjectSettingPage_Title=POM script
|
||||
StandaloneJobAssemblyProjectSettingPage_Title=Assembly script
|
||||
StandaloneJobRepositorySettingPage_ExistedMavenSettingMessage=The custom Maven files '{0}' and '{1}' have existed.\nYou can modify them by self.
|
||||
StandaloneJobRepositorySettingPage_CreatingMavenSettingMessage=You can custom the Maven files '{0}' and '{1}' in the current folder.
|
||||
StandaloneJobRepositorySettingPage_CreatingMavenSettingNote=NOTE:
|
||||
StandaloneJobRepositorySettingPage_CreatingMavenSettingNoteMessage=When create, will base on the '{0}' from Project Setting.
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.rowgenerator.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.runprocess.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.scd.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.webservice.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.xmlmap.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.expressionbuilder.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.repository.ftp.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.repository.json.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.repository.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.repository.view.di.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.sbi.engines.client.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.scheduler.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.spagic.engines.client.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.sqlbuilder.nl</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.componentdesigner.feature</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.business.feature</artifactId>
|
||||
|
||||
@@ -26,10 +26,6 @@
|
||||
id="org.eclipse.gef"
|
||||
version="0.0.0"/>
|
||||
|
||||
<includes
|
||||
id="org.talend.m2e.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.designer.core"
|
||||
download-size="0"
|
||||
@@ -217,60 +213,4 @@
|
||||
fragment="true"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.themes.core"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="net.jeeeyul.eclipse.themes"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="net.jeeeyul.swtend"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.designer.maven"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.designer.runtime.visualization"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.designer.runtime.visualization.tools"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.designer.maven.ui"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.designer.maven.ui.nl"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
fragment="true"/>
|
||||
|
||||
</feature>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.feature</artifactId>
|
||||
|
||||
@@ -32,11 +32,4 @@
|
||||
install-size="0"
|
||||
version="0.0.0"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.themes.css.talend"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
</feature>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.rcp.branding.tos.feature</artifactId>
|
||||
|
||||
@@ -230,12 +230,4 @@
|
||||
fragment="true"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.designer.maven.test"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
fragment="true"
|
||||
unpack="false"/>
|
||||
|
||||
</feature>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.rcp.branding.tos.test.feature</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.repository.feature</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.sbi.feature</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.spagic.feature</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.tos.components.feature</artifactId>
|
||||
|
||||
@@ -151,19 +151,4 @@
|
||||
fragment="true"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.designer.maven.job"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.designer.maven.job.nl"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
fragment="true"
|
||||
unpack="false"/>
|
||||
|
||||
</feature>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.tos.feature</artifactId>
|
||||
|
||||
@@ -249,12 +249,6 @@
|
||||
install-size="0"
|
||||
version="0.0.0"/>
|
||||
|
||||
<plugin
|
||||
id="org.talend.libraries.netsuite"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"/>
|
||||
|
||||
<plugin
|
||||
id="org.eclipse.nebula.widgets.nattable.core"
|
||||
download-size="0"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.tos.libraries.feature</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.componentdesigner.rcp</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.componentdesigner</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.abstractmap</artifactId>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.alfrescooutput</artifactId>
|
||||
|
||||
|
After Width: | Height: | Size: 339 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -25,7 +25,7 @@
|
||||
<editor
|
||||
id="org.talend.designer.business.model.business.diagram.part.BusinessDiagramEditorID"
|
||||
name="Business Diagram Editor"
|
||||
icon="icons/obj16/BusinessDiagramFile.png"
|
||||
icon="icons/obj16/BusinessDiagramFile.gif"
|
||||
extensions="business_diagram"
|
||||
default="true"
|
||||
class="org.talend.designer.business.model.business.diagram.part.BusinessDiagramEditor"
|
||||
@@ -38,7 +38,7 @@
|
||||
<extension point="org.eclipse.ui.newWizards">
|
||||
<wizard
|
||||
name="Business Diagram"
|
||||
icon="icons/obj16/BusinessDiagramFile.png"
|
||||
icon="icons/obj16/BusinessDiagramFile.gif"
|
||||
category="org.talend.designer.core.ui"
|
||||
class="org.talend.designer.business.model.business.diagram.part.BusinessCreationWizard"
|
||||
id="org.talend.designer.business.model.business.diagram.part.BusinessCreationWizardID">
|
||||
@@ -581,7 +581,7 @@
|
||||
<repositoryNode
|
||||
alias="BM"
|
||||
folder="businessProcess"
|
||||
icon="icons/obj16/BusinessDiagramFile.png"
|
||||
icon="icons/obj16/BusinessDiagramFile.gif"
|
||||
isResouce="true"
|
||||
key="repository.businessProcess"
|
||||
label="%repository.businessProcess"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.business.diagram</artifactId>
|
||||
|
||||
@@ -27,7 +27,6 @@ import org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.editor.FileDiagra
|
||||
import org.eclipse.jface.dialogs.MessageDialog;
|
||||
import org.eclipse.jface.viewers.ISelection;
|
||||
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||
import org.eclipse.swt.graphics.Image;
|
||||
import org.eclipse.ui.IEditorInput;
|
||||
import org.eclipse.ui.IEditorPart;
|
||||
import org.eclipse.ui.IEditorReference;
|
||||
@@ -84,8 +83,6 @@ public class BusinessDiagramEditor extends FileDiagramEditor implements IGotoMar
|
||||
|
||||
private Boolean readOnly;
|
||||
|
||||
public static final String BUSINESS_DIAGRAM_EDITOR_IMAGE_PATH = "/icons/obj16/BusinessDiagramFile_White.png"; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* @generated
|
||||
*/
|
||||
@@ -563,12 +560,4 @@ public class BusinessDiagramEditor extends FileDiagramEditor implements IGotoMar
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Image getTitleImage() {
|
||||
Image image = BusinessDiagramEditorPlugin.getInstance().getBundledImage(BUSINESS_DIAGRAM_EDITOR_IMAGE_PATH);
|
||||
if (image == null) {
|
||||
image = super.getTitleImage();
|
||||
}
|
||||
return image;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src/main/java"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src/main/java"/>
|
||||
<classpathentry kind="output" path="class"/>
|
||||
</classpath>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.codegen</artifactId>
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
# To be removed when JIRA TUP-2233 is implemented.
|
||||
|
||||
#Camel
|
||||
camel_*.javajet
|
||||
camel_end_block.javajet
|
||||
camel_footer.javajet
|
||||
camel_header.javajet
|
||||
camel_run_if.javajet
|
||||
camel_run_if.javajet
|
||||
camel_speciallinks.javajet
|
||||
footer_route.javajet
|
||||
header_additional_petalsesb.javajet
|
||||
header_additional_talendesb_rest.javajet
|
||||
@@ -19,13 +24,32 @@ header_additional_box.javajet
|
||||
header_additional_mdmtrigger.javajet
|
||||
|
||||
#MR
|
||||
mr_*.javajet
|
||||
mr_basicflow_withrejectoutput_mrconfig.javajet
|
||||
mr_comparator_helper.javajet
|
||||
mr_component_mrconfig_footer.javajet
|
||||
mr_component_mrconfig_header.javajet
|
||||
mr_footer.javajet
|
||||
mr_header.javajet
|
||||
mr_mapper_helper.javajet
|
||||
mr_onereducepartitioner.javajet
|
||||
mr_reducer_helper.javajet
|
||||
mr_struct_helper.javajet
|
||||
mr_subprocess_footer.javajet
|
||||
mr_subprocess_header.javajet
|
||||
mr_subprocess_run.javajet
|
||||
|
||||
#Storm
|
||||
storm_*.javajet
|
||||
storm_component_config_footer.javajet
|
||||
storm_component_config_header.javajet
|
||||
storm_footer.javajet
|
||||
storm_header.javajet
|
||||
storm_monitor_footer.javajet
|
||||
storm_monitor_header.javajet
|
||||
storm_subprocess_footer.javajet
|
||||
storm_subprocess_header.javajet
|
||||
storm_subprocess_run.javajet
|
||||
|
||||
header_additional_thales.javajet
|
||||
|
||||
#Spark
|
||||
header_additional_spark.javajet
|
||||
spark_*.javajet
|
||||
header_additional_spark.javajet
|
||||
@@ -17,8 +17,6 @@
|
||||
org.talend.core.model.metadata.types.JavaType
|
||||
org.talend.core.model.utils.JavaResourcesHelper
|
||||
org.talend.core.model.process.ElementParameterParser
|
||||
org.talend.core.model.process.IContext
|
||||
org.talend.core.model.process.ProcessUtils
|
||||
"
|
||||
class="Footer"
|
||||
skeleton="footer_java.skeleton"
|
||||
@@ -27,10 +25,6 @@
|
||||
CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument;
|
||||
Vector v = (Vector) codeGenArgument.getArgument();
|
||||
IProcess process = (IProcess)v.get(0);
|
||||
String className = process.getName();
|
||||
if (ProcessUtils.isTestContainer(process)) {
|
||||
className = className + "Test";
|
||||
}
|
||||
List<INode> rootNodes = (List<INode>)v.get(1);
|
||||
boolean containsTPartitioner = process.getNodesOfType("tPartitioner").size() > 0 ? true : false;
|
||||
boolean stats = codeGenArgument.isStatistics();
|
||||
@@ -183,9 +177,9 @@
|
||||
public String status= "";
|
||||
|
||||
public static void main(String[] args){
|
||||
final <%=className %> <%=className %>Class = new <%=className %>();
|
||||
final <%=process.getName() %> <%=process.getName() %>Class = new <%=process.getName() %>();
|
||||
|
||||
int exitCode = <%=className %>Class.runJobInTOS(args);
|
||||
int exitCode = <%=process.getName() %>Class.runJobInTOS(args);
|
||||
<%if(isLog4jEnabled){%>
|
||||
if(exitCode==0){
|
||||
log.info("TalendJob: '<%=codeGenArgument.getJobName()%>' - Done.");
|
||||
@@ -195,46 +189,6 @@
|
||||
System.exit(exitCode);
|
||||
}
|
||||
|
||||
<%
|
||||
if (ProcessUtils.isTestContainer(process)) {
|
||||
List<IContext> contexts = process.getContextManager().getListContext();
|
||||
for (IContext context : contexts)
|
||||
{
|
||||
%>
|
||||
@Test
|
||||
public void test<%=context.getName()%>() {
|
||||
junitGlobalMap.put("tests.log",new String());
|
||||
junitGlobalMap.put("tests.nbFailure",new Integer(0));
|
||||
final <%=className %> <%=className %>Class = new <%=className %>();
|
||||
java.util.List<String> paraList_<%=context.getName()%> = new java.util.ArrayList<String>();
|
||||
paraList_<%=context.getName()%>.add("--context=<%=context.getName()%>");
|
||||
<%
|
||||
for(IContextParameter contextPara:context.getContextParameterList()){
|
||||
String path = ProcessUtils.getTestDataValue(process, context, contextPara);
|
||||
if(path!=null&&path.length()>0){
|
||||
%>
|
||||
java.net.URL url_<%=contextPara.getName()%> = getClass().getResource("<%=path%>");
|
||||
String context_<%=contextPara.getName()%>="<%=contextPara.getName()%>=" + url_<%=contextPara.getName()%>.getPath();
|
||||
paraList_<%=context.getName()%>.add("--context_param");
|
||||
paraList_<%=context.getName()%>.add(context_<%=contextPara.getName()%>);
|
||||
<%
|
||||
}
|
||||
|
||||
}
|
||||
%>
|
||||
String[] arrays = new String[paraList_<%=context.getName()%>.size()];
|
||||
for(int i=0;i<paraList_<%=context.getName()%>.size();i++){
|
||||
arrays[i] = (String)paraList_<%=context.getName()%>.get(i);
|
||||
}
|
||||
<%=className %>Class.runJobInTOS(arrays);
|
||||
String errors = (String)junitGlobalMap.get("tests.log");
|
||||
Integer nbFailure = (Integer)junitGlobalMap.get("tests.nbFailure");
|
||||
assertTrue("Failure="+nbFailure+java.lang.System.getProperty("line.separator")+errors, errors.isEmpty());
|
||||
}
|
||||
<%
|
||||
}
|
||||
}
|
||||
%>
|
||||
|
||||
public String[][] runJob(String[] args) {
|
||||
|
||||
@@ -342,7 +296,7 @@
|
||||
|
||||
try {
|
||||
//call job/subjob with an existing context, like: --context=production. if without this parameter, there will use the default context instead.
|
||||
java.io.InputStream inContext = <%=className%>.class.getClassLoader().getResourceAsStream("<%=codeGenArgument.getCurrentProjectName().toLowerCase() %>/<%=jobFolderName %>/contexts/"+contextStr+".properties");
|
||||
java.io.InputStream inContext = <%=process.getName()%>.class.getClassLoader().getResourceAsStream("<%=codeGenArgument.getCurrentProjectName().toLowerCase() %>/<%=jobFolderName %>/contexts/"+contextStr+".properties");
|
||||
if(isDefaultContext && inContext ==null) {
|
||||
|
||||
} else {
|
||||
@@ -549,7 +503,7 @@ if(execStat) {
|
||||
//2. load implicit contextload
|
||||
if(implicit_Context != null) {
|
||||
%>
|
||||
<%=createCallProcess(implicit_Context, className, false) %>
|
||||
<%=createCallProcess(implicit_Context, process.getName(), false) %>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
@@ -561,7 +515,7 @@ this.globalResumeTicket = true;//to run tPreJob
|
||||
if(!prejobNodes.isEmpty()) {
|
||||
for(INode preNode:prejobNodes) {
|
||||
%>
|
||||
<%=createCallProcess(preNode, className, false) %>
|
||||
<%=createCallProcess(preNode, process.getName(), false) %>
|
||||
<%
|
||||
}
|
||||
}
|
||||
@@ -611,7 +565,7 @@ this.globalResumeTicket = false;//to run others jobs
|
||||
threadRunResultMap.put("status", "");
|
||||
threadLocal.set(threadRunResultMap);
|
||||
|
||||
<%=createCallProcess(rootNode, className, true) %>
|
||||
<%=createCallProcess(rootNode, process.getName(), true) %>
|
||||
finally {
|
||||
Integer localErrorCode = (Integer)(((java.util.Map)threadLocal.get()).get("errorCode"));
|
||||
String localStatus = (String)(((java.util.Map)threadLocal.get()).get("status"));
|
||||
@@ -653,7 +607,7 @@ this.globalResumeTicket = false;//to run others jobs
|
||||
|
||||
if (!componentName.equals("tLogCatcher") && !componentName.equals("tFlowMeterCatcher") && !componentName.equals("tAssertCatcher") && !componentName.equals("tStatCatcher") && !componentName.equals("tAsyncIn")) {
|
||||
%>
|
||||
<%=createCallProcess(rootNode, className, false) %>
|
||||
<%=createCallProcess(rootNode, process.getName(), false) %>
|
||||
<% }
|
||||
}
|
||||
}// end if(isRunInMultiThread)
|
||||
@@ -666,7 +620,7 @@ this.globalResumeTicket = true;//to run tPostJob
|
||||
if(!postjobNodes.isEmpty()){
|
||||
for(INode postNode:postjobNodes){
|
||||
%>
|
||||
<%=createCallProcess(postNode, className, false) %>
|
||||
<%=createCallProcess(postNode, process.getName(), false) %>
|
||||
<%
|
||||
}
|
||||
}
|
||||
@@ -682,7 +636,7 @@ this.globalResumeTicket = true;//to run tPostJob
|
||||
|
||||
endUsedMemory = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
|
||||
if (false) {
|
||||
System.out.println((endUsedMemory - startUsedMemory) + " bytes memory increase when running : <%=className %>");
|
||||
System.out.println((endUsedMemory - startUsedMemory) + " bytes memory increase when running : <%=process.getName() %>");
|
||||
}
|
||||
<%
|
||||
//7. send & flush the end msg to statcatcher
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
org.talend.core.model.metadata.types.JavaTypesManager
|
||||
org.talend.core.model.utils.NodeUtil
|
||||
org.talend.core.model.utils.JavaResourcesHelper
|
||||
org.talend.core.model.process.ProcessUtils
|
||||
"
|
||||
class="Header"
|
||||
%>
|
||||
@@ -38,7 +37,6 @@
|
||||
boolean isRunInMultiThread = codeGenArgument.getIsRunInMultiThread();
|
||||
List<IContextParameter> params = new ArrayList<IContextParameter>();
|
||||
params=process.getContextManager().getDefaultContext().getContextParameterList();
|
||||
String className = process.getName();
|
||||
%>
|
||||
<%
|
||||
IBrandingService service=(IBrandingService)GlobalServiceRegister.getDefault().getService(IBrandingService.class);
|
||||
@@ -47,12 +45,7 @@ if(service instanceof AbstractBrandingService){
|
||||
<%=((AbstractBrandingService) service).getJobLicenseHeader(version)%>
|
||||
<%
|
||||
}
|
||||
String jobFolderName = "";
|
||||
IProcess baseProcess = ProcessUtils.getTestContainerBaseProcess(process);
|
||||
if (baseProcess != null) {
|
||||
jobFolderName = JavaResourcesHelper.getJobFolderName(baseProcess.getName(), baseProcess.getVersion()) + ".";
|
||||
}
|
||||
jobFolderName = jobFolderName + JavaResourcesHelper.getJobFolderName(process.getName(), process.getVersion());
|
||||
String jobFolderName = JavaResourcesHelper.getJobFolderName(process.getName(), process.getVersion());
|
||||
String packageName = codeGenArgument.getCurrentProjectName().toLowerCase() + "." + jobFolderName;
|
||||
%>
|
||||
package <%= packageName %>;
|
||||
@@ -88,16 +81,7 @@ import java.io.ObjectOutputStream;
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.Comparator;
|
||||
<%
|
||||
if(ProcessUtils.isTestContainer(process)) {
|
||||
className = className + "Test";
|
||||
%>
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%=ElementParameterParser.getValue(process, "__HEADER_IMPORT__") %>
|
||||
<%=ElementParameterParser.getValue(process, "__FOOTER_IMPORT__") %>
|
||||
|
||||
@@ -117,7 +101,7 @@ import static org.junit.Assert.assertTrue;
|
||||
@SuppressWarnings("unused")
|
||||
|
||||
/**
|
||||
* Job: <%=className%> Purpose: <%=ElementParameterParser.getValue(process, "__PURPOSE__") %><br>
|
||||
* Job: <%=process.getName() %> Purpose: <%=ElementParameterParser.getValue(process, "__PURPOSE__") %><br>
|
||||
* Description: <%=ElementParameterParser.getValue(process, "__DESCRIPTION__") %> <br>
|
||||
* @author <%=ElementParameterParser.getValue(process, "__AUTHOR__") %>
|
||||
* @version <%=version %>
|
||||
@@ -151,10 +135,10 @@ if (talendStepTemplate) {
|
||||
talendJobInterfaces += ", TalendStepTemplateFactory"; // Talend Step Template
|
||||
}
|
||||
%>
|
||||
public class <%=className%> implements <%=talendJobInterfaces%> {
|
||||
public class <%=process.getName()%> implements <%=talendJobInterfaces%> {
|
||||
<%if(isLog4jEnabled){%>
|
||||
static {System.setProperty("TalendJob.log", "<%=className%>.log");}
|
||||
private static org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(<%=className%>.class);
|
||||
static {System.setProperty("TalendJob.log", "<%=process.getName() %>.log");}
|
||||
private static org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(<%=process.getName() %>.class);
|
||||
<%}%>
|
||||
|
||||
<% if (talendEsbJob) { %>
|
||||
@@ -296,7 +280,6 @@ public <%=JavaTypesManager.getTypeToGenerate(ctxParam.getType(),true)%> get<%=Ch
|
||||
} else {
|
||||
%>
|
||||
private final java.util.Map<String, Object> globalMap = new java.util.HashMap<String, Object>();
|
||||
private final static java.util.Map<String, Object> junitGlobalMap = new java.util.HashMap<String, Object>();
|
||||
<%
|
||||
}
|
||||
boolean exist_tParallelize = false;
|
||||
@@ -456,14 +439,14 @@ private class TalendException extends Exception {
|
||||
} else {
|
||||
e.printStackTrace();
|
||||
e.printStackTrace(errorMessagePS);
|
||||
<%=className%>.this.exception = e;
|
||||
<%=process.getName() %>.this.exception = e;
|
||||
}
|
||||
}
|
||||
if (!(e instanceof TalendException)) {
|
||||
try {
|
||||
for (java.lang.reflect.Method m : this.getClass().getEnclosingClass().getMethods()) {
|
||||
if (m.getName().compareTo(currentComponent + "_error") == 0) {
|
||||
m.invoke(<%=className%>.this, new Object[] { e , currentComponent, globalMap});
|
||||
m.invoke(<%=process.getName() %>.this, new Object[] { e , currentComponent, globalMap});
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ jet
|
||||
package="org.talend.designer.codegen.translators"
|
||||
<%@ jet
|
||||
package="org.talend.designer.codegen.translators"
|
||||
imports="
|
||||
org.talend.designer.codegen.config.NodesSubTree
|
||||
org.talend.core.model.process.INode
|
||||
@@ -10,7 +10,7 @@
|
||||
org.talend.core.model.process.IProcess
|
||||
org.talend.core.model.process.EConnectionType
|
||||
org.talend.core.model.process.IConnection
|
||||
org.talend.core.model.metadata.IMetadataTable
|
||||
org.talend.core.model.metadata.IMetadataTable
|
||||
org.talend.core.model.metadata.IMetadataColumn
|
||||
org.talend.designer.codegen.config.CodeGeneratorArgument
|
||||
org.talend.core.model.metadata.types.JavaTypesManager
|
||||
@@ -20,7 +20,7 @@
|
||||
org.talend.core.model.process.IHashConfiguration
|
||||
org.talend.core.model.process.IHashableColumn
|
||||
org.talend.core.model.utils.NodeUtil
|
||||
"
|
||||
"
|
||||
class="SubProcessHeader"
|
||||
skeleton="subprocess_header_java.skeleton"
|
||||
%>
|
||||
@@ -50,19 +50,19 @@
|
||||
(conn.getLineStyle().equals(EConnectionType.FLOW_MAIN))||
|
||||
(conn.getLineStyle().equals(EConnectionType.FLOW_REF)) ||
|
||||
(conn.getLineStyle().equals(EConnectionType.FLOW_MERGE))||
|
||||
(conn.getLineStyle().equals(EConnectionType.RUN_AFTER))
|
||||
(conn.getLineStyle().equals(EConnectionType.RUN_AFTER))
|
||||
) {
|
||||
|
||||
if(conn.getLineStyle().equals(EConnectionType.RUN_AFTER)){
|
||||
templateOrigin = ElementParameterParser.getValue(conn.getSource(), "__ORIGIN__");
|
||||
}
|
||||
}
|
||||
if (!hSet.contains(conn.getName() + templateOrigin)) {
|
||||
hSet.add(conn.getName() + templateOrigin);
|
||||
IMetadataTable metadata = conn.getMetadataTable();
|
||||
|
||||
|
||||
boolean changeHashAndEqualsForBigDecimal = false;
|
||||
Set<String> hashableColumnsNames = new HashSet<String>();
|
||||
|
||||
|
||||
INode targetNode = conn.getTarget();
|
||||
if(targetNode instanceof IHashableInputConnections) {
|
||||
if(targetNode.getUniqueName().startsWith("tMap")) {
|
||||
@@ -77,7 +77,7 @@
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
|
||||
//only for the lookup branch of the tJoin
|
||||
boolean isLookOftJoin = false;
|
||||
boolean isLookOftRecordMatching = false;
|
||||
@@ -87,7 +87,7 @@
|
||||
for (INode tjoinNode : process.getNodesOfType("tJoin")) {
|
||||
if(conn.getTarget().getUniqueName().equals(tjoinNode.getUniqueName())){
|
||||
List<Map<String, String>> joinKeys = (List<Map<String,String>>)ElementParameterParser.getObjectValue(conn.getTarget(), "__JOIN_KEY__");
|
||||
for(Map<String, String> joinKeyLine : joinKeys){
|
||||
for(Map<String, String> joinKeyLine : joinKeys){
|
||||
String lookupKey = joinKeyLine.get("LOOKUP_COLUMN");
|
||||
hashableColumnsNames.add(lookupKey);
|
||||
}
|
||||
@@ -95,11 +95,11 @@
|
||||
isLookup = true;
|
||||
}
|
||||
}
|
||||
|
||||
// for tRecordMatching
|
||||
|
||||
// for tRecordMatching
|
||||
if(conn.getTarget().getUniqueName().startsWith("tRecordMatching")){
|
||||
List<Map<String, String>> joinKeys = (List<Map<String,String>>)ElementParameterParser.getObjectValue(conn.getTarget(), "__BLOCKING_DEFINITION__");
|
||||
for(Map<String, String> joinKeyLine : joinKeys){
|
||||
for(Map<String, String> joinKeyLine : joinKeys){
|
||||
String lookupKey = joinKeyLine.get("LOOKUP_COLUMN");
|
||||
hashableColumnsNames.add(lookupKey);
|
||||
isLookup = true;
|
||||
@@ -132,8 +132,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!isLookOftJoin && !isLookOftRecordMatching && !isLookOfHashOutput && metadata!=null) {
|
||||
|
||||
if (!isLookOftJoin && !isLookOftRecordMatching && !isLookOfHashOutput && metadata!=null) {
|
||||
for (IMetadataColumn column: metadata.getListColumns()) {
|
||||
if (column.isKey()) {
|
||||
hashableColumnsNames.add(column.getLabel());
|
||||
@@ -142,7 +142,7 @@
|
||||
}
|
||||
}
|
||||
boolean hasAtLeastOneKey = hashableColumnsNames.size() > 0;
|
||||
|
||||
|
||||
%>
|
||||
|
||||
public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements routines.system.<%= isLookup ? "IPersistableComparableLookupRow<"+conn.getName()+"Struct>" : "IPersistableRow<"+conn.getName()+"Struct"+ templateOrigin + ">" %> {
|
||||
@@ -155,14 +155,14 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
protected static final int PRIME = 31;
|
||||
protected int hashCode = DEFAULT_HASHCODE;
|
||||
public boolean hashCodeDirty = true;
|
||||
|
||||
|
||||
public String loopKey;
|
||||
|
||||
|
||||
|
||||
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
if (metadata !=null) {
|
||||
for (IMetadataColumn column: metadata.getListColumns()) {
|
||||
@@ -173,11 +173,11 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
}
|
||||
%>
|
||||
public <%= typeToGenerate %> <%=column.getLabel() %><%
|
||||
|
||||
|
||||
if(javaType == JavaTypesManager.CHARACTER && !column.isNullable()) {
|
||||
%> = ' '<%
|
||||
}
|
||||
|
||||
|
||||
%>;
|
||||
|
||||
public <%= typeToGenerate %> get<%=column.getLabel().substring(0, 1).toUpperCase()%><%=column.getLabel().substring(1)%> () {
|
||||
@@ -188,15 +188,15 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
%>
|
||||
public java.util.Map<String,Object> documentLookupResult = new java.util.HashMap<String,Object>();
|
||||
<%
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
if(hasAtLeastOneKey) { // T_SH_001
|
||||
%>
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
if (this.hashCodeDirty) {
|
||||
@@ -210,24 +210,24 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
JavaType javaType = JavaTypesManager.getJavaTypeFromId(column.getTalendType());
|
||||
|
||||
if (JavaTypesManager.isJavaPrimitiveType(column.getTalendType(), column.isNullable())) {
|
||||
|
||||
|
||||
String typeToGenerate = JavaTypesManager.getTypeToGenerate(column.getTalendType(), column.isNullable());
|
||||
if(javaType == JavaTypesManager.BOOLEAN) {
|
||||
%>
|
||||
result = prime * result + (this.<%=column.getLabel() %> ? 1231 : 1237);
|
||||
<%
|
||||
} else {
|
||||
} else {
|
||||
%>
|
||||
result = prime * result + (int) this.<%=column.getLabel() %>;
|
||||
<%
|
||||
}
|
||||
|
||||
|
||||
} else if(javaType == JavaTypesManager.BYTE_ARRAY) {
|
||||
|
||||
%>
|
||||
result = prime * result + java.util.Arrays.hashCode(this.<%=column.getLabel() %>);
|
||||
<%
|
||||
|
||||
|
||||
} else if((javaType == JavaTypesManager.BIGDECIMAL) && changeHashAndEqualsForBigDecimal) {
|
||||
%>
|
||||
result = prime * result + ((this.<%=column.getLabel() %> == null) ? 0 : new Double(this.<%=column.getLabel() %>.doubleValue()).hashCode());
|
||||
@@ -237,24 +237,24 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
result = prime * result + ((this.<%=column.getLabel() %> == null) ? 0 : this.<%=column.getLabel() %>.hashCode());
|
||||
<%
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
%>
|
||||
this.hashCode = result;
|
||||
this.hashCodeDirty = false;
|
||||
this.hashCodeDirty = false;
|
||||
}
|
||||
return this.hashCode;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) return true;
|
||||
if (obj == null) return false;
|
||||
if (getClass() != obj.getClass()) return false;
|
||||
final <%=conn.getName() %>Struct<%=templateOrigin %> other = (<%=conn.getName() %>Struct<%=templateOrigin %>) obj;
|
||||
<%
|
||||
<%
|
||||
if (metadata !=null) {
|
||||
for (IMetadataColumn column: metadata.getListColumns()) {
|
||||
if (hashableColumnsNames.contains(column.getLabel())) {
|
||||
@@ -263,7 +263,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
|
||||
if (JavaTypesManager.isJavaPrimitiveType(column.getTalendType(), column.isNullable())) {
|
||||
%>
|
||||
if (this.<%=column.getLabel() %> != other.<%=column.getLabel() %>)
|
||||
if (this.<%=column.getLabel() %> != other.<%=column.getLabel() %>)
|
||||
return false;
|
||||
<%
|
||||
} else if(javaType == JavaTypesManager.BYTE_ARRAY) {
|
||||
@@ -275,13 +275,13 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
} else {
|
||||
%>
|
||||
if (this.<%=column.getLabel() %> == null) {
|
||||
if (other.<%=column.getLabel() %> != null)
|
||||
if (other.<%=column.getLabel() %> != null)
|
||||
return false;
|
||||
<%if((javaType == JavaTypesManager.BIGDECIMAL) && changeHashAndEqualsForBigDecimal) {%>
|
||||
} else if ((other.<%=column.getLabel() %> == null) || (this.<%=column.getLabel() %>.compareTo(other.<%=column.getLabel() %>)!=0))
|
||||
<%} else {%>
|
||||
} else if (!this.<%=column.getLabel() %>.equals(other.<%=column.getLabel() %>))
|
||||
<%}%>
|
||||
<%}%>
|
||||
return false;
|
||||
<%
|
||||
}
|
||||
@@ -290,7 +290,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
}
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -299,7 +299,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
<%
|
||||
if (metadata !=null) {
|
||||
for (IMetadataColumn column: metadata.getListColumns()) {
|
||||
|
||||
|
||||
%>other.<%= column.getLabel() %> = this.<%= column.getLabel() %>;
|
||||
<%
|
||||
}
|
||||
@@ -313,7 +313,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
if (metadata !=null) {
|
||||
for (IMetadataColumn column: metadata.getListColumns()) {
|
||||
if (hashableColumnsNames.contains(column.getLabel())) {
|
||||
|
||||
|
||||
%>other.<%= column.getLabel() %> = this.<%= column.getLabel() %>;
|
||||
<%
|
||||
}
|
||||
@@ -321,8 +321,8 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
}
|
||||
%>
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
<%
|
||||
} // T_SH_001
|
||||
%>
|
||||
@@ -364,7 +364,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
}
|
||||
return strReturn;
|
||||
}
|
||||
|
||||
|
||||
private void writeString(String str, ObjectOutputStream dos) throws IOException{
|
||||
if(str == null) {
|
||||
dos.writeInt(-1);
|
||||
@@ -392,7 +392,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
}
|
||||
return strReturn;
|
||||
}
|
||||
|
||||
|
||||
private void writeString(String str, DataOutputStream dos, ObjectOutputStream oos) throws IOException{
|
||||
if(str == null) {
|
||||
dos.writeInt(-1);
|
||||
@@ -420,7 +420,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
}
|
||||
return dateReturn;
|
||||
}
|
||||
|
||||
|
||||
private void writeDate(java.util.Date date1, ObjectOutputStream dos) throws IOException{
|
||||
if(date1 == null) {
|
||||
dos.writeByte(-1);
|
||||
@@ -445,7 +445,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
}
|
||||
return dateReturn;
|
||||
}
|
||||
|
||||
|
||||
private void writeDate(java.util.Date date1, DataOutputStream dos, ObjectOutputStream oos) throws IOException{
|
||||
if(date1 == null) {
|
||||
dos.writeByte(-1);
|
||||
@@ -473,7 +473,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
}
|
||||
return byteArrayReturn;
|
||||
}
|
||||
|
||||
|
||||
private void writeByteArray(byte[] byteArray, ObjectOutputStream dos) throws IOException{
|
||||
if(byteArray == null) {
|
||||
dos.writeInt(-1);
|
||||
@@ -500,7 +500,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
return byteArrayReturn;
|
||||
}
|
||||
|
||||
private void writeByteArray(byte[] byteArray, DataOutputStream dos, ObjectOutputStream oos) throws IOException{
|
||||
private void writeByteArray(byte[] byteArray, DataOutputStream dos, ObjectOutputStream oos) throws IOException{
|
||||
if(byteArray == null) {
|
||||
dos.writeInt(-1);
|
||||
} else {
|
||||
@@ -528,7 +528,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
}
|
||||
return intReturn;
|
||||
}
|
||||
|
||||
|
||||
private void writeInteger(Integer intNum, ObjectOutputStream dos) throws IOException{
|
||||
if(intNum == null) {
|
||||
dos.writeByte(-1);
|
||||
@@ -553,7 +553,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
return intReturn;
|
||||
}
|
||||
|
||||
private void writeInteger(Integer intNum, DataOutputStream dos, ObjectOutputStream oos) throws IOException{
|
||||
private void writeInteger(Integer intNum, DataOutputStream dos, ObjectOutputStream oos) throws IOException{
|
||||
if(intNum == null) {
|
||||
dos.writeByte(-1);
|
||||
} else {
|
||||
@@ -567,16 +567,16 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
}
|
||||
}
|
||||
}
|
||||
%>
|
||||
|
||||
%>
|
||||
|
||||
public void <%= isLookup ? "readKeys" : "read" %>Data(ObjectInputStream dis) {
|
||||
|
||||
synchronized(commonByteArrayLock_<%=codeGenArgument.getCurrentProjectName() %>_<%=codeGenArgument.getJobName() %>) {
|
||||
|
||||
try {
|
||||
|
||||
|
||||
int length = 0;
|
||||
<%
|
||||
<%
|
||||
boolean hasAtLeastOneRead = false;
|
||||
boolean hasAtLeastOneObjectType = false;
|
||||
if (metadata !=null) {
|
||||
@@ -639,7 +639,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
if(hasAtLeastOneObjectType) {
|
||||
%>
|
||||
@@ -648,9 +648,9 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
<%
|
||||
if(!hasAtLeastOneRead) {
|
||||
%>
|
||||
@@ -658,16 +658,16 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void <%= isLookup ? "writeKeys" : "write" %>Data(ObjectOutputStream dos) {
|
||||
try {
|
||||
|
||||
<%
|
||||
<%
|
||||
boolean hasAtLeastOneWrite = false;
|
||||
hasAtLeastOneObjectType = false;
|
||||
if (metadata !=null) {
|
||||
@@ -729,7 +729,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
}
|
||||
%>
|
||||
}
|
||||
|
||||
|
||||
<%
|
||||
if(!hasAtLeastOneWrite) {
|
||||
%>
|
||||
@@ -737,7 +737,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
}
|
||||
|
||||
<%
|
||||
@@ -745,14 +745,14 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
%>
|
||||
|
||||
|
||||
/**
|
||||
/**
|
||||
* Fill Values data by reading ObjectInputStream.
|
||||
*/
|
||||
public void readValuesData(DataInputStream dis, ObjectInputStream ois) {
|
||||
try {
|
||||
|
||||
|
||||
int length = 0;
|
||||
<%
|
||||
<%
|
||||
hasAtLeastOneRead = false;
|
||||
hasAtLeastOneObjectType = false;
|
||||
if (metadata !=null) {
|
||||
@@ -815,7 +815,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
if(hasAtLeastOneObjectType) {
|
||||
%>
|
||||
@@ -834,16 +834,16 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Return a byte array which represents Values data.
|
||||
*/
|
||||
public void writeValuesData(DataOutputStream dos, ObjectOutputStream oos) {
|
||||
try {
|
||||
|
||||
<%
|
||||
|
||||
<%
|
||||
hasAtLeastOneWrite = false;
|
||||
if (metadata !=null) {
|
||||
for (IMetadataColumn column: metadata.getListColumns()) {
|
||||
@@ -909,7 +909,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
}
|
||||
|
||||
<%
|
||||
@@ -917,11 +917,11 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
%>
|
||||
|
||||
public String toString() {
|
||||
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(super.toString());
|
||||
sb.append("[");
|
||||
<%
|
||||
<%
|
||||
if (metadata !=null) {
|
||||
List<IMetadataColumn> clmlist = metadata.getListColumns();
|
||||
for(int i=0; i< clmlist.size(); i++) {
|
||||
@@ -940,12 +940,12 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
}
|
||||
%>
|
||||
sb.append("]");
|
||||
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
<%if(isLog4jEnabled){%>
|
||||
public String toLogString(){
|
||||
StringBuilder sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
<%
|
||||
if (metadata !=null) {
|
||||
List<IMetadataColumn> columnList = metadata.getListColumns();
|
||||
@@ -963,7 +963,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
sb.append("<null>");
|
||||
}else{
|
||||
sb.append(<%=columnName%>);
|
||||
}
|
||||
}
|
||||
<%
|
||||
}
|
||||
%>
|
||||
@@ -975,14 +975,14 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
return sb.toString();
|
||||
}
|
||||
<%}%>
|
||||
|
||||
/**
|
||||
|
||||
/**
|
||||
* Compare keys
|
||||
*/
|
||||
public int compareTo(<%=conn.getName() %>Struct<%=templateOrigin %> other) {
|
||||
|
||||
|
||||
int returnValue = -1;
|
||||
<%
|
||||
<%
|
||||
if (metadata !=null) {
|
||||
for (IMetadataColumn column: metadata.getListColumns()) {
|
||||
if (hashableColumnsNames.contains(column.getLabel())) {
|
||||
@@ -999,8 +999,8 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
%>
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private int checkNullsAndCompare(Object object1, Object object2) {
|
||||
int returnValue = 0;
|
||||
if (object1 instanceof Comparable && object2 instanceof Comparable) {
|
||||
@@ -1022,7 +1022,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
return string1.compareTo(string2);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
<%
|
||||
}
|
||||
@@ -1033,7 +1033,7 @@ public static class <%=conn.getName() %>Struct<%=templateOrigin %> implements ro
|
||||
<% if (subTree.isMethodSizeNeeded()){ %>
|
||||
/**
|
||||
* Start of Function: <%=subTree.getName() %>Process.
|
||||
* Byte Length of Source Code: ?SIZE?
|
||||
* Byte Length of Source Code: ?SIZE?
|
||||
*/
|
||||
<% } %>
|
||||
public void <%=subTree.getName() %>Process(final java.util.Map<String, Object> globalMap) throws TalendException {
|
||||
@@ -1051,9 +1051,9 @@ public void <%=subTree.getName() %>Process(final java.util.Map<String, Object> g
|
||||
}
|
||||
}
|
||||
}
|
||||
if(isParallelize){
|
||||
if(isParallelize){//isParallelize
|
||||
%>
|
||||
|
||||
|
||||
try {
|
||||
final ParallelThreadPool pool = (ParallelThreadPool) globalMap
|
||||
.get("PARALLEL_FLOW_POOL_<%=(subTree.getName()).replaceAll("tAsyncIn", "tAsyncOut")%>");
|
||||
@@ -1069,27 +1069,20 @@ public void <%=subTree.getName() %>Process(final java.util.Map<String, Object> g
|
||||
<%if(containsTPartitioner){%>
|
||||
int iterateLoop = 0;
|
||||
<%}%>
|
||||
|
||||
|
||||
public void run() {
|
||||
java.util.Map threadRunResultMap = new java.util.HashMap();
|
||||
threadRunResultMap.put("errorCode", null);
|
||||
threadRunResultMap.put("status", "");
|
||||
threadLocal.set(threadRunResultMap);
|
||||
|
||||
|
||||
this.isRunning = true;
|
||||
String currentComponent = "";
|
||||
<%
|
||||
if(NodeUtil.hasVirtualComponent(subTree.getNodes())){
|
||||
%>
|
||||
String currentVirtualComponent = null;
|
||||
<%
|
||||
}
|
||||
%>
|
||||
java.util.Map<String, Object> resourceMap = new java.util.HashMap<String, Object>();
|
||||
try{
|
||||
|
||||
|
||||
<%
|
||||
}else{ // else part for "if(isParallelize)" Line: 1054
|
||||
}else{//isParallelize
|
||||
if(NodeUtil.hasVirtualComponent(subTree.getNodes())){
|
||||
%>
|
||||
String currentVirtualComponent = null;
|
||||
@@ -1112,9 +1105,9 @@ public void <%=subTree.getName() %>Process(final java.util.Map<String, Object> g
|
||||
<%}%>
|
||||
String currentComponent = "";
|
||||
java.util.Map<String, Object> resourceMap = new java.util.HashMap<String, Object>();
|
||||
|
||||
|
||||
try {
|
||||
|
||||
|
||||
String currentMethodName = new java.lang.Exception().getStackTrace()[0].getMethodName();
|
||||
boolean resumeIt = currentMethodName.equals(resumeEntryMethodName);
|
||||
if( resumeEntryMethodName == null || resumeIt || globalResumeTicket){//start the resume
|
||||
@@ -1124,17 +1117,17 @@ public void <%=subTree.getName() %>Process(final java.util.Map<String, Object> g
|
||||
//this part for "Resume Management"
|
||||
{
|
||||
INode firstNode = subTree.getNode(subTree.getName());
|
||||
|
||||
|
||||
//System.out.println(firstNode.getUniqueName());
|
||||
List<? extends IConnection> inConns = firstNode.getIncomingConnections();
|
||||
|
||||
|
||||
//System.out.println(inConns.size());
|
||||
for(IConnection conn : inConns){
|
||||
|
||||
|
||||
boolean activeResume = "true".equals(ElementParameterParser.getValue(conn, "__RESUMING_CHECKPOINT__"));
|
||||
|
||||
|
||||
//System.out.println("Test:" + ElementParameterParser.getValue(conn, "__RESUMING_CHECKPOINT__"));
|
||||
|
||||
|
||||
if(activeResume){
|
||||
EConnectionType lineStyle = conn.getLineStyle();
|
||||
INode sourceNode = conn.getSource();
|
||||
@@ -1146,7 +1139,7 @@ public void <%=subTree.getName() %>Process(final java.util.Map<String, Object> g
|
||||
}
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
// Call for RUN AFTER links
|
||||
for (String after : subTree.getAfterSubProcesses()) {
|
||||
@@ -1165,12 +1158,12 @@ public void <%=subTree.getName() %>Process(final java.util.Map<String, Object> g
|
||||
<%=createPrivateClassInstance(subTree.getRootNode(), rootConns.get(0).getName(), false)%>
|
||||
<%
|
||||
}
|
||||
} else {
|
||||
List<INode> sortedMergeBranchStarts = subTree.getSortedMergeBranchStarts();
|
||||
} else {
|
||||
List<INode> sortedMergeBranchStarts = subTree.getSortedMergeBranchStarts();
|
||||
for (INode startNode : sortedMergeBranchStarts) {
|
||||
List< ? extends IConnection> rootConns = startNode.getOutgoingConnections();
|
||||
if ((rootConns!=null)&&(rootConns.size()>0)) {
|
||||
%>
|
||||
%>
|
||||
<%=createPrivateClassInstance(startNode, rootConns.get(0).getName(), false)%>
|
||||
<%
|
||||
}
|
||||
@@ -1184,7 +1177,7 @@ public void <%=subTree.getName() %>Process(final java.util.Map<String, Object> g
|
||||
<%
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>codegen</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -22,11 +22,14 @@ import org.talend.commons.ui.runtime.CommonUIPlugin;
|
||||
import org.talend.core.CorePlugin;
|
||||
import org.talend.core.GlobalServiceRegister;
|
||||
import org.talend.core.ILibraryManagerService;
|
||||
import org.talend.core.language.ECodeLanguage;
|
||||
import org.talend.core.language.LanguageManager;
|
||||
import org.talend.core.model.components.ComponentCompilations;
|
||||
import org.talend.core.model.process.Element;
|
||||
import org.talend.core.model.process.IProcess;
|
||||
import org.talend.core.ui.component.ComponentsFactoryProvider;
|
||||
import org.talend.core.views.IComponentSettingsView;
|
||||
import org.talend.designer.codegen.i18n.Messages;
|
||||
import org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory;
|
||||
import org.talend.designer.core.ICamelDesignerCoreService;
|
||||
import org.talend.designer.core.IDesignerCoreService;
|
||||
@@ -57,31 +60,26 @@ public class CodeGeneratorService implements ICodeGeneratorService {
|
||||
*/
|
||||
@Override
|
||||
public ICodeGenerator createCodeGenerator(IProcess process, boolean statistics, boolean trace, String... options) {
|
||||
ICodeGeneratorService codeGenService = null;
|
||||
|
||||
codeGenService = CodeGeneratorService.getService(ISparkCodeGeneratorService.class);
|
||||
if (codeGenService != null && ((ISparkCodeGeneratorService) codeGenService).validProcess(process)) {
|
||||
return codeGenService.createCodeGenerator(process, statistics, trace, options);
|
||||
if (GlobalServiceRegister.getDefault().isServiceRegistered(IMRCodeGeneratorService.class)) {
|
||||
IMRCodeGeneratorService service = (IMRCodeGeneratorService) GlobalServiceRegister.getDefault().getService(
|
||||
IMRCodeGeneratorService.class);
|
||||
if (service.validProcess(process)) {
|
||||
return service.createCodeGenerator(process, statistics, trace, options);
|
||||
}
|
||||
}
|
||||
|
||||
codeGenService = CodeGeneratorService.getService(ISparkStreamingCodeGeneratorService.class);
|
||||
if (codeGenService != null && ((ISparkStreamingCodeGeneratorService) codeGenService).validProcess(process)) {
|
||||
return codeGenService.createCodeGenerator(process, statistics, trace, options);
|
||||
if (GlobalServiceRegister.getDefault().isServiceRegistered(ICamelCodeGeneratorService.class)) {
|
||||
ICamelCodeGeneratorService service = (ICamelCodeGeneratorService) GlobalServiceRegister.getDefault().getService(
|
||||
ICamelCodeGeneratorService.class);
|
||||
if (service.validProcess(process)) {
|
||||
return service.createCodeGenerator(process, statistics, trace, options);
|
||||
}
|
||||
}
|
||||
|
||||
codeGenService = CodeGeneratorService.getService(IMRCodeGeneratorService.class);
|
||||
if (codeGenService != null && ((IMRCodeGeneratorService) codeGenService).validProcess(process)) {
|
||||
return codeGenService.createCodeGenerator(process, statistics, trace, options);
|
||||
}
|
||||
|
||||
codeGenService = CodeGeneratorService.getService(ICamelCodeGeneratorService.class);
|
||||
if (codeGenService != null && ((ICamelCodeGeneratorService) codeGenService).validProcess(process)) {
|
||||
return codeGenService.createCodeGenerator(process, statistics, trace, options);
|
||||
}
|
||||
|
||||
codeGenService = CodeGeneratorService.getService(IStormCodeGeneratorService.class);
|
||||
if (codeGenService != null && ((IStormCodeGeneratorService) codeGenService).validProcess(process)) {
|
||||
return codeGenService.createCodeGenerator(process, statistics, trace, options);
|
||||
if (GlobalServiceRegister.getDefault().isServiceRegistered(IStormCodeGeneratorService.class)) {
|
||||
IStormCodeGeneratorService service = (IStormCodeGeneratorService) GlobalServiceRegister.getDefault().getService(
|
||||
IStormCodeGeneratorService.class);
|
||||
if (service.validProcess(process)) {
|
||||
return service.createCodeGenerator(process, statistics, trace, options);
|
||||
}
|
||||
}
|
||||
|
||||
return new CodeGenerator(process, statistics, trace, options);
|
||||
@@ -94,7 +92,7 @@ public class CodeGeneratorService implements ICodeGeneratorService {
|
||||
*/
|
||||
@Override
|
||||
public ITalendSynchronizer createPerlRoutineSynchronizer() {
|
||||
return null; // no perl
|
||||
return new PerlRoutineSynchronizer();
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -104,27 +102,43 @@ public class CodeGeneratorService implements ICodeGeneratorService {
|
||||
*/
|
||||
@Override
|
||||
public ITalendSynchronizer createJavaRoutineSynchronizer() {
|
||||
// TODO Auto-generated method stub
|
||||
return new JavaRoutineSynchronizer();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ITalendSynchronizer createRoutineSynchronizer() {
|
||||
return createJavaRoutineSynchronizer();
|
||||
ECodeLanguage lan = LanguageManager.getCurrentLanguage();
|
||||
if (lan.equals(ECodeLanguage.PERL)) {
|
||||
return createPerlRoutineSynchronizer();
|
||||
} else if (lan.equals(ECodeLanguage.JAVA)) {
|
||||
return createJavaRoutineSynchronizer();
|
||||
}
|
||||
throw new IllegalArgumentException(Messages.getString("CodeGeneratorService.invalidLanguage1")); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
@Override
|
||||
public ITalendSynchronizer createCamelBeanSynchronizer() {
|
||||
ECodeLanguage lan = LanguageManager.getCurrentLanguage();
|
||||
if (GlobalServiceRegister.getDefault().isServiceRegistered(ICamelDesignerCoreService.class)) {
|
||||
ICamelDesignerCoreService service = (ICamelDesignerCoreService) GlobalServiceRegister.getDefault().getService(
|
||||
ICamelDesignerCoreService.class);
|
||||
return service.createCamelJavaSynchronizer();
|
||||
if (lan.equals(ECodeLanguage.JAVA)) {
|
||||
return service.createCamelJavaSynchronizer();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ISQLPatternSynchronizer getSQLPatternSynchronizer() {
|
||||
return new JavaSQLPatternSynchronizer();
|
||||
ECodeLanguage lan = LanguageManager.getCurrentLanguage();
|
||||
if (lan.equals(ECodeLanguage.PERL)) {
|
||||
return new PerlSQLPatternSynchronizer();
|
||||
} else if (lan.equals(ECodeLanguage.JAVA)) {
|
||||
return new JavaSQLPatternSynchronizer();
|
||||
}
|
||||
throw new IllegalArgumentException(Messages.getString("CodeGeneratorService.invalidLanguage2")); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -171,7 +185,7 @@ public class CodeGeneratorService implements ICodeGeneratorService {
|
||||
IDesignerCoreService.class);
|
||||
designerCoreService.getLastGeneratedJobsDateMap().clear();
|
||||
|
||||
if (oldComponent != null && viewer != null) {
|
||||
if (oldComponent != null) {
|
||||
viewer.setElement(oldComponent);
|
||||
}
|
||||
if (!CommonUIPlugin.isFullyHeadless()) {
|
||||
@@ -185,11 +199,4 @@ public class CodeGeneratorService implements ICodeGeneratorService {
|
||||
public boolean isInitializingJet() {
|
||||
return !CodeGeneratorEmittersPoolFactory.isInitialized() && CodeGeneratorEmittersPoolFactory.isInitializeStart();
|
||||
}
|
||||
|
||||
private static ICodeGeneratorService getService(Class<? extends ICodeGeneratorService> klass) {
|
||||
if (GlobalServiceRegister.getDefault().isServiceRegistered(klass)) {
|
||||
return (ICodeGeneratorService) GlobalServiceRegister.getDefault().getService(klass);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,15 +32,19 @@ import org.eclipse.core.resources.IFolder;
|
||||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.talend.commons.exception.ExceptionHandler;
|
||||
import org.talend.commons.exception.SystemException;
|
||||
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
|
||||
import org.talend.commons.utils.VersionUtils;
|
||||
import org.talend.commons.utils.generation.JavaUtils;
|
||||
import org.talend.commons.utils.io.FilesUtils;
|
||||
import org.talend.core.CorePlugin;
|
||||
import org.talend.core.GlobalServiceRegister;
|
||||
import org.talend.core.IService;
|
||||
import org.talend.core.context.Context;
|
||||
import org.talend.core.context.RepositoryContext;
|
||||
import org.talend.core.language.ECodeLanguage;
|
||||
import org.talend.core.model.general.ILibrariesService;
|
||||
import org.talend.core.model.general.Project;
|
||||
import org.talend.core.model.process.JobInfo;
|
||||
import org.talend.core.model.properties.Item;
|
||||
import org.talend.core.model.properties.PigudfItem;
|
||||
@@ -49,8 +53,6 @@ import org.talend.core.model.properties.RoutineItem;
|
||||
import org.talend.core.model.repository.ERepositoryObjectType;
|
||||
import org.talend.core.model.repository.IRepositoryViewObject;
|
||||
import org.talend.core.model.utils.JavaResourcesHelper;
|
||||
import org.talend.core.runtime.process.ITalendProcessJavaProject;
|
||||
import org.talend.core.ui.ITestContainerProviderService;
|
||||
import org.talend.core.ui.branding.IBrandingService;
|
||||
import org.talend.designer.runprocess.IRunProcessService;
|
||||
import org.talend.repository.ProjectManager;
|
||||
@@ -197,59 +199,94 @@ public class JavaRoutineSynchronizer extends AbstractRoutineSynchronizer {
|
||||
}
|
||||
|
||||
private IFile getRoutineFile(RoutineItem routineItem) throws SystemException {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
ITalendProcessJavaProject talendProcessJavaProject = service.getTalendProcessJavaProject();
|
||||
if (talendProcessJavaProject == null) {
|
||||
return null;
|
||||
try {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
IProject javaProject = service.getProject(ECodeLanguage.JAVA);
|
||||
// ProjectManager projectManager = ProjectManager.getInstance();
|
||||
// org.talend.core.model.properties.Project project = projectManager.getProject(routineItem);
|
||||
initRoutineFolder(javaProject, routineItem);
|
||||
String routinesFolder = getRoutinesFolder(routineItem);
|
||||
if (!routineItem.isBuiltIn()) {
|
||||
routinesFolder = getRoutinesFolder(routineItem);
|
||||
}
|
||||
IFile file = javaProject.getFile(routinesFolder + "/" //$NON-NLS-1$
|
||||
+ routineItem.getProperty().getLabel() + JavaUtils.JAVA_EXTENSION);
|
||||
return file;
|
||||
} catch (CoreException e) {
|
||||
throw new SystemException(e);
|
||||
}
|
||||
IFolder routineFolder = talendProcessJavaProject.getSrcSubFolder(null, routineItem.getPackageType());
|
||||
IFile file = routineFolder.getFile(routineItem.getProperty().getLabel() + JavaUtils.JAVA_EXTENSION);
|
||||
return file;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IFile getProcessFile(JobInfo jobInfo) throws SystemException {
|
||||
String projectFolderName = jobInfo.getProjectFolderName();
|
||||
String jobName = jobInfo.getJobName();
|
||||
String folderName = JavaResourcesHelper.getJobFolderName(jobName, jobInfo.getJobVersion());
|
||||
return getProcessFile(projectFolderName, folderName, jobName);
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
try {
|
||||
IProject javaProject = service.getProject(ECodeLanguage.JAVA);
|
||||
|
||||
String projectFolderName = jobInfo.getProjectFolderName();
|
||||
|
||||
String folderName = JavaResourcesHelper.getJobFolderName(jobInfo.getJobName(), jobInfo.getJobVersion());
|
||||
IFile file = javaProject.getFile(JavaUtils.JAVA_SRC_DIRECTORY + "/" //$NON-NLS-1$
|
||||
+ projectFolderName + "/" + folderName + "/" //$NON-NLS-1$ //$NON-NLS-2$
|
||||
+ jobInfo.getJobName() + JavaUtils.JAVA_EXTENSION);
|
||||
return file;
|
||||
} catch (CoreException e) {
|
||||
throw new SystemException(e);
|
||||
}
|
||||
}
|
||||
|
||||
private IFile getProcessFile(ProcessItem item) throws SystemException {
|
||||
String projectFolderName = JavaResourcesHelper.getProjectFolderName(item);
|
||||
String jobName = item.getProperty().getLabel();
|
||||
String folderName = JavaResourcesHelper.getJobFolderName(jobName, item.getProperty().getVersion());
|
||||
return getProcessFile(projectFolderName, folderName, jobName);
|
||||
}
|
||||
|
||||
private IFile getTestContainerFile(ProcessItem item) throws SystemException {
|
||||
String projectFolderName = JavaResourcesHelper.getProjectFolderName(item);
|
||||
String jobName = item.getProperty().getLabel();
|
||||
String folderName = JavaResourcesHelper.getJobFolderName(jobName, item.getProperty().getVersion());
|
||||
return getTestContainerFile(item, projectFolderName, folderName, jobName);
|
||||
}
|
||||
|
||||
private IFile getProcessFile(String projectFolderName, String folderName, String jobName) {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
ITalendProcessJavaProject talendProcessJavaProject = service.getTalendProcessJavaProject();
|
||||
if (talendProcessJavaProject == null) {
|
||||
return null;
|
||||
try {
|
||||
IProject javaProject = service.getProject(ECodeLanguage.JAVA);
|
||||
|
||||
String projectFolderName = JavaResourcesHelper.getProjectFolderName(item);
|
||||
|
||||
String folderName = JavaResourcesHelper.getJobFolderName(item.getProperty().getLabel(), item.getProperty()
|
||||
.getVersion());
|
||||
IFile file = javaProject.getFile(JavaUtils.JAVA_SRC_DIRECTORY + "/" //$NON-NLS-1$
|
||||
+ projectFolderName + "/" + folderName + "/" //$NON-NLS-1$ //$NON-NLS-2$
|
||||
+ item.getProperty().getLabel() + JavaUtils.JAVA_EXTENSION);
|
||||
return file;
|
||||
} catch (CoreException e) {
|
||||
throw new SystemException(e);
|
||||
}
|
||||
IFolder srcFolder = talendProcessJavaProject.getSrcFolder();
|
||||
IFile file = srcFolder.getFile(projectFolderName + '/' + folderName + '/' + jobName + JavaUtils.JAVA_EXTENSION);
|
||||
return file;
|
||||
}
|
||||
|
||||
private IFile getTestContainerFile(ProcessItem item, String projectFolderName, String folderName, String jobName) {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
ITalendProcessJavaProject talendProcessJavaProject = service.getTalendProcessJavaProject();
|
||||
if (talendProcessJavaProject == null) {
|
||||
return null;
|
||||
/**
|
||||
* DOC mhirt Comment method "initRoutineFolder".
|
||||
*
|
||||
* @param javaProject
|
||||
* @param project
|
||||
* @throws CoreException
|
||||
*/
|
||||
private void initRoutineFolder(IProject javaProject, RoutineItem item) throws CoreException {
|
||||
IFolder rep = javaProject.getFolder(getRoutinesFolder(item));
|
||||
if (!rep.exists()) {
|
||||
rep.create(true, true, null);
|
||||
}
|
||||
// if (project != null) {
|
||||
// rep = javaProject.getFolder(getRoutinesFolder(project));
|
||||
// if (!rep.exists()) {
|
||||
// rep.create(true, true, null);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
private String getRoutinesFolder(RoutineItem routineItem) {
|
||||
String routinesPath = JavaUtils.JAVA_SRC_DIRECTORY + "/" //$NON-NLS-1$
|
||||
+ routineItem.getPackageType();
|
||||
|
||||
return routinesPath;
|
||||
}
|
||||
|
||||
private void initModuleFolder(IProject javaProject, Project project, String directory) throws CoreException {
|
||||
IFolder rep = javaProject.getFolder(JavaUtils.JAVA_SRC_DIRECTORY + "/" //$NON-NLS-1$
|
||||
+ JavaUtils.JAVA_ROUTINES_DIRECTORY + "/" //$NON-NLS-1$
|
||||
+ JavaUtils.JAVA_SYSTEM_ROUTINES_DIRECTORY + "/" + directory);
|
||||
if (!rep.exists()) {
|
||||
rep.create(true, true, null);
|
||||
}
|
||||
IFolder srcFolder = talendProcessJavaProject.getTestSrcFolder();
|
||||
String packageName = JavaResourcesHelper.getJobClassPackageFolder(item, true);
|
||||
IFile file = srcFolder.getFile(packageName + '/' + jobName + "Test" + JavaUtils.JAVA_EXTENSION);
|
||||
return file;
|
||||
}
|
||||
|
||||
public void copyFile(File in, IFile out) throws Exception {
|
||||
@@ -275,20 +312,20 @@ public class JavaRoutineSynchronizer extends AbstractRoutineSynchronizer {
|
||||
private IFile syncModules(File[] modules, String directory) throws SystemException {
|
||||
try {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
ITalendProcessJavaProject talendProcessJavaProject = service.getTalendProcessJavaProject();
|
||||
if (talendProcessJavaProject == null) {
|
||||
return null;
|
||||
}
|
||||
IFolder systemFolder = talendProcessJavaProject.getSrcSubFolder(null, JavaUtils.JAVA_ROUTINES_DIRECTORY + '/'
|
||||
+ JavaUtils.JAVA_SYSTEM_DIRECTORY + '/' + directory);
|
||||
IProject javaProject = service.getProject(ECodeLanguage.JAVA);
|
||||
Project project = ((RepositoryContext) CorePlugin.getContext().getProperty(Context.REPOSITORY_CONTEXT_KEY))
|
||||
.getProject();
|
||||
initModuleFolder(javaProject, project, directory);
|
||||
|
||||
for (File module : modules) {
|
||||
if (!module.isDirectory()) {
|
||||
IFile file = systemFolder.getFile(module.getName());
|
||||
IFile file = javaProject.getFile(JavaUtils.JAVA_SRC_DIRECTORY + "/" //$NON-NLS-1$
|
||||
+ JavaUtils.JAVA_ROUTINES_DIRECTORY + "/" //$NON-NLS-1$
|
||||
+ JavaUtils.JAVA_SYSTEM_ROUTINES_DIRECTORY + "/" + directory + module.getName()); //$NON-NLS-1$
|
||||
|
||||
copyFile(module, file);
|
||||
} else if (!module.getName().startsWith(".") && !FilesUtils.isSVNFolder(module.getName())) {
|
||||
syncModules(module.listFiles(), directory + module.getName() + '/');
|
||||
syncModules(module.listFiles(), directory + module.getName() + "/");
|
||||
}
|
||||
}
|
||||
} catch (CoreException e) {
|
||||
@@ -310,17 +347,7 @@ public class JavaRoutineSynchronizer extends AbstractRoutineSynchronizer {
|
||||
*/
|
||||
@Override
|
||||
public IFile getFile(Item item) throws SystemException {
|
||||
boolean isTestContainer = false;
|
||||
if (GlobalServiceRegister.getDefault().isServiceRegistered(ITestContainerProviderService.class)) {
|
||||
ITestContainerProviderService testContainerService = (ITestContainerProviderService) GlobalServiceRegister
|
||||
.getDefault().getService(ITestContainerProviderService.class);
|
||||
if (testContainerService != null) {
|
||||
isTestContainer = testContainerService.isTestContainerItem(item);
|
||||
}
|
||||
}
|
||||
if (isTestContainer) {
|
||||
return getTestContainerFile((ProcessItem) item);
|
||||
} else if (item instanceof RoutineItem) {
|
||||
if (item instanceof RoutineItem) {
|
||||
return getRoutineFile((RoutineItem) item);
|
||||
} else if (item instanceof ProcessItem) {
|
||||
return getProcessFile((ProcessItem) item);
|
||||
@@ -419,16 +446,16 @@ public class JavaRoutineSynchronizer extends AbstractRoutineSynchronizer {
|
||||
Item item = objToDelete.getProperty().getItem();
|
||||
try {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
ITalendProcessJavaProject talendProcessJavaProject = service.getTalendProcessJavaProject();
|
||||
if (talendProcessJavaProject == null) {
|
||||
return;
|
||||
}
|
||||
IFolder srcFolder = talendProcessJavaProject.getSrcFolder();
|
||||
IFile file = srcFolder.getFile(((RoutineItem) item).getPackageType() + '/' + objToDelete.getLabel()
|
||||
+ JavaUtils.JAVA_EXTENSION);
|
||||
IProject javaProject = service.getProject(ECodeLanguage.JAVA);
|
||||
IFile file = javaProject.getFile(JavaUtils.JAVA_SRC_DIRECTORY + "/" + ((RoutineItem) item).getPackageType() + "/" //$NON-NLS-1$ //$NON-NLS-2$
|
||||
+ objToDelete.getLabel() + JavaUtils.JAVA_EXTENSION);
|
||||
/*
|
||||
* File f = file.getLocation().toFile(); f.delete();
|
||||
*/
|
||||
file.delete(true, null);
|
||||
} catch (CoreException e) {
|
||||
ExceptionHandler.process(e);
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -436,16 +463,16 @@ public class JavaRoutineSynchronizer extends AbstractRoutineSynchronizer {
|
||||
public void deleteBeanfile(IRepositoryViewObject objToDelete) {
|
||||
try {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
ITalendProcessJavaProject talendProcessJavaProject = service.getTalendProcessJavaProject();
|
||||
if (talendProcessJavaProject == null) {
|
||||
return;
|
||||
}
|
||||
IFolder srcFolder = talendProcessJavaProject.getSrcFolder();
|
||||
IFile file = srcFolder.getFile(JavaUtils.JAVA_BEANS_DIRECTORY + '/' + objToDelete.getLabel()
|
||||
+ JavaUtils.JAVA_EXTENSION);
|
||||
IProject javaProject = service.getProject(ECodeLanguage.JAVA);
|
||||
IFile file = javaProject.getFile(JavaUtils.JAVA_SRC_DIRECTORY + "/" + JavaUtils.JAVA_BEANS_DIRECTORY + "/" //$NON-NLS-1$ //$NON-NLS-2$
|
||||
+ objToDelete.getLabel() + JavaUtils.JAVA_EXTENSION);
|
||||
/*
|
||||
* File f = file.getLocation().toFile(); f.delete();
|
||||
*/
|
||||
file.delete(true, null);
|
||||
} catch (CoreException e) {
|
||||
org.talend.commons.exception.ExceptionHandler.process(e);
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,11 +18,18 @@ import java.io.IOException;
|
||||
|
||||
import org.eclipse.core.resources.IFile;
|
||||
import org.eclipse.core.resources.IFolder;
|
||||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
import org.talend.commons.exception.SystemException;
|
||||
import org.talend.commons.utils.generation.JavaUtils;
|
||||
import org.talend.core.CorePlugin;
|
||||
import org.talend.core.context.Context;
|
||||
import org.talend.core.context.RepositoryContext;
|
||||
import org.talend.core.language.ECodeLanguage;
|
||||
import org.talend.core.model.general.Project;
|
||||
import org.talend.core.model.properties.SQLPatternItem;
|
||||
import org.talend.core.runtime.process.ITalendProcessJavaProject;
|
||||
import org.talend.designer.runprocess.IRunProcessService;
|
||||
|
||||
/**
|
||||
@@ -43,22 +50,46 @@ public class JavaSQLPatternSynchronizer extends AbstractSQLPatternSynchronizer {
|
||||
* org.talend.designer.codegen.ISQLPatternSynchronizer#getSQLPattern(org.talend.core.model.properties.SQLPatternItem
|
||||
* )
|
||||
*/
|
||||
@Override
|
||||
public IFile getSQLPatternFile(SQLPatternItem item) throws SystemException {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
ITalendProcessJavaProject talendProcessJavaProject = service.getTalendProcessJavaProject();
|
||||
if (talendProcessJavaProject == null) {
|
||||
return null;
|
||||
try {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
IProject javaProject = service.getProject(ECodeLanguage.JAVA);
|
||||
Project project = ((RepositoryContext) CorePlugin.getContext().getProperty(Context.REPOSITORY_CONTEXT_KEY))
|
||||
.getProject();
|
||||
initSQLPatternFolder(javaProject, item);
|
||||
IFile file = javaProject.getFile(JavaUtils.JAVA_SRC_DIRECTORY + "/" + JavaUtils.JAVA_SQLPATTERNS_DIRECTORY //$NON-NLS-1$
|
||||
+ "/" + item.getEltName() + "/" + JavaUtils.JAVA_SYSTEM_ROUTINES_DIRECTORY + "/" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
+ item.getProperty().getLabel() + JavaUtils.JAVA_SQLPATTERN_EXTENSION);
|
||||
return file;
|
||||
} catch (CoreException e) {
|
||||
throw new SystemException(e);
|
||||
}
|
||||
String basePath = JavaUtils.JAVA_SQLPATTERNS_DIRECTORY + '/' + item.getEltName();
|
||||
// init user defined folder
|
||||
talendProcessJavaProject.getResourceSubFolder(null, basePath + '/' + JavaUtils.JAVA_USER_DEFINED);
|
||||
}
|
||||
|
||||
IFolder systemFolder = talendProcessJavaProject.getResourceSubFolder(null, basePath + '/'
|
||||
+ JavaUtils.JAVA_SYSTEM_DIRECTORY);
|
||||
private void initSQLPatternFolder(IProject javaProject, SQLPatternItem item) throws CoreException {
|
||||
IPath path = new Path(JavaUtils.JAVA_SRC_DIRECTORY + "/" + JavaUtils.JAVA_SQLPATTERNS_DIRECTORY); //$NON-NLS-1$
|
||||
IFolder rep = javaProject.getFolder(path);
|
||||
if (!rep.exists()) {
|
||||
rep.create(true, true, null);
|
||||
}
|
||||
path = path.append(item.getEltName());
|
||||
rep = javaProject.getFolder(path);
|
||||
if (!rep.exists()) {
|
||||
rep.create(true, true, null);
|
||||
}
|
||||
|
||||
IFile file = systemFolder.getFile(item.getProperty().getLabel() + JavaUtils.JAVA_SQLPATTERN_EXTENSION);
|
||||
return file;
|
||||
IPath temp = path;
|
||||
temp = path.append(JavaUtils.JAVA_SYSTEM_ROUTINES_DIRECTORY);
|
||||
rep = javaProject.getFolder(temp);
|
||||
if (!rep.exists()) {
|
||||
rep.create(true, true, null);
|
||||
}
|
||||
|
||||
temp = path.append(JavaUtils.JAVA_USER_DEFINED);
|
||||
rep = javaProject.getFolder(temp);
|
||||
if (!rep.exists()) {
|
||||
rep.create(true, false, null);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -68,7 +99,6 @@ public class JavaSQLPatternSynchronizer extends AbstractSQLPatternSynchronizer {
|
||||
* org.talend.designer.codegen.ISQLPatternSynchronizer#syncSQLPattern(org.talend.core.model.properties.SQLPatternItem
|
||||
* , boolean)
|
||||
*/
|
||||
@Override
|
||||
public void syncSQLPattern(SQLPatternItem routineItem, boolean copyToTemp) throws SystemException {
|
||||
FileOutputStream fos = null;
|
||||
try {
|
||||
|
||||
@@ -0,0 +1,257 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2015 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.designer.codegen;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.eclipse.core.resources.IFile;
|
||||
import org.eclipse.core.resources.IFolder;
|
||||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.core.resources.IResource;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.talend.commons.exception.SystemException;
|
||||
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
|
||||
import org.talend.commons.utils.io.FilesUtils;
|
||||
import org.talend.commons.utils.workbench.resources.ResourceUtils;
|
||||
import org.talend.core.CorePlugin;
|
||||
import org.talend.core.GlobalServiceRegister;
|
||||
import org.talend.core.context.Context;
|
||||
import org.talend.core.context.RepositoryContext;
|
||||
import org.talend.core.language.ECodeLanguage;
|
||||
import org.talend.core.model.general.ILibrariesService;
|
||||
import org.talend.core.model.general.Project;
|
||||
import org.talend.core.model.process.JobInfo;
|
||||
import org.talend.core.model.properties.Item;
|
||||
import org.talend.core.model.properties.ProcessItem;
|
||||
import org.talend.core.model.properties.RoutineItem;
|
||||
import org.talend.core.model.repository.IRepositoryViewObject;
|
||||
import org.talend.core.model.repository.ResourceModelUtils;
|
||||
import org.talend.core.model.utils.PerlResourcesHelper;
|
||||
import org.talend.core.ui.branding.AbstractBrandingService;
|
||||
import org.talend.core.ui.branding.IBrandingService;
|
||||
import org.talend.designer.runprocess.IRunProcessService;
|
||||
import org.talend.repository.model.RepositoryConstants;
|
||||
|
||||
/**
|
||||
* DOC smallet class global comment. Detailled comment <br/>
|
||||
*
|
||||
* $Id: talend.epf 1 2006-09-29 17:06:40 +0000 (ven., 29 sept. 2006) nrousseau $
|
||||
*
|
||||
*/
|
||||
public class PerlRoutineSynchronizer extends AbstractRoutineSynchronizer {
|
||||
|
||||
public void syncAllRoutines() throws SystemException {
|
||||
for (IRepositoryViewObject routine : getRoutines()) {
|
||||
RoutineItem routineItem = (RoutineItem) routine.getProperty().getItem();
|
||||
if (!routineItem.isBuiltIn()) {
|
||||
syncRoutine(routineItem, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void syncAllBeans() throws SystemException {
|
||||
for (IRepositoryViewObject routine : getRoutines()) {
|
||||
RoutineItem routineItem = (RoutineItem) routine.getProperty().getItem();
|
||||
if (!routineItem.isBuiltIn()) {
|
||||
syncRoutine(routineItem, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void doSyncRoutine(RoutineItem routineItem, boolean copyToTemp) throws SystemException {
|
||||
ByteArrayInputStream byteArrayInputStream = null;
|
||||
try {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
Project project = ((RepositoryContext) CorePlugin.getContext().getProperty(Context.REPOSITORY_CONTEXT_KEY))
|
||||
.getProject();
|
||||
|
||||
// see 14713
|
||||
String routineContents = new String(routineItem.getContent().getInnerContent());
|
||||
String version = routineItem.getProperty().getVersion();
|
||||
if (routineContents.contains("%GENERATED_LICENSE%")) { //$NON-NLS-1$
|
||||
String routineHeader = ((AbstractBrandingService) GlobalServiceRegister.getDefault().getService(
|
||||
IBrandingService.class)).getRoutineLicenseHeader(version);
|
||||
routineContents = routineContents.replace("%GENERATED_LICENSE%", routineHeader); //$NON-NLS-1$
|
||||
if (routineContents.contains("//")) { //$NON-NLS-1$
|
||||
routineContents = routineContents.replace("//", "#").replace("#www", "//www"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
|
||||
}
|
||||
}// end
|
||||
|
||||
if (!routineItem.isBuiltIn()) {
|
||||
// Copy the routine in external "lib/perl" folder:
|
||||
String librariesPath = CorePlugin.getDefault().getLibrariesService().getPerlLibrariesPath() + IPath.SEPARATOR
|
||||
+ ILibrariesService.SOURCE_PERL_ROUTINES_FOLDER + IPath.SEPARATOR + project.getTechnicalLabel()
|
||||
+ IPath.SEPARATOR + routineItem.getProperty().getLabel() + service.getRoutineFilenameExt();
|
||||
File target = new File(librariesPath);
|
||||
byteArrayInputStream = new ByteArrayInputStream(routineContents.getBytes());
|
||||
FilesUtils.copyFile(byteArrayInputStream, target);
|
||||
}
|
||||
|
||||
IResource tempfile = getRoutineFile(routineItem);
|
||||
|
||||
if (copyToTemp) {
|
||||
routineItem.getContent().setInnerContent(routineContents.getBytes());
|
||||
routineItem.getContent().setInnerContentToFile(tempfile.getLocation().toFile());
|
||||
}
|
||||
tempfile.refreshLocal(1, null);
|
||||
} catch (CoreException e) {
|
||||
throw new SystemException(e);
|
||||
} catch (IOException e) {
|
||||
throw new SystemException(e);
|
||||
} finally {
|
||||
try {
|
||||
byteArrayInputStream.close();
|
||||
} catch (Exception e) {
|
||||
// ignore me even if i'm null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private IFile getRoutineFile(RoutineItem routineItem) throws SystemException {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
Project project = ((RepositoryContext) CorePlugin.getContext().getProperty(Context.REPOSITORY_CONTEXT_KEY)).getProject();
|
||||
|
||||
IProject fsProject = ResourceModelUtils.getProject(project);
|
||||
IFolder folder = ResourceUtils.getFolder(fsProject, RepositoryConstants.TEMP_DIRECTORY, true);
|
||||
IFile tempfile = ResourceUtils.getFile(folder, "tempRoutine" + routineItem.getProperty().getId(), false); //$NON-NLS-1$
|
||||
|
||||
return tempfile;
|
||||
}
|
||||
|
||||
private IFile getBeanFile(Item beanItem) throws SystemException {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
Project project = ((RepositoryContext) CorePlugin.getContext().getProperty(Context.REPOSITORY_CONTEXT_KEY)).getProject();
|
||||
|
||||
IProject fsProject = ResourceModelUtils.getProject(project);
|
||||
IFolder folder = ResourceUtils.getFolder(fsProject, RepositoryConstants.TEMP_DIRECTORY, true);
|
||||
IFile tempfile = ResourceUtils.getFile(folder, "tempRoutine" + beanItem.getProperty().getId(), false); //$NON-NLS-1$
|
||||
|
||||
return tempfile;
|
||||
}
|
||||
|
||||
public IFile getProcessFile(JobInfo jobInfo) throws SystemException {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
try {
|
||||
IProject perlProject = service.getProject(ECodeLanguage.PERL);
|
||||
|
||||
String projectFolderName = jobInfo.getProjectFolderName();
|
||||
IFile file = perlProject.getFile(PerlResourcesHelper.getJobFileName(projectFolderName, jobInfo.getJobName(),
|
||||
jobInfo.getJobVersion()));
|
||||
return file;
|
||||
} catch (CoreException e) {
|
||||
throw new SystemException(e);
|
||||
}
|
||||
}
|
||||
|
||||
private IFile getProcessFile(ProcessItem processItem) throws SystemException {
|
||||
IFile tempfile = null;
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
try {
|
||||
IProject perlProject = service.getProject(ECodeLanguage.PERL);
|
||||
String rootProjectName = PerlResourcesHelper.getRootProjectName(processItem);
|
||||
tempfile = perlProject.getFile(PerlResourcesHelper.getJobFileName(rootProjectName, processItem.getProperty()
|
||||
.getLabel(), processItem.getProperty().getVersion()));
|
||||
} catch (CoreException e) {
|
||||
throw new SystemException(e);
|
||||
}
|
||||
|
||||
return tempfile;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.talend.designer.codegen.ITalendSynchronizer#getFile(org.talend.core.model.properties.Item)
|
||||
*/
|
||||
public IFile getFile(Item item) throws SystemException {
|
||||
if (item instanceof RoutineItem) {
|
||||
return getRoutineFile((RoutineItem) item);
|
||||
} else if (item instanceof ProcessItem) {
|
||||
return getProcessFile((ProcessItem) item);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @seeorg.talend.designer.codegen.AbstractRoutineSynchronizer#renameRoutineClass(org.talend.core.model.properties.
|
||||
* RoutineItem, java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
public void renameRoutineClass(RoutineItem routineItem) {
|
||||
// nothing to do
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @seeorg.talend.designer.codegen.AbstractRoutineSynchronizer#renameRoutineClass(org.talend.core.model.properties.
|
||||
* RoutineItem, java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
public void renameBeanClass(Item beanItem) {
|
||||
// nothing to do
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @seeorg.talend.designer.codegen.AbstractRoutineSynchronizer#deleteRoutinefile(org.talend.core.model.repository.
|
||||
* IRepositoryObject)
|
||||
*/
|
||||
@Override
|
||||
public void deleteRoutinefile(IRepositoryViewObject objToDelete) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Jsdoc)
|
||||
*
|
||||
* @see
|
||||
* org.talend.designer.codegen.AbstractRoutineSynchronizer#doSyncBean(org.talend.core.model.properties.BeanItem,
|
||||
* boolean)
|
||||
*/
|
||||
@Override
|
||||
protected void doSyncBean(Item beanItem, boolean copyToTemp) throws SystemException {
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Jsdoc)
|
||||
*
|
||||
* @see
|
||||
* org.talend.designer.codegen.ITalendSynchronizer#deleteBeanfile(org.talend.core.model.repository.IRepositoryViewObject
|
||||
* )
|
||||
*/
|
||||
public void deleteBeanfile(IRepositoryViewObject objToDelete) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
public IFile getRoutinesFile(Item routineItem) {
|
||||
try {
|
||||
if (routineItem instanceof RoutineItem) {
|
||||
return getFile(routineItem);
|
||||
}
|
||||
} catch (SystemException e) {
|
||||
ExceptionHandler.process(e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2015 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.designer.codegen;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.eclipse.core.resources.IFile;
|
||||
import org.eclipse.core.resources.IFolder;
|
||||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
import org.talend.commons.exception.SystemException;
|
||||
import org.talend.commons.utils.generation.JavaUtils;
|
||||
import org.talend.core.language.ECodeLanguage;
|
||||
import org.talend.core.model.properties.SQLPatternItem;
|
||||
import org.talend.designer.runprocess.IRunProcessService;
|
||||
|
||||
/**
|
||||
* SQLPattern synchronizer of java project.
|
||||
*
|
||||
* bqian class global comment. Detailled comment <br/>
|
||||
*
|
||||
* $Id: JavaRoutineSynchronizer.java JavaRoutineSynchronizer 2007-2-2 下午03:29:12 +0000 (下午03:29:12, 2007-2-2 2007)
|
||||
* yzhang $
|
||||
*
|
||||
*/
|
||||
public class PerlSQLPatternSynchronizer extends AbstractSQLPatternSynchronizer {
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.talend.designer.codegen.ISQLPatternSynchronizer#getSQLPattern(org.talend.core.model.properties.SQLPatternItem)
|
||||
*/
|
||||
public IFile getSQLPatternFile(SQLPatternItem item) throws SystemException {
|
||||
try {
|
||||
IRunProcessService service = CodeGeneratorActivator.getDefault().getRunProcessService();
|
||||
IProject javaProject = service.getProject(ECodeLanguage.PERL);
|
||||
initSQLPatternFolder(javaProject, item);
|
||||
|
||||
IFile file = javaProject.getFile(JavaUtils.JAVA_SQLPATTERNS_DIRECTORY + "/" + item.getEltName() + "/" //$NON-NLS-1$ //$NON-NLS-2$
|
||||
+ JavaUtils.JAVA_SYSTEM_ROUTINES_DIRECTORY + "/" + item.getProperty().getLabel() //$NON-NLS-1$
|
||||
+ JavaUtils.JAVA_SQLPATTERN_EXTENSION);
|
||||
return file;
|
||||
} catch (CoreException e) {
|
||||
throw new SystemException(e);
|
||||
}
|
||||
}
|
||||
|
||||
private void initSQLPatternFolder(IProject javaProject, SQLPatternItem item) throws CoreException {
|
||||
IPath path = new Path(JavaUtils.JAVA_SQLPATTERNS_DIRECTORY);
|
||||
IFolder rep = javaProject.getFolder(path);
|
||||
if (!rep.exists()) {
|
||||
rep.create(true, true, null);
|
||||
}
|
||||
path = path.append(item.getEltName());
|
||||
rep = javaProject.getFolder(path);
|
||||
if (!rep.exists()) {
|
||||
rep.create(true, true, null);
|
||||
}
|
||||
|
||||
path = path.append(JavaUtils.JAVA_SYSTEM_ROUTINES_DIRECTORY);
|
||||
rep = javaProject.getFolder(path);
|
||||
if (!rep.exists()) {
|
||||
rep.create(true, true, null);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.talend.designer.codegen.ISQLPatternSynchronizer#syncSQLPattern(org.talend.core.model.properties.SQLPatternItem,
|
||||
* boolean)
|
||||
*/
|
||||
public void syncSQLPattern(SQLPatternItem routineItem, boolean copyToTemp) throws SystemException {
|
||||
FileOutputStream fos = null;
|
||||
try {
|
||||
IFile file = getSQLPatternFile(routineItem);
|
||||
|
||||
if (copyToTemp) {
|
||||
String routineContent = new String(routineItem.getContent().getInnerContent());
|
||||
File f = file.getLocation().toFile();
|
||||
fos = new FileOutputStream(f);
|
||||
fos.write(routineContent.getBytes());
|
||||
fos.close();
|
||||
}
|
||||
file.refreshLocal(1, null);
|
||||
} catch (CoreException e) {
|
||||
throw new SystemException(e);
|
||||
} catch (IOException e) {
|
||||
throw new SystemException(e);
|
||||
} finally {
|
||||
try {
|
||||
fos.close();
|
||||
} catch (Exception e) {
|
||||
// ignore me even if i'm null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -22,7 +22,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
@@ -129,8 +128,6 @@ public class ComponentsFactory implements IComponentsFactory {
|
||||
|
||||
private static boolean cleanDone = false;
|
||||
|
||||
protected static Map<String, Map<String, Set<IComponent>>> componentNameMap;
|
||||
|
||||
public ComponentsFactory() {
|
||||
}
|
||||
|
||||
@@ -181,9 +178,6 @@ public class ComponentsFactory implements IComponentsFactory {
|
||||
|
||||
ComponentManager.saveResource(); // will save only if needed.
|
||||
|
||||
// init component name map, used to pick specified component immediately
|
||||
initComponentNameMap();
|
||||
|
||||
// TimeMeasure.step("initComponents", "createCache");
|
||||
log.debug(componentList.size() + " components loaded in " + (System.currentTimeMillis() - startTime) + " ms"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
@@ -193,45 +187,6 @@ public class ComponentsFactory implements IComponentsFactory {
|
||||
// TimeMeasure.measureActive = false;
|
||||
}
|
||||
|
||||
protected void initComponentNameMap() {
|
||||
if (componentList == null) {
|
||||
return;
|
||||
}
|
||||
/**
|
||||
* component names example: <br>
|
||||
* 1. xmlMapComponent <br>
|
||||
* 2. xmlmapComponent <br>
|
||||
* 3. xmlmapcomponent <br>
|
||||
* 4. xmlMapComponent (for DI) <br>
|
||||
* 5. xmlMapComponent (for BD) <br>
|
||||
*/
|
||||
componentNameMap = new HashMap<String, Map<String, Set<IComponent>>>();
|
||||
Iterator<IComponent> componentIter = componentList.iterator();
|
||||
while (componentIter.hasNext()) {
|
||||
IComponent component = componentIter.next();
|
||||
String componentName = component.getName();
|
||||
if (StringUtils.isEmpty(componentName)) {
|
||||
continue;
|
||||
}
|
||||
String componentNameLowerCase = componentName.toLowerCase();
|
||||
Map<String, Set<IComponent>> map = componentNameMap.get(componentNameLowerCase);
|
||||
if (map == null) {
|
||||
map = new HashMap<String, Set<IComponent>>();
|
||||
Set<IComponent> componentSet = new HashSet<IComponent>();
|
||||
componentSet.add(component);
|
||||
map.put(componentName, componentSet);
|
||||
componentNameMap.put(componentNameLowerCase, map);
|
||||
} else {
|
||||
Set<IComponent> componentSet = map.get(componentName);
|
||||
if (componentSet == null) {
|
||||
componentSet = new HashSet<IComponent>();
|
||||
map.put(componentName, componentSet);
|
||||
}
|
||||
componentSet.add(component);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* DOC guanglong.du Comment method "loadComponentResource".
|
||||
*
|
||||
@@ -583,7 +538,7 @@ public class ComponentsFactory implements IComponentsFactory {
|
||||
BusinessException ex = new BusinessException(
|
||||
"Cannot load component \"" + currentFolder.getName() + "\": " //$NON-NLS-1$ //$NON-NLS-2$
|
||||
+ e.getMessage(), e);
|
||||
ExceptionHandler.process(ex, Level.ERROR);
|
||||
ExceptionHandler.process(ex, Level.WARN);
|
||||
}
|
||||
|
||||
if (this.subMonitor != null) {
|
||||
@@ -792,14 +747,6 @@ public class ComponentsFactory implements IComponentsFactory {
|
||||
return componentList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized Map<String, Map<String, Set<IComponent>>> getComponentNameMap() {
|
||||
if (componentNameMap == null) {
|
||||
init(false);
|
||||
}
|
||||
return componentNameMap;
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized List<IComponent> getCustomComponents() {
|
||||
if (customComponentList == null) {
|
||||
|
||||
@@ -60,6 +60,9 @@ public class CodeGeneratorArgument {
|
||||
|
||||
private int pauseTime;
|
||||
|
||||
@Deprecated
|
||||
private boolean subTreeContainsParallelIterate;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
@@ -275,4 +278,16 @@ public class CodeGeneratorArgument {
|
||||
this.subTree = subTree;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
/*
|
||||
* use org.talend.core.model.process.AbstractNode.getParallelIterator()
|
||||
*/
|
||||
public boolean subTreeContainsParallelIterate() {
|
||||
return subTreeContainsParallelIterate;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setSubTreeContainsParallelIterate(boolean subTreeContainsParallelIterate) {
|
||||
this.subTreeContainsParallelIterate = subTreeContainsParallelIterate;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,18 +65,7 @@ public enum EInternalTemplate {
|
||||
STORM_MONITOR_HEADER("storm_monitor_header", "0.0.1"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
STORM_MONITOR_FOOTER("storm_monitor_footer", "0.0.1"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
HEADER_ADDITIONAL("header_additional", "0.0.1"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
SPARK_HEADER("spark_header", "0.0.1"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
SPARK_FOOTER("spark_footer", "0.0.1"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
SPARK_SUBPROCESS_HEADER("spark_subprocess_header", "0.0.1"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
SPARK_SUBPROCESS_FOOTER("spark_subprocess_footer", "0.0.1"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
SPARKSTREAMING_HEADER("sparkstreaming_header", "0.0.1"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
SPARKSTREAMING_FOOTER("sparkstreaming_footer", "0.0.1"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
SPARKSTREAMING_SUBPROCESS_HEADER("sparkstreaming_subprocess_header", "0.0.1"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
SPARKSTREAMING_SUBPROCESS_FOOTER("sparkstreaming_subprocess_footer", "0.0.1"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
SPARK_COMPONENT_SPARKCONFIG_HEADER("spark_component_sparkconfig_header", "0.0.1"), //$NON-NLS-1$ //$NON-NLS-2$
|
||||
SPARK_COMPONENT_SPARKCONFIG_FOOTER("spark_component_sparkconfig_footer", "0.0.1"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
HEADER_ADDITIONAL("header_additional", "0.0.1"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
private String templateName;
|
||||
|
||||
|
||||
@@ -60,6 +60,9 @@ public class NodesSubTree {
|
||||
|
||||
List<IConnection> allMainSubTreeConnections = null;
|
||||
|
||||
@Deprecated
|
||||
boolean subTreeContainsParallelIterate = false;
|
||||
|
||||
List<INode> mergeBranchStarts;
|
||||
|
||||
List<INode> mergeNodes;
|
||||
@@ -121,7 +124,7 @@ public class NodesSubTree {
|
||||
allMainSubTreeConnections = new ArrayList<IConnection>();
|
||||
|
||||
buildCamelSubTree(node, false);
|
||||
} else if ((typeGen == ETypeGen.MR) || (typeGen == ETypeGen.STORM)) {
|
||||
} else if (typeGen == ETypeGen.MR) {
|
||||
this.rootNode = node;
|
||||
this.name = node.getUniqueName();
|
||||
this.nodes = new ArrayList<INode>();
|
||||
@@ -130,18 +133,17 @@ public class NodesSubTree {
|
||||
|
||||
allMainSubTreeConnections = new ArrayList<IConnection>();
|
||||
|
||||
buildBigDataSubTree(node);
|
||||
} else if (typeGen == ETypeGen.SPARK) {
|
||||
buildMRSubTree(node);
|
||||
} else if (typeGen == ETypeGen.STORM) {
|
||||
this.rootNode = node;
|
||||
this.name = node.getUniqueName();
|
||||
this.nodes = new ArrayList<INode>();
|
||||
this.visitedNodesMainCode = new HashMap<INode, Integer>();
|
||||
afterSubProcesses = new ArrayList<String>();
|
||||
beforeSubProcesses = new ArrayList<String>();
|
||||
|
||||
allMainSubTreeConnections = new ArrayList<IConnection>();
|
||||
|
||||
buildSparkSubTree(node);
|
||||
buildStormSubTree(node);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,7 +192,7 @@ public class NodesSubTree {
|
||||
nodes.add(node);
|
||||
}
|
||||
|
||||
private void buildBigDataSubTree(INode node) {
|
||||
private void buildMRSubTree(INode node) {
|
||||
if (((AbstractNode) node).isThereLinkWithRef()) {
|
||||
this.isRefSubTree = true;
|
||||
List<INode> newRefNodes = ((AbstractNode) node).getRefNodes();
|
||||
@@ -201,7 +203,7 @@ public class NodesSubTree {
|
||||
refNodes.addAll(((AbstractNode) node).getRefNodes());
|
||||
}
|
||||
for (INode refNode : newRefNodes) {
|
||||
buildBigDataSubTree(refNode);
|
||||
buildMRSubTree(refNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -212,7 +214,7 @@ public class NodesSubTree {
|
||||
if (!connection.getLineStyle().hasConnectionCategory(IConnectionCategory.USE_ITERATE)) {
|
||||
allMainSubTreeConnections.add(connection);
|
||||
}
|
||||
buildBigDataSubTree(connection.getTarget());
|
||||
buildMRSubTree(connection.getTarget());
|
||||
}
|
||||
if (connection.getLineStyle().equals(EConnectionType.RUN_AFTER)) {
|
||||
afterSubProcesses.add(connection.getTarget().getUniqueName());
|
||||
@@ -226,39 +228,25 @@ public class NodesSubTree {
|
||||
nodes.add(node);
|
||||
}
|
||||
|
||||
private void buildSparkSubTree(INode node) {
|
||||
this.visitedNodesMainCode.put(node, 0);
|
||||
if (node.getComponent().useMerge()) {
|
||||
for (IConnection connection : node.getIncomingConnections(EConnectionType.FLOW_MERGE)) {
|
||||
if (this.visitedNodesMainCode.get(connection.getSource()) != null) {
|
||||
// The node has been visited, continue the loop.
|
||||
continue;
|
||||
private void buildStormSubTree(INode node) {
|
||||
// Use a copy of buildMRSubTree for now. This will soon evolve.
|
||||
if (((AbstractNode) node).isThereLinkWithRef()) {
|
||||
this.isRefSubTree = true;
|
||||
this.refNodes = ((AbstractNode) node).getRefNodes();
|
||||
if (refNodes != null) {
|
||||
for (INode refNode : refNodes) {
|
||||
buildStormSubTree(refNode);
|
||||
}
|
||||
INode sourceNode = connection.getSource();
|
||||
while (sourceNode.getIncomingConnections().size() > 0) {
|
||||
sourceNode = sourceNode.getIncomingConnections().get(0).getSource();
|
||||
}
|
||||
buildSparkSubTree(sourceNode);
|
||||
}
|
||||
}
|
||||
if (node.getComponent().useLookup()) {
|
||||
for (IConnection connection : node.getIncomingConnections(EConnectionType.FLOW_REF)) {
|
||||
if (this.visitedNodesMainCode.get(connection.getSource()) != null) {
|
||||
// The node has been visited, continue the loop.
|
||||
continue;
|
||||
}
|
||||
INode sourceNode = connection.getSource();
|
||||
while (sourceNode.getIncomingConnections().size() > 0) {
|
||||
sourceNode = sourceNode.getIncomingConnections().get(0).getSource();
|
||||
}
|
||||
buildSparkSubTree(sourceNode);
|
||||
}
|
||||
}
|
||||
for (IConnection connection : node.getOutgoingSortedConnections()) {
|
||||
if (connection.getTarget().isActivate() && this.visitedNodesMainCode.get(connection.getTarget()) == null) {
|
||||
if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
|
||||
allMainSubTreeConnections.add(connection);
|
||||
buildSparkSubTree(connection.getTarget());
|
||||
if (connection.getTarget().isActivate()) {
|
||||
|
||||
if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.MAIN)) {
|
||||
if (!connection.getLineStyle().hasConnectionCategory(IConnectionCategory.USE_ITERATE)) {
|
||||
allMainSubTreeConnections.add(connection);
|
||||
}
|
||||
buildStormSubTree(connection.getTarget());
|
||||
}
|
||||
if (connection.getLineStyle().equals(EConnectionType.RUN_AFTER)) {
|
||||
afterSubProcesses.add(connection.getTarget().getUniqueName());
|
||||
@@ -292,7 +280,7 @@ public class NodesSubTree {
|
||||
if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.MAIN)) {
|
||||
if (!connection.getLineStyle().hasConnectionCategory(IConnectionCategory.USE_ITERATE)) {
|
||||
allMainSubTreeConnections.add(connection);
|
||||
}
|
||||
}
|
||||
if (DEBUG) {
|
||||
System.out.print(" -> "); //$NON-NLS-1$
|
||||
}
|
||||
@@ -545,6 +533,18 @@ public class NodesSubTree {
|
||||
this.allMainSubTreeConnections = allMainSubTreeConnections;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
/*
|
||||
* use org.talend.core.model.process.AbstractNode.getParallelIterator()
|
||||
*/
|
||||
public boolean subTreeContainsParallelIterate() {
|
||||
return subTreeContainsParallelIterate;
|
||||
}
|
||||
|
||||
public void setSubTreeContainsParallelIterate(boolean subTreeContainsParallelIterate) {
|
||||
this.subTreeContainsParallelIterate = subTreeContainsParallelIterate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for isRefSubTree.
|
||||
*
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.talend.core.model.temp.ETypeGen;
|
||||
/**
|
||||
* A NodesTree is the Code Gerator Implementation of a process. A NodesTree is built using the Nodes of the Process.
|
||||
* It's made of a list of NodesSubTree.
|
||||
*
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
public class NodesTree {
|
||||
@@ -37,7 +37,7 @@ public class NodesTree {
|
||||
|
||||
/**
|
||||
* Constuctor for NodesTree. Note: the param init=false, when it is called in generateComponentCodeWithRows().
|
||||
*
|
||||
*
|
||||
* @param List of Available Nodes in this tree.
|
||||
* @param execute init method or not
|
||||
*/
|
||||
@@ -55,10 +55,10 @@ public class NodesTree {
|
||||
if (init) {
|
||||
if (typeGen == ETypeGen.CAMEL) {
|
||||
buildCamelSubTrees(true);
|
||||
} else if (typeGen == ETypeGen.MR || typeGen == ETypeGen.STORM) {
|
||||
buildBigDataSubTrees(typeGen);
|
||||
} else if (typeGen == ETypeGen.SPARK) {
|
||||
buildSparkSubTrees(typeGen);
|
||||
} else if (typeGen == ETypeGen.MR) {
|
||||
buildMRSubTrees();
|
||||
} else if (typeGen == ETypeGen.STORM) {
|
||||
buildStormSubTrees();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -100,30 +100,29 @@ public class NodesTree {
|
||||
}
|
||||
}
|
||||
|
||||
private void buildBigDataSubTrees(ETypeGen typeGen) {
|
||||
private void buildMRSubTrees() {
|
||||
subTrees = new ArrayList<NodesSubTree>();
|
||||
for (INode node : nodes) {
|
||||
if (((node.isSubProcessStart()) && (node.isActivate()) && !((AbstractNode) node).isRefNode())
|
||||
|| (rootNodes.contains(node))) {
|
||||
subTrees.add(new NodesSubTree(node, nodes, typeGen));
|
||||
subTrees.add(new NodesSubTree(node, nodes, ETypeGen.MR));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void buildSparkSubTrees(ETypeGen typeGen) {
|
||||
private void buildStormSubTrees() {
|
||||
subTrees = new ArrayList<NodesSubTree>();
|
||||
for (INode node : nodes) {
|
||||
if (((node == node.getSubProcessStartNode(false))
|
||||
&& (node.getDesignSubjobStartNode() == null || node == node.getDesignSubjobStartNode())
|
||||
&& (node.isActivate()) && !((AbstractNode) node).isThereLinkWithHash())) {
|
||||
subTrees.add(new NodesSubTree(node, nodes, typeGen));
|
||||
if (((node.isSubProcessStart()) && (node.isActivate()) && !((AbstractNode) node).isRefNode())
|
||||
|| (rootNodes.contains(node))) {
|
||||
subTrees.add(new NodesSubTree(node, nodes, ETypeGen.STORM));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build Root Nodes List.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -156,7 +155,7 @@ public class NodesTree {
|
||||
|
||||
/**
|
||||
* Getter for RootNodes.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public List<INode> getRootNodes() {
|
||||
@@ -171,7 +170,7 @@ public class NodesTree {
|
||||
|
||||
/**
|
||||
* Getter for subTrees.
|
||||
*
|
||||
*
|
||||
* @return the subTrees
|
||||
*/
|
||||
public List<NodesSubTree> getSubTrees() {
|
||||
|
||||
@@ -462,7 +462,7 @@ public class TalendJetEmitter extends JETEmitter {
|
||||
//cmdList.add("-time"); //$NON-NLS-1$
|
||||
cmdList.add("-g"); //$NON-NLS-1$
|
||||
cmdList.add("-warn:none"); //$NON-NLS-1$
|
||||
cmdList.add('-' + JavaCore.VERSION_1_6);
|
||||
cmdList.add("-1.6"); //$NON-NLS-1$
|
||||
cmdList.add("-d"); //$NON-NLS-1$
|
||||
cmdList.add(getClassOutputPath(project, javaFile));
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Enumeration;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
@@ -32,7 +31,6 @@ import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
import org.eclipse.core.runtime.Status;
|
||||
import org.eclipse.core.runtime.SubProgressMonitor;
|
||||
import org.eclipse.core.runtime.jobs.IJobChangeEvent;
|
||||
@@ -47,7 +45,6 @@ import org.eclipse.jface.dialogs.MessageDialog;
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
import org.talend.commons.CommonsPlugin;
|
||||
import org.talend.commons.exception.BusinessException;
|
||||
import org.talend.commons.exception.ExceptionHandler;
|
||||
import org.talend.commons.runtime.model.components.IComponentConstants;
|
||||
import org.talend.commons.runtime.utils.io.IOUtils;
|
||||
import org.talend.commons.ui.runtime.CommonUIPlugin;
|
||||
@@ -262,9 +259,7 @@ public final class CodeGeneratorEmittersPoolFactory {
|
||||
Messages.getString("CodeGeneratorEmittersPoolFactory.failCompail") //$NON-NLS-1$
|
||||
+ message.toString());
|
||||
}
|
||||
if (!CommonsPlugin.isHeadless()) {
|
||||
CorePlugin.getDefault().getRcpService().activeSwitchProjectAction();
|
||||
}
|
||||
CorePlugin.getDefault().getRcpService().activeSwitchProjectAction();
|
||||
return Status.OK_STATUS;
|
||||
}
|
||||
|
||||
@@ -411,52 +406,14 @@ public final class CodeGeneratorEmittersPoolFactory {
|
||||
}
|
||||
jetBean.setFamily(StringUtils.removeSpecialCharsForPackage(familyName.toLowerCase()));
|
||||
|
||||
// Spark, M/R and Storm requires the plugin org.talend.designer.spark to be in the classpath in order to
|
||||
// generate the code.
|
||||
if (PluginChecker.isPluginLoaded("org.talend.designer.spark") && ("SPARK".equals(component.getPaletteType()) || "MR".equals(component.getPaletteType()) || "STORM".equals(component.getPaletteType()) || "SPARKSTREAMING".equals(component.getPaletteType()))) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
|
||||
jetBean.addClassPath("BIGDATA_LIBRARIES", "org.talend.designer.bigdata"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
jetBean.addClassPath("SPARK_LIBRARIES", "org.talend.designer.spark"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
try {
|
||||
// The parent class loader is used first to find all of the classes that a javajet code generator
|
||||
// can use.
|
||||
ClassLoader baseClassLoader = new CodeGeneratorEmittersPoolFactory().getClass().getClassLoader();
|
||||
// This secondary class loader is used to find big data utility classes. None of the classes in the
|
||||
// parent can depend on these classes, but these can depend on the parent.
|
||||
ClassLoader bigDataUtilsClassLoader = Platform.getBundle("org.talend.designer.bigdata") //$NON-NLS-1$
|
||||
.loadClass("org.talend.designer.bigdata.common.BigDataDataProcess").getClassLoader(); //$NON-NLS-1$
|
||||
ClassLoader delegateClassLoader = new DelegateClassLoader(baseClassLoader, bigDataUtilsClassLoader);
|
||||
// Add another class loader for spark utilities. This can depend on classes already in the delegate,
|
||||
// but they can't depend on its classes.
|
||||
ClassLoader sparkUtilsClassLoader = Platform.getBundle("org.talend.designer.spark") //$NON-NLS-1$
|
||||
.loadClass("org.talend.designer.spark.SparkPlugin").getClassLoader(); //$NON-NLS-1$
|
||||
delegateClassLoader = new DelegateClassLoader(delegateClassLoader, sparkUtilsClassLoader);
|
||||
jetBean.setClassLoader(delegateClassLoader);
|
||||
} catch (ClassNotFoundException e) {
|
||||
ExceptionHandler.process(e);
|
||||
}
|
||||
|
||||
// If Spark AND with an external component, use the external component as the parent classloader and
|
||||
// spark as a secondary, delegate classloader.
|
||||
if (component.getPluginExtension() != null) {
|
||||
jetBean.addClassPath(
|
||||
"EXTERNAL_COMPONENT_" + component.getPluginExtension().toUpperCase().replaceAll("\\.", "_"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
component.getPluginExtension());
|
||||
jetBean.setClassLoader(new DelegateClassLoader(ExternalNodesFactory
|
||||
.getInstance(component.getPluginExtension()).getClass().getClassLoader(), jetBean.getClassLoader()));
|
||||
}
|
||||
|
||||
} else if (component.getPluginExtension() != null) {
|
||||
|
||||
if (component.getPluginExtension() != null) {
|
||||
jetBean.addClassPath("EXTERNAL_COMPONENT_" + component.getPluginExtension().toUpperCase().replaceAll("\\.", "_"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
component.getPluginExtension());
|
||||
jetBean.setClassLoader(ExternalNodesFactory.getInstance(component.getPluginExtension()).getClass()
|
||||
.getClassLoader());
|
||||
} else {
|
||||
|
||||
jetBean.setClassLoader(new CodeGeneratorEmittersPoolFactory().getClass().getClassLoader());
|
||||
|
||||
}
|
||||
|
||||
jetBeans.add(jetBean);
|
||||
}
|
||||
// When building the main part of the component, also attempt to build the other parts.
|
||||
@@ -848,37 +805,4 @@ public final class CodeGeneratorEmittersPoolFactory {
|
||||
return (ICodeGeneratorService) service;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A simple classloader that permits a "delegate" to be added to a "parent" classloader. With the model used by the
|
||||
* Java ClassLoader, this permits classes that are in the delegate to be instantiated, and are able to use objects
|
||||
* created from the parent ClassLoader.
|
||||
*
|
||||
* Objects in the parent ClassLoader must not use objects instantiated from the delegate.
|
||||
*/
|
||||
public static class DelegateClassLoader extends ClassLoader {
|
||||
|
||||
private ClassLoader delegate;
|
||||
|
||||
public DelegateClassLoader(ClassLoader parent, ClassLoader delegate) {
|
||||
super(parent);
|
||||
this.delegate = delegate;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Class<?> findClass(String name) throws ClassNotFoundException {
|
||||
return delegate.loadClass(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected URL findResource(String name) {
|
||||
return delegate.getResource(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Enumeration<URL> findResources(String name) throws IOException {
|
||||
return delegate.getResources(name);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,4 +36,3 @@ Export-Package: org.talend.designer.components.exchange,
|
||||
org.talend.designer.components.exchange.ui,
|
||||
org.talend.designer.components.exchange.ui.views
|
||||
Eclipse-BundleShape: dir
|
||||
Import-Package: org.talend.registration.wizards.register
|
||||
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 347 B |
|
Before Width: | Height: | Size: 1.3 KiB |
@@ -21,7 +21,7 @@
|
||||
<editor
|
||||
class="org.talend.designer.components.exchange.ui.views.ExchangeView"
|
||||
default="false"
|
||||
icon="icons/exchange_view.png"
|
||||
icon="icons/exchange_view.gif"
|
||||
id="org.talend.designer.components.exchange.ui.views.ExchangeView"
|
||||
name="Exchange">
|
||||
</editor>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.talend.studio</groupId>
|
||||
<artifactId>tdi-studio-se</artifactId>
|
||||
<version>6.0.0-RC1</version>
|
||||
<version>6.0.0-M2</version>
|
||||
<relativePath>../../../</relativePath>
|
||||
</parent>
|
||||
<artifactId>org.talend.designer.components.exchange</artifactId>
|
||||
|
||||
@@ -44,7 +44,6 @@ import org.talend.core.CorePlugin;
|
||||
import org.talend.core.GlobalServiceRegister;
|
||||
import org.talend.core.download.DownloadHelper;
|
||||
import org.talend.core.download.DownloadListener;
|
||||
import org.talend.core.download.IDownloadHelper;
|
||||
import org.talend.core.language.ECodeLanguage;
|
||||
import org.talend.core.language.LanguageManager;
|
||||
import org.talend.core.model.components.ComponentManager;
|
||||
@@ -349,7 +348,7 @@ public class DownloadComponenentsAction extends Action implements IIntroAction {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void downloadProgress(IDownloadHelper downloader, int bytesRead) {
|
||||
public void downloadProgress(DownloadHelper downloader, int bytesRead) {
|
||||
if (fMonitor.isCanceled()) {
|
||||
// cancel download
|
||||
downloader.setCancel(true);
|
||||
|
||||
@@ -14,18 +14,18 @@ package org.talend.designer.components.exchange.ui.dialog;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.eclipse.jface.dialogs.MessageDialog;
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
import org.eclipse.ui.IEditorPart;
|
||||
import org.eclipse.ui.IWorkbenchPage;
|
||||
import org.eclipse.ui.PartInitException;
|
||||
import org.eclipse.ui.PlatformUI;
|
||||
import org.talend.commons.ui.gmf.util.DisplayUtils;
|
||||
import org.talend.commons.ui.runtime.exception.ExceptionHandler;
|
||||
import org.talend.core.model.general.Project;
|
||||
import org.talend.core.service.IExchangeService;
|
||||
import org.talend.designer.components.exchange.i18n.Messages;
|
||||
import org.talend.designer.components.exchange.ui.views.ExchangeEditorInput;
|
||||
import org.talend.designer.components.exchange.util.ExchangeWebService;
|
||||
import org.talend.registration.wizards.register.TalendForgeDialog;
|
||||
import org.talend.repository.ProjectManager;
|
||||
|
||||
import us.monoid.json.JSONException;
|
||||
@@ -42,33 +42,22 @@ public class ExchangeService implements IExchangeService {
|
||||
*
|
||||
* @see org.talend.core.model.general.IExchangeService#openExchangeDialog()
|
||||
*/
|
||||
@Override
|
||||
public String openExchangeDialog() {
|
||||
ImportExchangeDialog dialog = new ImportExchangeDialog(Display.getCurrent().getActiveShell());
|
||||
dialog.open();
|
||||
return dialog.getSelectFile();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void openExchangeEditor() {
|
||||
IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
|
||||
if (activePage != null) {
|
||||
Project proj = ProjectManager.getInstance().getCurrentProject();
|
||||
if (proj.getExchangeUser() == null
|
||||
|| checkUserAndPass(proj.getExchangeUser().getUsername(), proj.getExchangeUser().getPassword()) != null) {
|
||||
if (proj != null) {
|
||||
if (proj.getExchangeUser().getUsername() == "" && proj.getExchangeUser().getPassword() == "") {
|
||||
String userEmail = null;
|
||||
if (proj.getAuthor() != null) {
|
||||
userEmail = proj.getAuthor().getLogin();
|
||||
}
|
||||
TalendForgeDialog tfDialog = new TalendForgeDialog(DisplayUtils.getDefaultShell(), userEmail);
|
||||
tfDialog.open();
|
||||
}
|
||||
// MessageDialog.openError(null, "Exchange", Messages.getString("Exchange.logon.error"));
|
||||
return;
|
||||
}
|
||||
MessageDialog.openError(null, "Exchange", Messages.getString("Exchange.logon.error"));
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
ExchangeEditorInput input = new ExchangeEditorInput();
|
||||
IEditorPart findEditor = activePage.findEditor(input);
|
||||
@@ -84,7 +73,6 @@ public class ExchangeService implements IExchangeService {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String checkUserAndPass(String username, String password) {
|
||||
String errorMessage = "Wrong user or password";
|
||||
if (username == null || "".equals(username) || password == null || "".equals(password)) {
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<target name="compile" description="Compile Java sources">
|
||||
|
||||
<!-- compile -->
|
||||
<javac srcdir="${source.home}" destdir="${build.dir}/classes" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}" target="1.5">
|
||||
<javac srcdir="${source.home}" destdir="${build.dir}/classes" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}">
|
||||
<classpath refid="compile.classpath" />
|
||||
</javac>
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import org.apache.commons.lang.mutable.MutableInt;
|
||||
public class EBCDICType3 {
|
||||
public static BigDecimal readType3Value(byte[] byteValue, int decimal,
|
||||
boolean isImpliedDecimal){
|
||||
BigDecimal retVal = new BigDecimal(unpackDecimal(byteValue,decimal,isImpliedDecimal));
|
||||
BigDecimal retVal = new BigDecimal(convertByteArr2Hex(byteValue,decimal,isImpliedDecimal));
|
||||
int lgth = byteValue.length;
|
||||
int tmp = byteValue[lgth-1] & 0x0F;
|
||||
|
||||
@@ -26,29 +26,12 @@ public class EBCDICType3 {
|
||||
int tmp = byteArr[lgth-1] & 0x0F;
|
||||
if(tmp == 0x0F || tmp == 0x0C || tmp == 0x0D){
|
||||
isValid = true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
|
||||
int temp;
|
||||
for (int i = 0; i < lgth; i++) {
|
||||
temp = (byteArr[i] & 0xF0) >> 4;//compute the higher nibble
|
||||
isValid = isValid && (temp < 10);
|
||||
|
||||
if (i < (lgth - 1)) {
|
||||
temp = byteArr[i] & 0x0F;//compute the lower nibble
|
||||
isValid = isValid && (temp < 10);
|
||||
}
|
||||
|
||||
if(!isValid){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return isValid;
|
||||
}
|
||||
|
||||
public static String unpackDecimal(byte[] byteValue, int decimal, boolean isImpliedDecimal){
|
||||
public static String convertByteArr2Hex(byte[] byteValue, int decimal, boolean isImpliedDecimal){
|
||||
int len = byteValue.length;
|
||||
StringBuffer strbuf = new StringBuffer();
|
||||
int tmp;
|
||||
@@ -80,12 +63,11 @@ public class EBCDICType3 {
|
||||
return readType3Value(byteValue,decimal,isImpliedDecimal);
|
||||
}else{
|
||||
boolean isValid = isValidPackedDecimal(byteValue);
|
||||
BigDecimal convertedBigDecimal = null;
|
||||
BigDecimal convertedBigDecimal = new BigDecimal(convertByteArr2Hex(byteValue,decimal,isImpliedDecimal));// implicit else part
|
||||
if(isValid){
|
||||
int lgth = byteValue.length;
|
||||
int tmp = byteValue[lgth-1] & 0x0F;
|
||||
convertedBigDecimal = new BigDecimal(unpackDecimal(byteValue,decimal,isImpliedDecimal));// implicit else part for 0x0F or 0x0C
|
||||
if(tmp == 0x0D){
|
||||
if(tmp == 0x0D){// implicit else part for 0x0F or 0x0C
|
||||
convertedBigDecimal = convertedBigDecimal.negate();
|
||||
}
|
||||
}else{
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.talend</groupId>
|
||||
<artifactId>NetSuite_Management</artifactId>
|
||||
<name>NetSuite_Management</name>
|
||||
<version>1.0.0</version>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.talend</groupId>
|
||||
<artifactId>Netsuite_Client</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
<artifactId>cxf-rt-frontend-jaxws</artifactId>
|
||||
<version>2.7.7</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<configuration>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
<encoding>UTF-8</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/java</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
</build>
|
||||
</project>
|
||||
@@ -1,2 +0,0 @@
|
||||
.level= FINE
|
||||
java.util.logging.ConsoleHandler.level = FINE
|
||||
@@ -1,33 +0,0 @@
|
||||
package org.talend.netsuite;
|
||||
|
||||
public class NetsuiteException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String code;
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
private String message;
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public NetsuiteException(String code, String message) {
|
||||
super();
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,857 +0,0 @@
|
||||
package org.talend.netsuite;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.text.DateFormat;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.xml.bind.JAXBException;
|
||||
import javax.xml.datatype.DatatypeConfigurationException;
|
||||
import javax.xml.datatype.DatatypeFactory;
|
||||
import javax.xml.datatype.XMLGregorianCalendar;
|
||||
import javax.xml.namespace.QName;
|
||||
import javax.xml.soap.SOAPException;
|
||||
import javax.xml.ws.BindingProvider;
|
||||
|
||||
import org.apache.cxf.headers.Header;
|
||||
import org.apache.cxf.jaxb.JAXBDataBinding;
|
||||
|
||||
import com.netsuite.webservices.platform.ExceededRequestLimitFault;
|
||||
import com.netsuite.webservices.platform.ExceededRequestSizeFault;
|
||||
import com.netsuite.webservices.platform.InsufficientPermissionFault;
|
||||
import com.netsuite.webservices.platform.InvalidAccountFault;
|
||||
import com.netsuite.webservices.platform.InvalidCredentialsFault;
|
||||
import com.netsuite.webservices.platform.InvalidVersionFault;
|
||||
import com.netsuite.webservices.platform.NetSuitePortType;
|
||||
import com.netsuite.webservices.platform.NetSuiteService;
|
||||
import com.netsuite.webservices.platform.UnexpectedErrorFault;
|
||||
import com.netsuite.webservices.platform.core.DataCenterUrls;
|
||||
import com.netsuite.webservices.platform.core.ListOrRecordRef;
|
||||
import com.netsuite.webservices.platform.core.NullField;
|
||||
import com.netsuite.webservices.platform.core.Passport;
|
||||
import com.netsuite.webservices.platform.core.Record;
|
||||
import com.netsuite.webservices.platform.core.RecordRef;
|
||||
import com.netsuite.webservices.platform.core.SearchBooleanCustomField;
|
||||
import com.netsuite.webservices.platform.core.SearchBooleanField;
|
||||
import com.netsuite.webservices.platform.core.SearchCustomField;
|
||||
import com.netsuite.webservices.platform.core.SearchCustomFieldList;
|
||||
import com.netsuite.webservices.platform.core.SearchDateCustomField;
|
||||
import com.netsuite.webservices.platform.core.SearchDateField;
|
||||
import com.netsuite.webservices.platform.core.SearchDoubleCustomField;
|
||||
import com.netsuite.webservices.platform.core.SearchDoubleField;
|
||||
import com.netsuite.webservices.platform.core.SearchEnumMultiSelectField;
|
||||
import com.netsuite.webservices.platform.core.SearchLongCustomField;
|
||||
import com.netsuite.webservices.platform.core.SearchLongField;
|
||||
import com.netsuite.webservices.platform.core.SearchMultiSelectCustomField;
|
||||
import com.netsuite.webservices.platform.core.SearchMultiSelectField;
|
||||
import com.netsuite.webservices.platform.core.SearchRecord;
|
||||
import com.netsuite.webservices.platform.core.SearchResult;
|
||||
import com.netsuite.webservices.platform.core.SearchStringCustomField;
|
||||
import com.netsuite.webservices.platform.core.SearchStringField;
|
||||
import com.netsuite.webservices.platform.core.Status;
|
||||
import com.netsuite.webservices.platform.core.StatusDetail;
|
||||
import com.netsuite.webservices.platform.core.types.RecordType;
|
||||
import com.netsuite.webservices.platform.core.types.SearchDateFieldOperator;
|
||||
import com.netsuite.webservices.platform.core.types.SearchDoubleFieldOperator;
|
||||
import com.netsuite.webservices.platform.core.types.SearchEnumMultiSelectFieldOperator;
|
||||
import com.netsuite.webservices.platform.core.types.SearchLongFieldOperator;
|
||||
import com.netsuite.webservices.platform.core.types.SearchMultiSelectFieldOperator;
|
||||
import com.netsuite.webservices.platform.core.types.SearchStringFieldOperator;
|
||||
import com.netsuite.webservices.platform.messages.AddRequest;
|
||||
import com.netsuite.webservices.platform.messages.AddResponse;
|
||||
import com.netsuite.webservices.platform.messages.DeleteRequest;
|
||||
import com.netsuite.webservices.platform.messages.DeleteResponse;
|
||||
import com.netsuite.webservices.platform.messages.GetDataCenterUrlsRequest;
|
||||
import com.netsuite.webservices.platform.messages.GetRequest;
|
||||
import com.netsuite.webservices.platform.messages.GetResponse;
|
||||
import com.netsuite.webservices.platform.messages.LoginRequest;
|
||||
import com.netsuite.webservices.platform.messages.Preferences;
|
||||
import com.netsuite.webservices.platform.messages.SearchMoreWithIdRequest;
|
||||
import com.netsuite.webservices.platform.messages.SearchPreferences;
|
||||
import com.netsuite.webservices.platform.messages.SearchRequest;
|
||||
import com.netsuite.webservices.platform.messages.UpdateRequest;
|
||||
import com.netsuite.webservices.platform.messages.UpdateResponse;
|
||||
import com.netsuite.webservices.platform.messages.WriteResponse;
|
||||
import com.netsuite.webservices.setup.customization.CustomRecord;
|
||||
import com.netsuite.webservices.setup.customization.CustomRecordSearch;
|
||||
import com.netsuite.webservices.setup.customization.CustomRecordSearchAdvanced;
|
||||
|
||||
public class NetsuiteManagement_CXF {
|
||||
|
||||
static {
|
||||
// adjusting the log levels
|
||||
System.setProperty("java.util.logging.config.file", NetsuiteManagement_CXF.class.getResource("/META-INF/logging.properties").toString());
|
||||
}
|
||||
|
||||
private NetSuitePortType _port;
|
||||
|
||||
private String _url;
|
||||
private String _email;
|
||||
private String _pwd;
|
||||
private String _role;
|
||||
private String _account;
|
||||
private int _pageSize = 100;
|
||||
|
||||
public NetsuiteManagement_CXF(String email, String pwd, String role, String account, String url) {
|
||||
this._email = email;
|
||||
this._pwd = pwd;
|
||||
this._role = role;
|
||||
this._url = url;
|
||||
this._account = account;
|
||||
}
|
||||
|
||||
private Class<?> entityClass;
|
||||
private Class<?> searchClass;
|
||||
private Class<?> searchBasicClass;
|
||||
private Class<?> searchAdvancedClass;
|
||||
|
||||
private SearchRecord search; // search class' instance
|
||||
private SearchRecord searchBasic; // search basic class' instance
|
||||
private SearchRecord searchAdvanced; // search advanced class' instance
|
||||
|
||||
private boolean isItemSearch;
|
||||
private String searchId = null;
|
||||
|
||||
// no use for now
|
||||
private SearchCustomField[] customCriteria;
|
||||
|
||||
public void initialize(String searchentity, String savedSearchId) throws SecurityException, NoSuchMethodException, SOAPException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException {
|
||||
this.entityClass = TalendComponentGenerator.getEntityClass(searchentity);
|
||||
this.searchClass = TalendComponentGenerator.getSearchClass(searchentity);
|
||||
this.searchBasicClass = TalendComponentGenerator.getSearchBasicClass(searchentity);
|
||||
this.searchAdvancedClass = TalendComponentGenerator.getSearchAdvancedClass(searchentity);
|
||||
|
||||
this.customCriteria = new SearchCustomField[1];
|
||||
|
||||
// if type is customRecord
|
||||
if (this.searchClass == null) {
|
||||
this.searchClass = CustomRecordSearch.class;
|
||||
searchentity = CustomRecord.class.getName();
|
||||
this.searchAdvancedClass = CustomRecordSearchAdvanced.class;
|
||||
this.searchBasicClass = TalendComponentGenerator.getSearchBasicClass(searchentity);
|
||||
}
|
||||
|
||||
// search class not found or supported
|
||||
if (this.searchClass == null) {
|
||||
throw new IllegalArgumentException("SearchClass not found - " + searchentity);
|
||||
}
|
||||
|
||||
// get a search class instance
|
||||
Constructor<?> constructor = this.searchClass.getConstructor(new Class[0]);
|
||||
this.search = ((SearchRecord) constructor.newInstance(new Object[0]));
|
||||
|
||||
// get a advanced search class instance and set SaveSearchId into it
|
||||
this.searchAdvanced = null;
|
||||
if ((savedSearchId != null) && (savedSearchId.length() > 0)) {
|
||||
constructor = this.searchAdvancedClass.getConstructor(new Class[0]);
|
||||
this.searchAdvanced = ((SearchRecord) constructor.newInstance(new Object[0]));
|
||||
Method setSavedSearchIdMethod = findMethod(this.searchAdvancedClass, "setSavedSearchId");
|
||||
Object[] args = { savedSearchId };
|
||||
setSavedSearchIdMethod.invoke(this.searchAdvanced, args);
|
||||
}
|
||||
|
||||
// search class is itemSearch, it's special
|
||||
if (this.searchClass.getSimpleName().equals("ItemSearch")) {
|
||||
this.isItemSearch = true;
|
||||
}
|
||||
|
||||
// basic search class not found or supported
|
||||
if (this.searchBasicClass == null) {
|
||||
throw new IllegalArgumentException("SearchBasicClass not found-" + searchentity);
|
||||
}
|
||||
|
||||
// get a basic search class instance
|
||||
constructor = this.searchBasicClass.getConstructor(null);
|
||||
this.searchBasic = ((SearchRecord) constructor.newInstance(new Object[0]));
|
||||
}
|
||||
|
||||
public void initializeStub() throws JAXBException, UnexpectedErrorFault, ExceededRequestSizeFault, InvalidCredentialsFault, InvalidVersionFault, InsufficientPermissionFault, ExceededRequestLimitFault, InvalidAccountFault, MalformedURLException {
|
||||
URL wsdl_locationUrl = this.getClass().getResource("/wsdl/netsuite.wsdl");
|
||||
QName serviceQname = new QName("urn:platform_2014_2.webservices.netsuite.com", "NetSuiteService");
|
||||
NetSuiteService service = new NetSuiteService(wsdl_locationUrl, serviceQname);
|
||||
NetSuitePortType port = service.getNetSuitePort();
|
||||
|
||||
Preferences preferences = new Preferences();
|
||||
preferences.setDisableMandatoryCustomFieldValidation(Boolean.FALSE);
|
||||
preferences.setWarningAsError(Boolean.FALSE);
|
||||
preferences.setIgnoreReadOnlyFields(Boolean.TRUE);
|
||||
preferences.setDisableMandatoryCustomFieldValidation(Boolean.TRUE);
|
||||
|
||||
SearchPreferences searchPreferences = new SearchPreferences();
|
||||
searchPreferences.setPageSize(this._pageSize);
|
||||
searchPreferences.setBodyFieldsOnly(Boolean.valueOf(false));
|
||||
|
||||
RecordRef role = new RecordRef();
|
||||
role.setInternalId(this._role);
|
||||
Passport passport = new Passport();
|
||||
passport.setEmail(this._email);
|
||||
passport.setPassword(this._pwd);
|
||||
passport.setRole(role);
|
||||
passport.setAccount(this._account);
|
||||
|
||||
// Get the webservices domain for your account
|
||||
GetDataCenterUrlsRequest dataCenterRequest = new GetDataCenterUrlsRequest();
|
||||
dataCenterRequest.setAccount(this._account);
|
||||
DataCenterUrls urls = port.getDataCenterUrls(dataCenterRequest).getGetDataCenterUrlsResult().getDataCenterUrls();
|
||||
String wsDomain = urls.getWebservicesDomain();
|
||||
String endpoint = wsDomain.concat(new URL(this._url).getPath());
|
||||
|
||||
BindingProvider provider = (BindingProvider) port;
|
||||
Map<String, Object> requestContext = provider.getRequestContext();
|
||||
requestContext.put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
|
||||
requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpoint);
|
||||
|
||||
List<Header> list = (List<Header>)requestContext.get(Header.HEADER_LIST);
|
||||
if(list == null){
|
||||
list = new ArrayList<Header>();
|
||||
requestContext.put(Header.HEADER_LIST, list);
|
||||
}
|
||||
|
||||
Header searchPreferences_header = new Header(new QName("urn:messages_2014_2.platform.webservices.netsuite.com", "searchPreferences"), searchPreferences, new JAXBDataBinding(searchPreferences.getClass()));
|
||||
Header preferences_header = new Header(new QName("urn:messages_2014_2.platform.webservices.netsuite.com", "preferences"), preferences, new JAXBDataBinding(preferences.getClass()));
|
||||
list.add(searchPreferences_header);
|
||||
list.add(preferences_header);
|
||||
|
||||
LoginRequest request = new LoginRequest();
|
||||
request.setPassport(passport);
|
||||
|
||||
port.login(request);
|
||||
|
||||
this._port = port;
|
||||
|
||||
Arrays.asList(new String[]{"", "", ""});
|
||||
}
|
||||
|
||||
private Method criteriaSetter;
|
||||
private int size = 0;
|
||||
private boolean hasCustomCriteria = false;
|
||||
|
||||
private SearchResult searchResult;
|
||||
|
||||
public void search(String searchentity, String searchFieldName, String searchOperator, List<String> searchValue, String forcedType) throws DatatypeConfigurationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
|
||||
if ((searchValue.get(0) != null) && (searchFieldName != null)) {
|
||||
this.criteriaSetter = findMethod(this.searchBasicClass, "set" + searchFieldName);
|
||||
|
||||
if (this.criteriaSetter == null) {
|
||||
SearchCustomField customCriteria = null;
|
||||
|
||||
if (forcedType.equals("String")) {
|
||||
SearchStringCustomField searchArgumentType = new SearchStringCustomField();
|
||||
searchArgumentType.setInternalId(searchFieldName);
|
||||
searchArgumentType.setSearchValue(searchValue.get(0));
|
||||
searchArgumentType
|
||||
.setOperator(SearchStringFieldOperator
|
||||
.fromValue(searchOperator));
|
||||
customCriteria = searchArgumentType;
|
||||
} else if (forcedType.equals("Long")) {
|
||||
SearchLongCustomField searchArgumentType = new SearchLongCustomField();
|
||||
searchArgumentType.setInternalId(searchFieldName);
|
||||
searchArgumentType.setSearchValue(Long.valueOf(Long
|
||||
.parseLong(searchValue.get(0))));
|
||||
|
||||
if (searchValue.size() > 1) {
|
||||
searchArgumentType.setSearchValue2(Long
|
||||
.valueOf(Long.parseLong(searchValue.get(1))));
|
||||
}
|
||||
|
||||
searchArgumentType.setOperator(SearchLongFieldOperator
|
||||
.fromValue(searchOperator));
|
||||
customCriteria = searchArgumentType;
|
||||
} else if (forcedType.equals("Date")) {
|
||||
SearchDateCustomField searchArgumentType = new SearchDateCustomField();
|
||||
Calendar calValue = Calendar.getInstance();
|
||||
Calendar calValue2 = Calendar.getInstance();
|
||||
|
||||
String dateFormat = "yyyy-MM-dd";
|
||||
String timeFormat = "HH:mm:ss";
|
||||
|
||||
String format = dateFormat + " " + timeFormat;
|
||||
if (searchValue.get(0).length() == dateFormat.length()) {
|
||||
format = dateFormat;
|
||||
}
|
||||
|
||||
if (searchValue.get(0).length() == timeFormat.length()) {
|
||||
searchValue.set(0, new SimpleDateFormat(dateFormat).format(calValue.getTime()) + " " + searchValue.get(0));
|
||||
if(searchValue.size() > 1){
|
||||
searchValue.set(1, new SimpleDateFormat(dateFormat).format(calValue.getTime()) + " " + searchValue.get(1));
|
||||
}
|
||||
}
|
||||
|
||||
DateFormat df = new SimpleDateFormat(format);
|
||||
|
||||
try {
|
||||
calValue.setTime(df.parse(searchValue.get(0)));
|
||||
if(searchValue.size() > 1){
|
||||
calValue2.setTime(df.parse(searchValue.get(1)));
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
XMLGregorianCalendar xts = DatatypeFactory.newInstance().newXMLGregorianCalendar();
|
||||
xts.setYear(calValue.get(Calendar.YEAR));
|
||||
xts.setMonth(calValue.get(Calendar.MONTH) +1);
|
||||
xts.setDay(calValue.get(Calendar.DAY_OF_MONTH));
|
||||
xts.setHour(calValue.get(Calendar.HOUR_OF_DAY));
|
||||
xts.setMinute(calValue.get(Calendar.MINUTE));
|
||||
xts.setSecond(calValue.get(Calendar.SECOND));
|
||||
xts.setMillisecond(calValue.get(Calendar.MILLISECOND));
|
||||
xts.setTimezone(calValue.get(Calendar.ZONE_OFFSET) / 60000 );
|
||||
|
||||
searchArgumentType.setSearchValue(xts);
|
||||
|
||||
if(searchValue.size() > 1){
|
||||
XMLGregorianCalendar xts2 = DatatypeFactory.newInstance().newXMLGregorianCalendar();
|
||||
xts2.setYear(calValue.get(Calendar.YEAR));
|
||||
xts2.setMonth(calValue.get(Calendar.MONTH) +1);
|
||||
xts2.setDay(calValue.get(Calendar.DAY_OF_MONTH));
|
||||
xts2.setHour(calValue.get(Calendar.HOUR_OF_DAY));
|
||||
xts2.setMinute(calValue.get(Calendar.MINUTE));
|
||||
xts2.setSecond(calValue.get(Calendar.SECOND));
|
||||
xts2.setMillisecond(calValue.get(Calendar.MILLISECOND));
|
||||
xts2.setTimezone(calValue.get(Calendar.ZONE_OFFSET) / 60000 );
|
||||
searchArgumentType.setSearchValue2(xts2);
|
||||
}
|
||||
|
||||
searchArgumentType.setOperator(SearchDateFieldOperator.fromValue(searchOperator));
|
||||
customCriteria = searchArgumentType;
|
||||
} else if (forcedType.equals("Boolean")) {
|
||||
SearchBooleanCustomField searchArgumentType = new SearchBooleanCustomField();
|
||||
searchArgumentType.setInternalId(searchFieldName);
|
||||
searchArgumentType.setSearchValue(Boolean
|
||||
.valueOf(Boolean.parseBoolean(searchValue.get(0))));
|
||||
customCriteria = searchArgumentType;
|
||||
} else if (forcedType.equals("Double")) {
|
||||
SearchDoubleCustomField searchArgumentType = new SearchDoubleCustomField();
|
||||
searchArgumentType.setInternalId(searchFieldName);
|
||||
searchArgumentType.setSearchValue(Double.valueOf(Double
|
||||
.parseDouble(searchValue.get(0))));
|
||||
searchArgumentType
|
||||
.setOperator(SearchDoubleFieldOperator
|
||||
.fromValue(searchOperator));
|
||||
|
||||
if (searchValue.size() > 1) {
|
||||
searchArgumentType
|
||||
.setSearchValue2(Double.valueOf(Double
|
||||
.parseDouble(searchValue.get(1))));
|
||||
}
|
||||
|
||||
customCriteria = searchArgumentType;
|
||||
} else if (forcedType.equals("List")) {
|
||||
SearchMultiSelectCustomField searchArgumentType = new SearchMultiSelectCustomField();
|
||||
|
||||
int len = searchValue.size();
|
||||
|
||||
List<ListOrRecordRef> lr = searchArgumentType.getSearchValue();
|
||||
for (int i = 0; i < len; i++) {
|
||||
ListOrRecordRef lRecordRef = new ListOrRecordRef();
|
||||
lRecordRef.setName(searchValue.get(i));
|
||||
lr.add(lRecordRef);
|
||||
}
|
||||
|
||||
searchArgumentType
|
||||
.setOperator(SearchMultiSelectFieldOperator
|
||||
.fromValue(searchOperator));
|
||||
customCriteria = searchArgumentType;
|
||||
} else {
|
||||
throw new IllegalArgumentException("Unsupported search field type: " + forcedType);
|
||||
}
|
||||
|
||||
push(customCriteria);
|
||||
|
||||
this.hasCustomCriteria = true;
|
||||
} else {
|
||||
this.criteriaSetter.invoke(this.searchBasic, new Object[] { getSearchField(this.searchBasicClass, searchValue, searchFieldName, searchOperator) });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Object getSearchField(Class<?> searchClass, List<String> searchValue, String searchFieldName, String searchOperator) throws DatatypeConfigurationException {
|
||||
Object criteria = null;
|
||||
Method getFieldMethod = findMethod(searchClass, "get" + searchFieldName);
|
||||
String searchType = getFieldMethod.getReturnType().getSimpleName();
|
||||
|
||||
if (searchType.equals("SearchStringField")) {
|
||||
|
||||
SearchStringField searchArgumentType = new SearchStringField();
|
||||
searchArgumentType.setSearchValue(searchValue.get(0));
|
||||
searchArgumentType.setOperator(SearchStringFieldOperator.fromValue(searchOperator));
|
||||
criteria = searchArgumentType;
|
||||
|
||||
} else if (searchType.equals("SearchLongField")) {
|
||||
|
||||
SearchLongField searchArgumentType = new SearchLongField();
|
||||
searchArgumentType.setSearchValue(Long.valueOf(Long.parseLong(searchValue.get(0))));
|
||||
|
||||
if (searchValue.size() > 1) {
|
||||
searchArgumentType.setSearchValue2(Long.valueOf(Long.parseLong(searchValue.get(1))));
|
||||
}
|
||||
|
||||
searchArgumentType.setOperator(SearchLongFieldOperator.fromValue(searchOperator));
|
||||
criteria = searchArgumentType;
|
||||
|
||||
} else if (searchType.equals("SearchDateField")) {
|
||||
|
||||
SearchDateField searchArgumentType = new SearchDateField();
|
||||
Calendar calValue = Calendar.getInstance();
|
||||
|
||||
String dateFormat = "yyyy-MM-dd";
|
||||
String timeFormat = "HH:mm:ss";
|
||||
|
||||
String format = dateFormat + " " + timeFormat;
|
||||
|
||||
if (searchValue.get(0).length() == dateFormat.length()) {
|
||||
format = dateFormat;
|
||||
}
|
||||
|
||||
if (searchValue.get(0).length() == timeFormat.length()) {
|
||||
searchValue.set(0, new SimpleDateFormat(dateFormat).format(calValue.getTime()) + " " + searchValue.get(0));
|
||||
}
|
||||
|
||||
DateFormat df = new SimpleDateFormat(format);
|
||||
|
||||
try {
|
||||
calValue.setTime(df.parse(searchValue.get(0)));
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
XMLGregorianCalendar xts = DatatypeFactory.newInstance().newXMLGregorianCalendar();
|
||||
xts.setYear(calValue.get(Calendar.YEAR));
|
||||
xts.setMonth(calValue.get(Calendar.MONTH) +1);
|
||||
xts.setDay(calValue.get(Calendar.DAY_OF_MONTH));
|
||||
xts.setHour(calValue.get(Calendar.HOUR_OF_DAY));
|
||||
xts.setMinute(calValue.get(Calendar.MINUTE));
|
||||
xts.setSecond(calValue.get(Calendar.SECOND));
|
||||
xts.setMillisecond(calValue.get(Calendar.MILLISECOND));
|
||||
xts.setTimezone(calValue.get(Calendar.ZONE_OFFSET) / 60000 );
|
||||
|
||||
searchArgumentType.setSearchValue(xts);
|
||||
|
||||
if (searchValue.size() > 1) {
|
||||
try {
|
||||
calValue.setTime(df.parse(searchValue.get(1)));
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
XMLGregorianCalendar xts2 = DatatypeFactory.newInstance().newXMLGregorianCalendar();
|
||||
xts2.setYear(calValue.get(Calendar.YEAR));
|
||||
xts2.setMonth(calValue.get(Calendar.MONTH) +1);
|
||||
xts2.setDay(calValue.get(Calendar.DAY_OF_MONTH));
|
||||
xts2.setHour(calValue.get(Calendar.HOUR_OF_DAY));
|
||||
xts2.setMinute(calValue.get(Calendar.MINUTE));
|
||||
xts2.setSecond(calValue.get(Calendar.SECOND));
|
||||
xts2.setMillisecond(calValue.get(Calendar.MILLISECOND));
|
||||
xts2.setTimezone(calValue.get(Calendar.ZONE_OFFSET) / 60000 );
|
||||
|
||||
searchArgumentType.setSearchValue2(xts2);
|
||||
}
|
||||
|
||||
searchArgumentType.setOperator(SearchDateFieldOperator.fromValue(searchOperator));
|
||||
|
||||
criteria = searchArgumentType;
|
||||
|
||||
} else if (searchType.equals("SearchBooleanField")) {
|
||||
SearchBooleanField searchArgumentType = new SearchBooleanField();
|
||||
|
||||
if (searchValue.get(0).toLowerCase().equals("t")) {
|
||||
searchValue.set(0, "true");
|
||||
}
|
||||
|
||||
if (searchValue.get(0).toLowerCase().equals("f")) {
|
||||
searchValue.set(0, "false");
|
||||
}
|
||||
|
||||
searchArgumentType.setSearchValue(Boolean.valueOf(searchValue.get(0)));
|
||||
criteria = searchArgumentType;
|
||||
|
||||
} else if (searchType.equals("SearchDoubleField")) {
|
||||
|
||||
SearchDoubleField searchArgumentType = new SearchDoubleField();
|
||||
|
||||
searchArgumentType.setSearchValue(Double.valueOf(Double.parseDouble(searchValue.get(0))));
|
||||
|
||||
if (searchValue.size() > 1) {
|
||||
searchArgumentType.setSearchValue2(Double.valueOf(Double.parseDouble(searchValue.get(1))));
|
||||
}
|
||||
|
||||
searchArgumentType.setOperator(SearchDoubleFieldOperator.fromValue(searchOperator));
|
||||
criteria = searchArgumentType;
|
||||
|
||||
} else if (searchType.equals("SearchMultiSelectField")) {
|
||||
|
||||
SearchMultiSelectField searchArgumentType = new SearchMultiSelectField();
|
||||
|
||||
List<RecordRef> values = searchArgumentType.getSearchValue();
|
||||
for (int i = 0; i < searchValue.size(); i++) {
|
||||
RecordRef ref = new RecordRef();
|
||||
ref.setName(searchValue.get(i));
|
||||
ref.setInternalId(searchValue.get(i));
|
||||
ref.setExternalId(null);
|
||||
ref.setType(null);
|
||||
values.add(ref);
|
||||
}
|
||||
|
||||
searchArgumentType.setOperator(SearchMultiSelectFieldOperator.fromValue(searchOperator));
|
||||
criteria = searchArgumentType;
|
||||
|
||||
} else if (searchType.equals("SearchEnumMultiSelectField")) {
|
||||
|
||||
SearchEnumMultiSelectField searchArgumentType = new SearchEnumMultiSelectField();
|
||||
searchArgumentType.getSearchValue().addAll(searchValue);
|
||||
searchArgumentType.setOperator(SearchEnumMultiSelectFieldOperator.fromValue(searchOperator));
|
||||
criteria = searchArgumentType;
|
||||
|
||||
} else if (searchType.equals("String[]")) {
|
||||
|
||||
SearchEnumMultiSelectField searchArgumentType = new SearchEnumMultiSelectField();
|
||||
searchArgumentType.getSearchValue().addAll(searchValue);
|
||||
searchArgumentType.setOperator(SearchEnumMultiSelectFieldOperator.fromValue(searchOperator));
|
||||
criteria = searchArgumentType;
|
||||
|
||||
} else {
|
||||
throw new IllegalArgumentException("Unsupported search field type: " + searchType);
|
||||
}
|
||||
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Record> submitRequest(boolean useRequestLevelAuth) throws Exception {
|
||||
if (useRequestLevelAuth) {
|
||||
initializeStub();
|
||||
}
|
||||
|
||||
List<String> list = Arrays.asList(TalendComponentGenerator.transactionTypeList);
|
||||
|
||||
if (list.contains(this.entityClass.getSimpleName())) {
|
||||
Method typeSetter = findMethod(this.searchBasicClass, "setType");
|
||||
SearchEnumMultiSelectField semsf = new SearchEnumMultiSelectField();
|
||||
semsf.getSearchValue().add(TalendComponentGenerator.toInitialLower(this.entityClass.getSimpleName()));
|
||||
semsf.setOperator(SearchEnumMultiSelectFieldOperator.ANY_OF);
|
||||
typeSetter.invoke(this.searchBasic, new Object[] { semsf });
|
||||
}
|
||||
|
||||
if (this.hasCustomCriteria) {
|
||||
this.criteriaSetter = findMethod(this.searchBasicClass, "setCustomFieldList");
|
||||
SearchCustomFieldList scl = new SearchCustomFieldList();
|
||||
scl.getCustomField().addAll(Arrays.asList(this.customCriteria));
|
||||
this.criteriaSetter.invoke(this.searchBasic, new Object[] { scl });
|
||||
}
|
||||
|
||||
Method basicSetter = findMethod(this.searchClass, "setBasic");
|
||||
basicSetter.invoke(this.search, new Object[] { this.searchBasic });
|
||||
|
||||
SearchRecord s = this.search;
|
||||
|
||||
if (this.searchAdvanced != null) {
|
||||
s = this.searchAdvanced;
|
||||
Method setCriteriaMethod = findMethod(this.searchAdvancedClass, "setCriteria");
|
||||
setCriteriaMethod.invoke(this.searchAdvanced, new Object[] { this.search });
|
||||
}
|
||||
|
||||
SearchRequest searchRequest = new SearchRequest();
|
||||
searchRequest.setSearchRecord(s);
|
||||
|
||||
this.searchResult = this._port.search(searchRequest).getSearchResult();
|
||||
|
||||
if (this.searchResult.getStatus().isIsSuccess()) {
|
||||
this.searchId = this.searchResult.getSearchId();
|
||||
if (this.searchResult.getRecordList() != null) {
|
||||
return filterItemSearch();
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<Record> filterItemSearch() {
|
||||
if (this.isItemSearch) {
|
||||
int numtodelete = 0;
|
||||
List<Record> r = this.searchResult.getRecordList().getRecord();
|
||||
|
||||
for (int i = 0; (r != null) && (i < this.searchResult.getRecordList().getRecord().size()); i++) {
|
||||
if (!this.searchResult.getRecordList().getRecord().get(i).getClass().equals(this.entityClass)) {
|
||||
this.searchResult.getRecordList().getRecord().set(i, null);
|
||||
numtodelete++;
|
||||
}
|
||||
}
|
||||
|
||||
if (numtodelete > 0) {
|
||||
ArrayList<Record> newRecords = new ArrayList<Record>(this.searchResult.getRecordList().getRecord().size() - numtodelete);
|
||||
int newindex = 0;
|
||||
for (int i = 0; i < this.searchResult.getRecordList().getRecord().size(); i++) {
|
||||
if (this.searchResult.getRecordList().getRecord().get(i) != null) {
|
||||
newRecords.set(newindex, this.searchResult.getRecordList().getRecord().get(i));
|
||||
newindex++;
|
||||
}
|
||||
}
|
||||
return newRecords;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (this.searchResult.getRecordList().getRecord() == null) {
|
||||
return new ArrayList<Record>();
|
||||
}
|
||||
|
||||
return this.searchResult.getRecordList().getRecord();
|
||||
}
|
||||
|
||||
public boolean hasMore() {
|
||||
if (this.searchResult == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.searchResult.getPageIndex() == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.searchResult.getTotalPages() == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return this.searchResult.getPageIndex().intValue() < this.searchResult.getTotalPages().intValue();
|
||||
}
|
||||
|
||||
private void push(SearchCustomField newCriteria) {
|
||||
ensureCapacity();
|
||||
this.customCriteria[(this.size++)] = newCriteria;
|
||||
}
|
||||
|
||||
private void ensureCapacity() {
|
||||
if (this.customCriteria.length == this.size) {
|
||||
this.customCriteria = ((SearchCustomField[]) Arrays.copyOf(this.customCriteria, this.size + 1));
|
||||
}
|
||||
}
|
||||
|
||||
public List<Record> getMoreRecords() throws InvalidCredentialsFault, com.netsuite.webservices.platform.ExceededRecordCountFault, com.netsuite.webservices.platform.InvalidSessionFault, ExceededRequestLimitFault, com.netsuite.webservices.platform.ExceededUsageLimitFault, UnexpectedErrorFault, ExceededRequestSizeFault {
|
||||
|
||||
if (this.searchId != null) {
|
||||
SearchMoreWithIdRequest searchMoreRequest = new SearchMoreWithIdRequest();
|
||||
searchMoreRequest.setSearchId(this.searchId);
|
||||
searchMoreRequest.setPageIndex(this.searchResult.getPageIndex().intValue() + 1);
|
||||
|
||||
this.searchResult = this._port.searchMoreWithId(searchMoreRequest).getSearchResult();
|
||||
|
||||
if (this.searchResult.getStatus().isIsSuccess()) {
|
||||
return filterItemSearch();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public String insert(Record record) throws Exception {
|
||||
|
||||
initializeStub();
|
||||
|
||||
AddRequest addRequest = new AddRequest();
|
||||
addRequest.setRecord(record);
|
||||
AddResponse response = getPort().add(addRequest);
|
||||
|
||||
WriteResponse wr = response.getWriteResponse();
|
||||
|
||||
if (!wr.getStatus().isIsSuccess()) {
|
||||
throw new NetsuiteException(getErrorCodes(wr.getStatus()), getErrorMessages(wr.getStatus()));
|
||||
}
|
||||
|
||||
java.lang.reflect.Field field = wr.getBaseRef().getClass().getDeclaredField("internalId");
|
||||
field.setAccessible(true);
|
||||
String internalId = (String) field.get(wr.getBaseRef());
|
||||
|
||||
return internalId;
|
||||
}
|
||||
|
||||
public void update(Record record) throws Exception {
|
||||
initializeStub();
|
||||
|
||||
UpdateRequest updateRequest = new UpdateRequest();
|
||||
updateRequest.setRecord(record);
|
||||
|
||||
UpdateResponse response = getPort().update(updateRequest);
|
||||
|
||||
java.lang.reflect.Field field = record.getClass().getDeclaredField("internalId");
|
||||
field.setAccessible(true);
|
||||
String internalId = (String) field.get(record);
|
||||
|
||||
if (!response.getWriteResponse().getStatus().isIsSuccess()) {
|
||||
throw new NetsuiteException(getErrorCodes(response.getWriteResponse().getStatus()), getErrorMessages(response.getWriteResponse().getStatus()));
|
||||
}
|
||||
}
|
||||
|
||||
public String upsert(Record record) throws Exception {
|
||||
|
||||
initializeStub();
|
||||
|
||||
Record existingRecord = null;
|
||||
String entityType = record.getClass().getName();
|
||||
|
||||
String internalID = (String) invokeGetter(record, "InternalId");
|
||||
if (internalID != null) {
|
||||
existingRecord = get(entityType, internalID);
|
||||
}
|
||||
|
||||
if (existingRecord != null) {
|
||||
this.update(record);
|
||||
} else {
|
||||
invokeSetter(record, "InternalId", "");
|
||||
internalID = this.insert(record);
|
||||
}
|
||||
|
||||
return internalID;
|
||||
}
|
||||
|
||||
public void delete(String entitytype, String id) throws Exception {
|
||||
String typeName = TalendComponentGenerator.toInitialLower(Class.forName(entitytype).getSimpleName());
|
||||
|
||||
RecordRef recordRef = new RecordRef();
|
||||
recordRef.setType(RecordType.fromValue(typeName));
|
||||
recordRef.setInternalId(id);
|
||||
|
||||
DeleteRequest deleteRequest = new DeleteRequest();
|
||||
deleteRequest.setBaseRef(recordRef);
|
||||
|
||||
DeleteResponse response = getPort().delete(deleteRequest);
|
||||
|
||||
if (!response.getWriteResponse().getStatus().isIsSuccess()) {
|
||||
throw new NetsuiteException(getErrorCodes(response.getWriteResponse().getStatus()), getErrorMessages(response.getWriteResponse().getStatus()));
|
||||
}
|
||||
}
|
||||
|
||||
public Record get(String entitytype, String id) throws MalformedURLException, InvalidCredentialsFault, com.netsuite.webservices.platform.ExceededRecordCountFault, com.netsuite.webservices.platform.InvalidSessionFault, ExceededRequestLimitFault, com.netsuite.webservices.platform.ExceededUsageLimitFault, UnexpectedErrorFault, ExceededRequestSizeFault, JAXBException, InvalidVersionFault, InsufficientPermissionFault, InvalidAccountFault {
|
||||
String typeName = TalendComponentGenerator.toInitialLower(TalendComponentGenerator.getEntityClass(entitytype).getSimpleName());
|
||||
|
||||
RecordRef ref = new RecordRef();
|
||||
ref.setInternalId(id);
|
||||
ref.setType(RecordType.fromValue(typeName));
|
||||
|
||||
GetRequest getRequest = new GetRequest();
|
||||
getRequest.setBaseRef(ref);
|
||||
|
||||
GetResponse getResponse = getPort().get(getRequest);
|
||||
|
||||
if (getResponse.getReadResponse().getStatus().isIsSuccess()) {
|
||||
return getResponse.getReadResponse().getRecord();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public NetSuitePortType getPort() throws JAXBException, UnexpectedErrorFault, ExceededRequestSizeFault, MalformedURLException, InvalidCredentialsFault, InvalidVersionFault, InsufficientPermissionFault, ExceededRequestLimitFault, InvalidAccountFault {
|
||||
|
||||
if (this._port == null) {
|
||||
initializeStub();
|
||||
}
|
||||
return this._port;
|
||||
|
||||
}
|
||||
|
||||
public String getStatusDetails(Status status) {
|
||||
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
List<StatusDetail> statusDetails = status.getStatusDetail();
|
||||
|
||||
if (statusDetails != null) {
|
||||
for (StatusDetail detail : statusDetails) {
|
||||
stringBuffer.append("[Code=" + detail.getCode() + "] " + detail.getMessage() + "\n");
|
||||
}
|
||||
}
|
||||
|
||||
return stringBuffer.toString();
|
||||
}
|
||||
|
||||
public String getErrorCodes(Status status) {
|
||||
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
List<StatusDetail> statusDetails = status.getStatusDetail();
|
||||
|
||||
if (statusDetails != null) {
|
||||
int i = 0;
|
||||
for(; i < statusDetails.size() - 1; i++){
|
||||
stringBuffer.append(statusDetails.get(i).getCode() + ", ");
|
||||
}
|
||||
stringBuffer.append(statusDetails.get(i).getCode());
|
||||
}
|
||||
|
||||
return stringBuffer.toString();
|
||||
}
|
||||
|
||||
public String getErrorMessages(Status status) {
|
||||
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
List<StatusDetail> statusDetails = status.getStatusDetail();
|
||||
|
||||
if (statusDetails != null) {
|
||||
int i = 0;
|
||||
for(; i < statusDetails.size() - 1; i++){
|
||||
stringBuffer.append(statusDetails.get(i).getMessage() + ", ");
|
||||
}
|
||||
stringBuffer.append(statusDetails.get(i).getMessage());
|
||||
}
|
||||
|
||||
return stringBuffer.toString();
|
||||
}
|
||||
|
||||
public void setPageSize(int pageSize) {
|
||||
this._pageSize = pageSize;
|
||||
}
|
||||
|
||||
public Object invokeGetter(Object target, String field) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
|
||||
Method getter = target.getClass().getMethod("get" + field, new Class[0]);
|
||||
return getter.invoke(target, null);
|
||||
}
|
||||
|
||||
public void invokeSetter(Object target, String field, Object value) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
|
||||
Method setter = target.getClass().getMethod("set" + field, new Class[] { value.getClass() });
|
||||
Object[] args = new Object[1];
|
||||
args[0] = value;
|
||||
setter.invoke(target, args);
|
||||
}
|
||||
|
||||
private static Method findMethod(Class<?> clazz, String methodName) {
|
||||
Method[] methods = clazz.getMethods();
|
||||
|
||||
for (int i = 0; i < methods.length; i++) {
|
||||
if (methods[i].getName().equals(methodName))
|
||||
return methods[i];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setNullFieldValue(NullField fl, String id) {
|
||||
List<String> cfl = fl.getName();
|
||||
int index = -1;
|
||||
if ((cfl != null) && (cfl.size() > 0)) {
|
||||
for (int i = 0; i < cfl.size(); i++) {
|
||||
if (id.equals(cfl.get(i))) {
|
||||
index = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (index == -1) {
|
||||
if ((cfl == null)) {
|
||||
cfl = new ArrayList<String>();
|
||||
}
|
||||
cfl.add(id);
|
||||
} else {
|
||||
cfl.set(index, id);
|
||||
}
|
||||
|
||||
fl.getName().addAll(cfl);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,395 +0,0 @@
|
||||
package org.talend.netsuite;
|
||||
|
||||
import com.netsuite.webservices.activities.scheduling.CalendarEventSearch;
|
||||
import com.netsuite.webservices.activities.scheduling.CalendarEventSearchAdvanced;
|
||||
import com.netsuite.webservices.activities.scheduling.PhoneCallSearch;
|
||||
import com.netsuite.webservices.activities.scheduling.PhoneCallSearchAdvanced;
|
||||
import com.netsuite.webservices.activities.scheduling.ProjectTaskSearch;
|
||||
import com.netsuite.webservices.activities.scheduling.ProjectTaskSearchAdvanced;
|
||||
import com.netsuite.webservices.activities.scheduling.ResourceAllocationSearch;
|
||||
import com.netsuite.webservices.activities.scheduling.ResourceAllocationSearchAdvanced;
|
||||
import com.netsuite.webservices.activities.scheduling.TaskSearch;
|
||||
import com.netsuite.webservices.activities.scheduling.TaskSearchAdvanced;
|
||||
import com.netsuite.webservices.documents.filecabinet.FileSearch;
|
||||
import com.netsuite.webservices.documents.filecabinet.FileSearchAdvanced;
|
||||
import com.netsuite.webservices.documents.filecabinet.FolderSearch;
|
||||
import com.netsuite.webservices.documents.filecabinet.FolderSearchAdvanced;
|
||||
import com.netsuite.webservices.general.communication.MessageSearch;
|
||||
import com.netsuite.webservices.general.communication.MessageSearchAdvanced;
|
||||
import com.netsuite.webservices.general.communication.NoteSearch;
|
||||
import com.netsuite.webservices.general.communication.NoteSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.AccountSearch;
|
||||
import com.netsuite.webservices.lists.accounting.AccountSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.AccountingPeriodSearch;
|
||||
import com.netsuite.webservices.lists.accounting.AccountingPeriodSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.BillingScheduleSearch;
|
||||
import com.netsuite.webservices.lists.accounting.BillingScheduleSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.BinSearch;
|
||||
import com.netsuite.webservices.lists.accounting.BinSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.ClassificationSearch;
|
||||
import com.netsuite.webservices.lists.accounting.ClassificationSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.ContactCategorySearch;
|
||||
import com.netsuite.webservices.lists.accounting.ContactCategorySearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.ContactRoleSearch;
|
||||
import com.netsuite.webservices.lists.accounting.ContactRoleSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.CurrencyRateSearch;
|
||||
import com.netsuite.webservices.lists.accounting.CurrencyRateSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.CustomerCategorySearch;
|
||||
import com.netsuite.webservices.lists.accounting.CustomerCategorySearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.CustomerMessageSearch;
|
||||
import com.netsuite.webservices.lists.accounting.CustomerMessageSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.DepartmentSearch;
|
||||
import com.netsuite.webservices.lists.accounting.DepartmentSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.ExpenseCategorySearch;
|
||||
import com.netsuite.webservices.lists.accounting.ExpenseCategorySearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.GiftCertificateSearch;
|
||||
import com.netsuite.webservices.lists.accounting.GiftCertificateSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.GlobalAccountMappingSearch;
|
||||
import com.netsuite.webservices.lists.accounting.GlobalAccountMappingSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.InventoryNumberSearch;
|
||||
import com.netsuite.webservices.lists.accounting.InventoryNumberSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.ItemAccountMappingSearch;
|
||||
import com.netsuite.webservices.lists.accounting.ItemAccountMappingSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.ItemRevisionSearch;
|
||||
import com.netsuite.webservices.lists.accounting.ItemRevisionSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.LocationSearch;
|
||||
import com.netsuite.webservices.lists.accounting.LocationSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.NexusSearch;
|
||||
import com.netsuite.webservices.lists.accounting.NexusSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.NoteTypeSearch;
|
||||
import com.netsuite.webservices.lists.accounting.NoteTypeSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.OtherNameCategorySearch;
|
||||
import com.netsuite.webservices.lists.accounting.OtherNameCategorySearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.PartnerCategorySearch;
|
||||
import com.netsuite.webservices.lists.accounting.PartnerCategorySearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.PaymentMethodSearch;
|
||||
import com.netsuite.webservices.lists.accounting.PaymentMethodSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.PriceLevelSearch;
|
||||
import com.netsuite.webservices.lists.accounting.PriceLevelSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.PricingGroupSearch;
|
||||
import com.netsuite.webservices.lists.accounting.PricingGroupSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.RevRecScheduleSearch;
|
||||
import com.netsuite.webservices.lists.accounting.RevRecScheduleSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.RevRecTemplateSearch;
|
||||
import com.netsuite.webservices.lists.accounting.RevRecTemplateSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.SalesRoleSearch;
|
||||
import com.netsuite.webservices.lists.accounting.SalesRoleSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.SubsidiarySearch;
|
||||
import com.netsuite.webservices.lists.accounting.SubsidiarySearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.TermSearch;
|
||||
import com.netsuite.webservices.lists.accounting.TermSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.UnitsTypeSearch;
|
||||
import com.netsuite.webservices.lists.accounting.UnitsTypeSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.VendorCategorySearch;
|
||||
import com.netsuite.webservices.lists.accounting.VendorCategorySearchAdvanced;
|
||||
import com.netsuite.webservices.lists.accounting.WinLossReasonSearch;
|
||||
import com.netsuite.webservices.lists.accounting.WinLossReasonSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.employees.EmployeeSearch;
|
||||
import com.netsuite.webservices.lists.employees.EmployeeSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.employees.PayrollItemSearch;
|
||||
import com.netsuite.webservices.lists.employees.PayrollItemSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.marketing.CampaignSearch;
|
||||
import com.netsuite.webservices.lists.marketing.CampaignSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.marketing.CouponCodeSearch;
|
||||
import com.netsuite.webservices.lists.marketing.CouponCodeSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.marketing.PromotionCodeSearch;
|
||||
import com.netsuite.webservices.lists.marketing.PromotionCodeSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.relationships.ContactSearch;
|
||||
import com.netsuite.webservices.lists.relationships.ContactSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.relationships.CustomerSearch;
|
||||
import com.netsuite.webservices.lists.relationships.CustomerSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.relationships.CustomerStatusSearch;
|
||||
import com.netsuite.webservices.lists.relationships.CustomerStatusSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.relationships.EntityGroupSearch;
|
||||
import com.netsuite.webservices.lists.relationships.EntityGroupSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.relationships.JobSearch;
|
||||
import com.netsuite.webservices.lists.relationships.JobSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.relationships.JobStatusSearch;
|
||||
import com.netsuite.webservices.lists.relationships.JobStatusSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.relationships.JobTypeSearch;
|
||||
import com.netsuite.webservices.lists.relationships.JobTypeSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.relationships.PartnerSearch;
|
||||
import com.netsuite.webservices.lists.relationships.PartnerSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.relationships.VendorSearch;
|
||||
import com.netsuite.webservices.lists.relationships.VendorSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.supplychain.ManufacturingCostTemplateSearch;
|
||||
import com.netsuite.webservices.lists.supplychain.ManufacturingCostTemplateSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.supplychain.ManufacturingOperationTaskSearch;
|
||||
import com.netsuite.webservices.lists.supplychain.ManufacturingOperationTaskSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.supplychain.ManufacturingRoutingSearch;
|
||||
import com.netsuite.webservices.lists.supplychain.ManufacturingRoutingSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.support.IssueSearch;
|
||||
import com.netsuite.webservices.lists.support.IssueSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.support.SolutionSearch;
|
||||
import com.netsuite.webservices.lists.support.SolutionSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.support.SupportCaseSearch;
|
||||
import com.netsuite.webservices.lists.support.SupportCaseSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.support.TopicSearch;
|
||||
import com.netsuite.webservices.lists.support.TopicSearchAdvanced;
|
||||
import com.netsuite.webservices.lists.website.SiteCategorySearch;
|
||||
import com.netsuite.webservices.lists.website.SiteCategorySearchAdvanced;
|
||||
import com.netsuite.webservices.platform.common.AccountSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.AccountingPeriodSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.AppDefinitionSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.AppPackageSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.BillingScheduleSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.BinSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.BudgetSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.CalendarEventSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.CampaignSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ChargeSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ClassificationSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ContactCategorySearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ContactRoleSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ContactSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.CouponCodeSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.CurrencyRateSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.CustomListSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.CustomRecordSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.CustomerCategorySearchBasic;
|
||||
import com.netsuite.webservices.platform.common.CustomerMessageSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.CustomerSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.CustomerStatusSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.DepartmentSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.EmployeeSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.EntityGroupSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ExpenseCategorySearchBasic;
|
||||
import com.netsuite.webservices.platform.common.FileSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.FolderSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.GiftCertificateSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.GlobalAccountMappingSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.InventoryNumberSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.IssueSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ItemAccountMappingSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ItemDemandPlanSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ItemRevisionSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ItemSupplyPlanSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.JobSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.JobStatusSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.JobTypeSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.LocationSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ManufacturingCostTemplateSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ManufacturingOperationTaskSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ManufacturingRoutingSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.MessageSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.NexusSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.NoteSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.NoteTypeSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.OtherNameCategorySearchBasic;
|
||||
import com.netsuite.webservices.platform.common.PartnerCategorySearchBasic;
|
||||
import com.netsuite.webservices.platform.common.PartnerSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.PaymentMethodSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.PayrollItemSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.PhoneCallSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.PriceLevelSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.PricingGroupSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ProjectTaskSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.PromotionCodeSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.ResourceAllocationSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.RevRecScheduleSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.RevRecTemplateSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.SalesRoleSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.SiteCategorySearchBasic;
|
||||
import com.netsuite.webservices.platform.common.SolutionSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.SubsidiarySearchBasic;
|
||||
import com.netsuite.webservices.platform.common.SupportCaseSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.TaskSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.TermSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.TimeBillSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.TimeEntrySearchBasic;
|
||||
import com.netsuite.webservices.platform.common.TimeSheetSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.TopicSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.TransactionSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.UnitsTypeSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.VendorCategorySearchBasic;
|
||||
import com.netsuite.webservices.platform.common.VendorSearchBasic;
|
||||
import com.netsuite.webservices.platform.common.WinLossReasonSearchBasic;
|
||||
import com.netsuite.webservices.setup.customization.AppDefinitionSearch;
|
||||
import com.netsuite.webservices.setup.customization.AppDefinitionSearchAdvanced;
|
||||
import com.netsuite.webservices.setup.customization.AppPackageSearch;
|
||||
import com.netsuite.webservices.setup.customization.AppPackageSearchAdvanced;
|
||||
import com.netsuite.webservices.setup.customization.CustomListSearch;
|
||||
import com.netsuite.webservices.setup.customization.CustomListSearchAdvanced;
|
||||
import com.netsuite.webservices.setup.customization.CustomRecordSearch;
|
||||
import com.netsuite.webservices.setup.customization.CustomRecordSearchAdvanced;
|
||||
import com.netsuite.webservices.transactions.customers.ChargeSearch;
|
||||
import com.netsuite.webservices.transactions.customers.ChargeSearchAdvanced;
|
||||
import com.netsuite.webservices.transactions.demandplanning.ItemDemandPlanSearch;
|
||||
import com.netsuite.webservices.transactions.demandplanning.ItemDemandPlanSearchAdvanced;
|
||||
import com.netsuite.webservices.transactions.demandplanning.ItemSupplyPlanSearch;
|
||||
import com.netsuite.webservices.transactions.demandplanning.ItemSupplyPlanSearchAdvanced;
|
||||
import com.netsuite.webservices.transactions.employees.TimeBillSearch;
|
||||
import com.netsuite.webservices.transactions.employees.TimeBillSearchAdvanced;
|
||||
import com.netsuite.webservices.transactions.employees.TimeEntrySearch;
|
||||
import com.netsuite.webservices.transactions.employees.TimeEntrySearchAdvanced;
|
||||
import com.netsuite.webservices.transactions.employees.TimeSheetSearch;
|
||||
import com.netsuite.webservices.transactions.employees.TimeSheetSearchAdvanced;
|
||||
import com.netsuite.webservices.transactions.financial.BudgetSearch;
|
||||
import com.netsuite.webservices.transactions.financial.BudgetSearchAdvanced;
|
||||
|
||||
public class TalendComponentGenerator {
|
||||
|
||||
private static Class<?> findClass(Class<?>[][] classlist, String classname, int key) {
|
||||
for (int i = 0; i < classlist.length; i++) {
|
||||
if (classlist[i][0].getName().equals(classname)) {
|
||||
return classlist[i][key];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Class<?> findSearchBasicClass(String classname) {
|
||||
for (int i = 0; i < netSuiteClasses.length; i++) {
|
||||
if (netSuiteClasses[i][2].getSimpleName().equals(classname)) {
|
||||
return netSuiteClasses[i][2];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Class<?> getEntityClass(String classname) {
|
||||
return findClass(netSuiteClasses, classname, 0);
|
||||
}
|
||||
|
||||
public static Class<?> getSearchClass(String classname) {
|
||||
return findClass(netSuiteClasses, classname, 1);
|
||||
}
|
||||
|
||||
public static Class<?> getSearchBasicClass(String classname) {
|
||||
return findClass(netSuiteClasses, classname, 2);
|
||||
}
|
||||
|
||||
public static Class<?> getSearchAdvancedClass(String classname) {
|
||||
return findClass(netSuiteClasses, classname, 3);
|
||||
}
|
||||
|
||||
public static String toInitialUpper(String value) {
|
||||
return value.substring(0, 1).toUpperCase() + value.substring(1);
|
||||
}
|
||||
|
||||
public static String toInitialLower(String value) {
|
||||
return value.substring(0, 1).toLowerCase() + value.substring(1);
|
||||
}
|
||||
|
||||
public static String toNetSuiteType(String value) {
|
||||
return "_" + toInitialLower(value);
|
||||
}
|
||||
|
||||
public static String[] transactionTypeList = { "AssemblyBuild", "AssemblyUnbuild", "BinTransfer", "BinWorksheet", "CashRefund", "CashSale", "Check", "CreditMemo", "CustomerDeposit", "CustomerPayment", "CustomerRefund", "Deposit", "DepositApplication", "Estimate", "ExpenseReport", "InterCompanyJournalEntry", "InventoryAdjustment", "InventoryCostRevaluation", "InventoryTransfer", "Invoice", "ItemFulfillment", "ItemReceipt", "JournalEntry", "Opportunity", "PaycheckJournal", "PurchaseOrder", "ReturnAuthorization", "SalesOrder", "State", "TransferOrder", "VendorBill", "VendorCredit", "VendorPayment", "VendorReturnAuthorization", "WorkOrder", "WorkOrderClose", "WorkOrderCompletion", "WorkOrderIssue" };
|
||||
public static String[] itemTypeList = { "Address", "AssemblyItem", "BudgetCategory", "CampaignAudience", "CampaignCategory", "CampaignChannel", "CampaignFamily", "CampaignOffer", "CampaignResponse", "CampaignSearchEngine", "CampaignSubscription", "CampaignVertical", "CostCategory", "CrmCustomField", "Currency", "CustomFieldType", "CustomRecordCustomField", "CustomRecordType", "DescriptionItem", "DiscountItem", "DownloadItem", "EntityCustomField", "GiftCertificateItem", "InterCompanyTransferOrder", "InventoryItem", "ItemCustomField", "ItemGroup", "ItemNumberCustomField", "ItemOptionCustomField", "KitItem", "LandedCost", "LeadSource", "LotNumberedAssemblyItem", "LotNumberedInventoryItem", "MarkupItem", "NonInventoryPurchaseItem", "NonInventoryResaleItem", "NonInventorySaleItem", "OtherChargePurchaseItem", "OtherChargeResaleItem", "OtherChargeSaleItem", "OtherCustomField", "PaymentItem", "SalesTaxItem", "SerializedAssemblyItem", "SerializedInventoryItem", "ServicePurchaseItem", "ServiceResaleItem", "ServiceSaleItem", "SubtotalItem", "SupportCaseIssue", "SupportCaseOrigin", "SupportCasePriority", "SupportCaseStatus", "SupportCaseType", "TaxAcct", "TaxGroup", "TaxType", "TransactionBodyCustomField", "TransactionColumnCustomField" };
|
||||
|
||||
public static final Class<?>[][] netSuiteClasses = {{com.netsuite.webservices.lists.accounting.Account.class, AccountSearch.class, AccountSearchBasic.class, AccountSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.AccountingPeriod.class, AccountingPeriodSearch.class, AccountingPeriodSearchBasic.class, AccountingPeriodSearchAdvanced.class},
|
||||
{com.netsuite.webservices.setup.customization.AppDefinition.class, AppDefinitionSearch.class, AppDefinitionSearchBasic.class, AppDefinitionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.setup.customization.AppPackage.class, AppPackageSearch.class, AppPackageSearchBasic.class, AppPackageSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.BillingSchedule.class, BillingScheduleSearch.class, BillingScheduleSearchBasic.class, BillingScheduleSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.Bin.class, BinSearch.class, BinSearchBasic.class, BinSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.financial.Budget.class, BudgetSearch.class, BudgetSearchBasic.class, BudgetSearchAdvanced.class},
|
||||
{com.netsuite.webservices.activities.scheduling.CalendarEvent.class, CalendarEventSearch.class, CalendarEventSearchBasic.class, CalendarEventSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.marketing.Campaign.class, CampaignSearch.class, CampaignSearchBasic.class, CampaignSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.customers.Charge.class, ChargeSearch.class, ChargeSearchBasic.class, ChargeSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.Classification.class, ClassificationSearch.class, ClassificationSearchBasic.class, ClassificationSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.relationships.Contact.class, ContactSearch.class, ContactSearchBasic.class, ContactSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.ContactCategory.class, ContactCategorySearch.class, ContactCategorySearchBasic.class, ContactCategorySearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.ContactRole.class, ContactRoleSearch.class, ContactRoleSearchBasic.class, ContactRoleSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.marketing.CouponCode.class, CouponCodeSearch.class, CouponCodeSearchBasic.class, CouponCodeSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.CurrencyRate.class, CurrencyRateSearch.class, CurrencyRateSearchBasic.class, CurrencyRateSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.relationships.Customer.class, CustomerSearch.class, CustomerSearchBasic.class, CustomerSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.CustomerCategory.class, CustomerCategorySearch.class, CustomerCategorySearchBasic.class, CustomerCategorySearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.CustomerMessage.class, CustomerMessageSearch.class, CustomerMessageSearchBasic.class, CustomerMessageSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.relationships.CustomerStatus.class, CustomerStatusSearch.class, CustomerStatusSearchBasic.class, CustomerStatusSearchAdvanced.class},
|
||||
{com.netsuite.webservices.setup.customization.CustomList.class, CustomListSearch.class, CustomListSearchBasic.class, CustomListSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.Department.class, DepartmentSearch.class, DepartmentSearchBasic.class, DepartmentSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.employees.Employee.class, EmployeeSearch.class, EmployeeSearchBasic.class, EmployeeSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.relationships.EntityGroup.class, EntityGroupSearch.class, EntityGroupSearchBasic.class, EntityGroupSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.ExpenseCategory.class, ExpenseCategorySearch.class, ExpenseCategorySearchBasic.class, ExpenseCategorySearchAdvanced.class},
|
||||
{com.netsuite.webservices.documents.filecabinet.File.class, FileSearch.class, FileSearchBasic.class, FileSearchAdvanced.class},
|
||||
{com.netsuite.webservices.documents.filecabinet.Folder.class, FolderSearch.class, FolderSearchBasic.class, FolderSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.GiftCertificate.class, GiftCertificateSearch.class, GiftCertificateSearchBasic.class, GiftCertificateSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.GlobalAccountMapping.class, GlobalAccountMappingSearch.class, GlobalAccountMappingSearchBasic.class, GlobalAccountMappingSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.InventoryNumber.class, InventoryNumberSearch.class, InventoryNumberSearchBasic.class, InventoryNumberSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.support.Issue.class, IssueSearch.class, IssueSearchBasic.class, IssueSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.ItemAccountMapping.class, ItemAccountMappingSearch.class, ItemAccountMappingSearchBasic.class, ItemAccountMappingSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.demandplanning.ItemDemandPlan.class, ItemDemandPlanSearch.class, ItemDemandPlanSearchBasic.class, ItemDemandPlanSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.ItemRevision.class, ItemRevisionSearch.class, ItemRevisionSearchBasic.class, ItemRevisionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.demandplanning.ItemSupplyPlan.class, ItemSupplyPlanSearch.class, ItemSupplyPlanSearchBasic.class, ItemSupplyPlanSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.relationships.Job.class, JobSearch.class, JobSearchBasic.class, JobSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.relationships.JobStatus.class, JobStatusSearch.class, JobStatusSearchBasic.class, JobStatusSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.relationships.JobType.class, JobTypeSearch.class, JobTypeSearchBasic.class, JobTypeSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.Location.class, LocationSearch.class, LocationSearchBasic.class, LocationSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.supplychain.ManufacturingCostTemplate.class, ManufacturingCostTemplateSearch.class, ManufacturingCostTemplateSearchBasic.class, ManufacturingCostTemplateSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.supplychain.ManufacturingOperationTask.class, ManufacturingOperationTaskSearch.class, ManufacturingOperationTaskSearchBasic.class, ManufacturingOperationTaskSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.supplychain.ManufacturingRouting.class, ManufacturingRoutingSearch.class, ManufacturingRoutingSearchBasic.class, ManufacturingRoutingSearchAdvanced.class},
|
||||
{com.netsuite.webservices.general.communication.Message.class, MessageSearch.class, MessageSearchBasic.class, MessageSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.Nexus.class, NexusSearch.class, NexusSearchBasic.class, NexusSearchAdvanced.class},
|
||||
{com.netsuite.webservices.general.communication.Note.class, NoteSearch.class, NoteSearchBasic.class, NoteSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.NoteType.class, NoteTypeSearch.class, NoteTypeSearchBasic.class, NoteTypeSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.OtherNameCategory.class, OtherNameCategorySearch.class, OtherNameCategorySearchBasic.class, OtherNameCategorySearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.relationships.Partner.class, PartnerSearch.class, PartnerSearchBasic.class, PartnerSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.PartnerCategory.class, PartnerCategorySearch.class, PartnerCategorySearchBasic.class, PartnerCategorySearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.PaymentMethod.class, PaymentMethodSearch.class, PaymentMethodSearchBasic.class, PaymentMethodSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.employees.PayrollItem.class, PayrollItemSearch.class, PayrollItemSearchBasic.class, PayrollItemSearchAdvanced.class},
|
||||
{com.netsuite.webservices.activities.scheduling.PhoneCall.class, PhoneCallSearch.class, PhoneCallSearchBasic.class, PhoneCallSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.PriceLevel.class, PriceLevelSearch.class, PriceLevelSearchBasic.class, PriceLevelSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.PricingGroup.class, PricingGroupSearch.class, PricingGroupSearchBasic.class, PricingGroupSearchAdvanced.class},
|
||||
{com.netsuite.webservices.activities.scheduling.ProjectTask.class, ProjectTaskSearch.class, ProjectTaskSearchBasic.class, ProjectTaskSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.marketing.PromotionCode.class, PromotionCodeSearch.class, PromotionCodeSearchBasic.class, PromotionCodeSearchAdvanced.class},
|
||||
{com.netsuite.webservices.activities.scheduling.ResourceAllocation.class, ResourceAllocationSearch.class, ResourceAllocationSearchBasic.class, ResourceAllocationSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.RevRecSchedule.class, RevRecScheduleSearch.class, RevRecScheduleSearchBasic.class, RevRecScheduleSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.RevRecTemplate.class, RevRecTemplateSearch.class, RevRecTemplateSearchBasic.class, RevRecTemplateSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.SalesRole.class, SalesRoleSearch.class, SalesRoleSearchBasic.class, SalesRoleSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.website.SiteCategory.class, SiteCategorySearch.class, SiteCategorySearchBasic.class, SiteCategorySearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.support.Solution.class, SolutionSearch.class, SolutionSearchBasic.class, SolutionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.Subsidiary.class, SubsidiarySearch.class, SubsidiarySearchBasic.class, SubsidiarySearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.support.SupportCase.class, SupportCaseSearch.class, SupportCaseSearchBasic.class, SupportCaseSearchAdvanced.class},
|
||||
{com.netsuite.webservices.activities.scheduling.Task.class, TaskSearch.class, TaskSearchBasic.class, TaskSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.Term.class, TermSearch.class, TermSearchBasic.class, TermSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.employees.TimeBill.class, TimeBillSearch.class, TimeBillSearchBasic.class, TimeBillSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.employees.TimeEntry.class, TimeEntrySearch.class, TimeEntrySearchBasic.class, TimeEntrySearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.employees.TimeSheet.class, TimeSheetSearch.class, TimeSheetSearchBasic.class, TimeSheetSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.support.Topic.class, TopicSearch.class, TopicSearchBasic.class, TopicSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.UnitsType.class, UnitsTypeSearch.class, UnitsTypeSearchBasic.class, UnitsTypeSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.relationships.Vendor.class, VendorSearch.class, VendorSearchBasic.class, VendorSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.VendorCategory.class, VendorCategorySearch.class, VendorCategorySearchBasic.class, VendorCategorySearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.WinLossReason.class, WinLossReasonSearch.class, WinLossReasonSearchBasic.class, WinLossReasonSearchAdvanced.class},
|
||||
|
||||
{com.netsuite.webservices.transactions.inventory.AssemblyBuild.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.inventory.AssemblyUnbuild.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.inventory.BinTransfer.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.inventory.BinWorksheet.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.customers.CashRefund.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.sales.CashSale.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.bank.Check.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.customers.CreditMemo.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.customers.CustomerDeposit.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.customers.CustomerPayment.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.customers.CustomerRefund.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.bank.Deposit.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.customers.DepositApplication.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.sales.Estimate.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.employees.ExpenseReport.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.general.InterCompanyJournalEntry.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.inventory.InventoryAdjustment.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.inventory.InventoryCostRevaluation.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.inventory.InventoryTransfer.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.sales.Invoice.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.sales.ItemFulfillment.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.purchases.ItemReceipt.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.general.JournalEntry.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.sales.Opportunity.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.employees.PaycheckJournal.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.purchases.PurchaseOrder.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.customers.ReturnAuthorization.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.sales.SalesOrder.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.lists.accounting.State.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.inventory.TransferOrder.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.purchases.VendorBill.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.purchases.VendorCredit.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.purchases.VendorPayment.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.purchases.VendorReturnAuthorization.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.inventory.WorkOrder.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.inventory.WorkOrderClose.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.inventory.WorkOrderCompletion.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class},
|
||||
{com.netsuite.webservices.transactions.inventory.WorkOrderIssue.class, com.netsuite.webservices.transactions.sales.TransactionSearch.class, TransactionSearchBasic.class, com.netsuite.webservices.transactions.sales.TransactionSearchAdvanced.class}
|
||||
};
|
||||
}
|
||||
@@ -1,592 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:actSched="urn:scheduling_2014_2.activities.webservices.netsuite.com" xmlns:actSchedTyp="urn:types.scheduling_2014_2.activities.webservices.netsuite.com" xmlns:platformCore="urn:core_2014_2.platform.webservices.netsuite.com" xmlns:platformCoreTyp="urn:types.core_2014_2.platform.webservices.netsuite.com" xmlns:platformCommon="urn:common_2014_2.platform.webservices.netsuite.com" xmlns:platformCommonTyp="urn:types.common_2014_2.platform.webservices.netsuite.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:scheduling_2014_2.activities.webservices.netsuite.com" elementFormDefault="qualified">
|
||||
<import namespace="urn:core_2014_2.platform.webservices.netsuite.com" schemaLocation="../platform/core.xsd"/>
|
||||
<import namespace="urn:types.core_2014_2.platform.webservices.netsuite.com" schemaLocation="../platform/coreTypes.xsd"/>
|
||||
<import namespace="urn:common_2014_2.platform.webservices.netsuite.com" schemaLocation="../platform/common.xsd"/>
|
||||
<import namespace="urn:types.common_2014_2.platform.webservices.netsuite.com" schemaLocation="../platform/commonTypes.xsd"/>
|
||||
<import namespace="urn:types.scheduling_2014_2.activities.webservices.netsuite.com" schemaLocation="schedulingTypes.xsd"/>
|
||||
<!-- calendarEvent/start -->
|
||||
<element name="CalendarEvent" type="actSched:CalendarEvent"/>
|
||||
<complexType name="CalendarEvent">
|
||||
<complexContent>
|
||||
<extension base="platformCore:Record">
|
||||
<sequence>
|
||||
<element name="company" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="contact" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="supportCase" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="transaction" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="period" type="xsd:long" minOccurs="0"/>
|
||||
<element name="frequency" type="platformCommonTyp:RecurrenceFrequency" minOccurs="0"/>
|
||||
<element name="recurrenceDowMaskList" type="platformCommon:RecurrenceDowMaskList" minOccurs="0"/>
|
||||
<element name="recurrenceDow" type="platformCommonTyp:RecurrenceDow" minOccurs="0"/>
|
||||
<element name="recurrenceDowim" type="platformCommonTyp:RecurrenceDowim" minOccurs="0"/>
|
||||
<element name="seriesStartDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="endByDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="noEndDate" type="xsd:boolean" minOccurs="0"/>
|
||||
<element name="sendEmail" type="xsd:boolean" minOccurs="0"/>
|
||||
<element name="customForm" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="title" type="xsd:string" minOccurs="0"/>
|
||||
<element name="recurrence" type="xsd:string" minOccurs="0"/>
|
||||
<element name="location" type="xsd:string" minOccurs="0"/>
|
||||
<element name="startDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="allDayEvent" type="xsd:boolean" minOccurs="0"/>
|
||||
<element name="timedEvent" type="xsd:boolean" minOccurs="0"/>
|
||||
<element name="reminderType" type="actSchedTyp:CalendarEventReminderType" minOccurs="0"/>
|
||||
<element name="reminderMinutes" type="actSchedTyp:CalendarEventReminderMinutes" minOccurs="0"/>
|
||||
<element name="status" type="actSchedTyp:CalendarEventStatus" minOccurs="0"/>
|
||||
<element name="accessLevel" type="actSchedTyp:CalendarEventAccessLevel" minOccurs="0"/>
|
||||
<element name="organizer" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="message" type="xsd:string" minOccurs="0"/>
|
||||
<element name="createdDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="endDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="exclusionDateList" type="actSched:ExclusionDateList" minOccurs="0"/>
|
||||
<element name="lastModifiedDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="owner" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="attendeeList" type="actSched:CalendarEventAttendeeList" minOccurs="0"/>
|
||||
<element name="resourceList" type="actSched:CalendarEventResourceList" minOccurs="0"/>
|
||||
<element name="timeItemList" type="actSched:CalendarEventTimeItemList" minOccurs="0"/>
|
||||
<element name="customFieldList" type="platformCore:CustomFieldList" minOccurs="0"/>
|
||||
</sequence>
|
||||
<!-- primary record internalId -->
|
||||
<attribute name="internalId" type="xsd:string"/>
|
||||
<attribute name="externalId" type="xsd:string"/>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ExclusionDateList">
|
||||
<sequence>
|
||||
<element name="exclusionDate" type="xsd:dateTime" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="CalendarEventAttendee">
|
||||
<sequence>
|
||||
<element name="sendEmail" type="xsd:boolean" minOccurs="0"/>
|
||||
<element name="attendee" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="response" type="platformCoreTyp:CalendarEventAttendeeResponse" minOccurs="0"/>
|
||||
<element name="attendance" type="actSchedTyp:CalendarEventAttendeeAttendance" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="CalendarEventAttendeeList">
|
||||
<sequence>
|
||||
<element name="attendee" type="actSched:CalendarEventAttendee" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="replaceAll" type="xsd:boolean" default="true"/>
|
||||
</complexType>
|
||||
<complexType name="CalendarEventResource">
|
||||
<sequence>
|
||||
<element name="resource" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="location" type="xsd:string" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="CalendarEventResourceList">
|
||||
<sequence>
|
||||
<element name="resource" type="actSched:CalendarEventResource" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="replaceAll" type="xsd:boolean" default="true"/>
|
||||
</complexType>
|
||||
<element name="calendarEventSearch" type="actSched:CalendarEventSearch"/>
|
||||
<complexType name="CalendarEventSearch">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRecord">
|
||||
<sequence>
|
||||
<element name="basic" type="platformCommon:CalendarEventSearchBasic" minOccurs="0"/>
|
||||
<element name="attendeeJoin" type="platformCommon:EntitySearchBasic" minOccurs="0"/>
|
||||
<element name="attendeeContactJoin" type="platformCommon:ContactSearchBasic" minOccurs="0"/>
|
||||
<element name="attendeeCustomerJoin" type="platformCommon:CustomerSearchBasic" minOccurs="0"/>
|
||||
<element name="caseJoin" type="platformCommon:SupportCaseSearchBasic" minOccurs="0"/>
|
||||
<element name="fileJoin" type="platformCommon:FileSearchBasic" minOccurs="0"/>
|
||||
<element name="opportunityJoin" type="platformCommon:OpportunitySearchBasic" minOccurs="0"/>
|
||||
<element name="originatingLeadJoin" type="platformCommon:OriginatingLeadSearchBasic" minOccurs="0"/>
|
||||
<element name="timeJoin" type="platformCommon:TimeBillSearchBasic" minOccurs="0"/>
|
||||
<element name="transactionJoin" type="platformCommon:TransactionSearchBasic" minOccurs="0"/>
|
||||
<element name="userJoin" type="platformCommon:EmployeeSearchBasic" minOccurs="0"/>
|
||||
<element name="userNotesJoin" type="platformCommon:NoteSearchBasic" minOccurs="0"/>
|
||||
<element name="customSearchJoin" type="platformCommon:CustomSearchJoin" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="CalendarEventSearchAdvanced">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRecord">
|
||||
<sequence>
|
||||
<element name="criteria" type="actSched:CalendarEventSearch" minOccurs="0"/>
|
||||
<element name="columns" type="actSched:CalendarEventSearchRow" minOccurs="0"/>
|
||||
</sequence>
|
||||
<attribute name="savedSearchId" type="xsd:string"/>
|
||||
<attribute name="savedSearchScriptId" type="xsd:string"/>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="CalendarEventSearchRow">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRow">
|
||||
<sequence>
|
||||
<element name="basic" type="platformCommon:CalendarEventSearchRowBasic" minOccurs="0"/>
|
||||
<element name="attendeeJoin" type="platformCommon:EntitySearchRowBasic" minOccurs="0"/>
|
||||
<element name="attendeeContactJoin" type="platformCommon:ContactSearchRowBasic" minOccurs="0"/>
|
||||
<element name="attendeeCustomerJoin" type="platformCommon:CustomerSearchRowBasic" minOccurs="0"/>
|
||||
<element name="caseJoin" type="platformCommon:SupportCaseSearchRowBasic" minOccurs="0"/>
|
||||
<element name="fileJoin" type="platformCommon:FileSearchRowBasic" minOccurs="0"/>
|
||||
<element name="opportunityJoin" type="platformCommon:OpportunitySearchRowBasic" minOccurs="0"/>
|
||||
<element name="originatingLeadJoin" type="platformCommon:OriginatingLeadSearchRowBasic" minOccurs="0"/>
|
||||
<element name="timeJoin" type="platformCommon:TimeBillSearchRowBasic" minOccurs="0"/>
|
||||
<element name="transactionJoin" type="platformCommon:TransactionSearchRowBasic" minOccurs="0"/>
|
||||
<element name="userJoin" type="platformCommon:EmployeeSearchRowBasic" minOccurs="0"/>
|
||||
<element name="userNotesJoin" type="platformCommon:NoteSearchRowBasic" minOccurs="0"/>
|
||||
<element name="customSearchJoin" type="platformCommon:CustomSearchRowBasic" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<!-- calendarEvent/end -->
|
||||
<!-- task/start -->
|
||||
<element name="Task" type="actSched:Task"/>
|
||||
<complexType name="Task">
|
||||
<complexContent>
|
||||
<extension base="platformCore:Record">
|
||||
<sequence>
|
||||
<element name="company" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="contact" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="supportCase" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="transaction" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="milestone" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="customForm" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="title" type="xsd:string" minOccurs="0"/>
|
||||
<element name="assigned" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="sendEmail" type="xsd:boolean" minOccurs="0"/>
|
||||
<element name="timedEvent" type="xsd:boolean" minOccurs="0"/>
|
||||
<element name="estimatedTime" type="platformCore:Duration" minOccurs="0"/>
|
||||
<element name="estimatedTimeOverride" type="platformCore:Duration" minOccurs="0"/>
|
||||
<element name="actualTime" type="platformCore:Duration" minOccurs="0"/>
|
||||
<element name="timeRemaining" type="platformCore:Duration" minOccurs="0"/>
|
||||
<element name="percentTimeComplete" type="xsd:double" minOccurs="0"/>
|
||||
<element name="percentComplete" type="xsd:double" minOccurs="0"/>
|
||||
<element name="parent" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="startDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="endDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="dueDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="completedDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="priority" type="actSchedTyp:TaskPriority" minOccurs="0"/>
|
||||
<element name="status" type="actSchedTyp:TaskStatus" minOccurs="0"/>
|
||||
<element name="message" type="xsd:string" minOccurs="0"/>
|
||||
<element name="accessLevel" type="xsd:boolean" minOccurs="0"/>
|
||||
<element name="reminderType" type="actSchedTyp:TaskReminderType" minOccurs="0"/>
|
||||
<element name="reminderMinutes" type="actSchedTyp:TaskReminderMinutes" minOccurs="0"/>
|
||||
<element name="createdDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="lastModifiedDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="owner" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="contactList" type="actSched:TaskContactList" minOccurs="0"/>
|
||||
<element name="timeItemList" type="actSched:TaskTimeItemList" minOccurs="0"/>
|
||||
<element name="customFieldList" type="platformCore:CustomFieldList" minOccurs="0"/>
|
||||
</sequence>
|
||||
<!-- primary record internalId -->
|
||||
<attribute name="internalId" type="xsd:string"/>
|
||||
<attribute name="externalId" type="xsd:string"/>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="TaskContact">
|
||||
<sequence>
|
||||
<element name="company" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="contact" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="TaskContactList">
|
||||
<sequence>
|
||||
<element name="contact" type="actSched:TaskContact" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="replaceAll" type="xsd:boolean" default="true"/>
|
||||
</complexType>
|
||||
<element name="taskSearch" type="actSched:TaskSearch"/>
|
||||
<complexType name="TaskSearch">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRecord">
|
||||
<sequence>
|
||||
<element name="basic" type="platformCommon:TaskSearchBasic" minOccurs="0"/>
|
||||
<element name="caseJoin" type="platformCommon:SupportCaseSearchBasic" minOccurs="0"/>
|
||||
<element name="companyCustomerJoin" type="platformCommon:CustomerSearchBasic" minOccurs="0"/>
|
||||
<element name="contactJoin" type="platformCommon:ContactSearchBasic" minOccurs="0"/>
|
||||
<element name="employeeJoin" type="platformCommon:EmployeeSearchBasic" minOccurs="0"/>
|
||||
<element name="fileJoin" type="platformCommon:FileSearchBasic" minOccurs="0"/>
|
||||
<element name="jobJoin" type="platformCommon:JobSearchBasic" minOccurs="0"/>
|
||||
<element name="opportunityJoin" type="platformCommon:OpportunitySearchBasic" minOccurs="0"/>
|
||||
<element name="originatingLeadJoin" type="platformCommon:OriginatingLeadSearchBasic" minOccurs="0"/>
|
||||
<element name="timeJoin" type="platformCommon:TimeBillSearchBasic" minOccurs="0"/>
|
||||
<element name="transactionJoin" type="platformCommon:TransactionSearchBasic" minOccurs="0"/>
|
||||
<element name="userJoin" type="platformCommon:EmployeeSearchBasic" minOccurs="0"/>
|
||||
<element name="userNotesJoin" type="platformCommon:NoteSearchBasic" minOccurs="0"/>
|
||||
<element name="customSearchJoin" type="platformCommon:CustomSearchJoin" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="TaskSearchAdvanced">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRecord">
|
||||
<sequence>
|
||||
<element name="criteria" type="actSched:TaskSearch" minOccurs="0"/>
|
||||
<element name="columns" type="actSched:TaskSearchRow" minOccurs="0"/>
|
||||
</sequence>
|
||||
<attribute name="savedSearchId" type="xsd:string"/>
|
||||
<attribute name="savedSearchScriptId" type="xsd:string"/>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="TaskSearchRow">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRow">
|
||||
<sequence>
|
||||
<element name="basic" type="platformCommon:TaskSearchRowBasic" minOccurs="0"/>
|
||||
<element name="caseJoin" type="platformCommon:SupportCaseSearchRowBasic" minOccurs="0"/>
|
||||
<element name="companyCustomerJoin" type="platformCommon:CustomerSearchRowBasic" minOccurs="0"/>
|
||||
<element name="contactJoin" type="platformCommon:ContactSearchRowBasic" minOccurs="0"/>
|
||||
<element name="employeeJoin" type="platformCommon:EmployeeSearchRowBasic" minOccurs="0"/>
|
||||
<element name="fileJoin" type="platformCommon:FileSearchRowBasic" minOccurs="0"/>
|
||||
<element name="jobJoin" type="platformCommon:JobSearchRowBasic" minOccurs="0"/>
|
||||
<element name="opportunityJoin" type="platformCommon:OpportunitySearchRowBasic" minOccurs="0"/>
|
||||
<element name="originatingLeadJoin" type="platformCommon:OriginatingLeadSearchRowBasic" minOccurs="0"/>
|
||||
<element name="timeJoin" type="platformCommon:TimeBillSearchRowBasic" minOccurs="0"/>
|
||||
<element name="transactionJoin" type="platformCommon:TransactionSearchRowBasic" minOccurs="0"/>
|
||||
<element name="userJoin" type="platformCommon:EmployeeSearchRowBasic" minOccurs="0"/>
|
||||
<element name="userNotesJoin" type="platformCommon:NoteSearchRowBasic" minOccurs="0"/>
|
||||
<element name="customSearchJoin" type="platformCommon:CustomSearchRowBasic" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<!-- task/end -->
|
||||
<!-- phoneCall/start -->
|
||||
<element name="PhoneCall" type="actSched:PhoneCall"/>
|
||||
<complexType name="PhoneCall">
|
||||
<complexContent>
|
||||
<extension base="platformCore:Record">
|
||||
<sequence>
|
||||
<element name="message" type="xsd:string" minOccurs="0"/>
|
||||
<element name="company" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="contact" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="supportCase" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="transaction" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="milestone" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="customForm" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="title" type="xsd:string" minOccurs="0"/>
|
||||
<element name="owner" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="assigned" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="sendEmail" type="xsd:boolean" minOccurs="0"/>
|
||||
<element name="startDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="endDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="timedEvent" type="xsd:boolean" minOccurs="0"/>
|
||||
<element name="completedDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="phone" type="xsd:string" minOccurs="0"/>
|
||||
<element name="status" type="actSchedTyp:PhoneCallStatus" minOccurs="0"/>
|
||||
<element name="priority" type="actSchedTyp:PhoneCallPriority" minOccurs="0"/>
|
||||
<element name="accessLevel" type="xsd:boolean" minOccurs="0"/>
|
||||
<element name="reminderType" type="actSchedTyp:PhoneCallReminderType" minOccurs="0"/>
|
||||
<element name="reminderMinutes" type="actSchedTyp:PhoneCallReminderMinutes" minOccurs="0"/>
|
||||
<element name="createdDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="lastModifiedDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="contactList" type="actSched:PhoneCallContactList" minOccurs="0"/>
|
||||
<element name="timeItemList" type="actSched:PhoneCallTimeItemList" minOccurs="0"/>
|
||||
<element name="customFieldList" type="platformCore:CustomFieldList" minOccurs="0"/>
|
||||
</sequence>
|
||||
<!-- primary record internalId -->
|
||||
<attribute name="internalId" type="xsd:string"/>
|
||||
<attribute name="externalId" type="xsd:string"/>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="PhoneCallContact">
|
||||
<sequence>
|
||||
<element name="company" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="contact" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="phone" type="xsd:string" minOccurs="0"/>
|
||||
<element name="email" type="xsd:string" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PhoneCallContactList">
|
||||
<sequence>
|
||||
<element name="contact" type="actSched:PhoneCallContact" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="replaceAll" type="xsd:boolean" default="true"/>
|
||||
</complexType>
|
||||
<element name="phoneCallSearch" type="actSched:PhoneCallSearch"/>
|
||||
<complexType name="PhoneCallSearch">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRecord">
|
||||
<sequence>
|
||||
<element name="basic" type="platformCommon:PhoneCallSearchBasic" minOccurs="0"/>
|
||||
<element name="caseJoin" type="platformCommon:SupportCaseSearchBasic" minOccurs="0"/>
|
||||
<element name="companyCustomerJoin" type="platformCommon:CustomerSearchBasic" minOccurs="0"/>
|
||||
<element name="contactJoin" type="platformCommon:ContactSearchBasic" minOccurs="0"/>
|
||||
<element name="employeeJoin" type="platformCommon:EmployeeSearchBasic" minOccurs="0"/>
|
||||
<element name="fileJoin" type="platformCommon:FileSearchBasic" minOccurs="0"/>
|
||||
<element name="opportunityJoin" type="platformCommon:OpportunitySearchBasic" minOccurs="0"/>
|
||||
<element name="originatingLeadJoin" type="platformCommon:OriginatingLeadSearchBasic" minOccurs="0"/>
|
||||
<element name="participantJoin" type="platformCommon:EntitySearchBasic" minOccurs="0"/>
|
||||
<element name="transactionJoin" type="platformCommon:TransactionSearchBasic" minOccurs="0"/>
|
||||
<element name="userJoin" type="platformCommon:EmployeeSearchBasic" minOccurs="0"/>
|
||||
<element name="userNotesJoin" type="platformCommon:NoteSearchBasic" minOccurs="0"/>
|
||||
<element name="customSearchJoin" type="platformCommon:CustomSearchJoin" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="PhoneCallSearchAdvanced">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRecord">
|
||||
<sequence>
|
||||
<element name="criteria" type="actSched:PhoneCallSearch" minOccurs="0"/>
|
||||
<element name="columns" type="actSched:PhoneCallSearchRow" minOccurs="0"/>
|
||||
</sequence>
|
||||
<attribute name="savedSearchId" type="xsd:string"/>
|
||||
<attribute name="savedSearchScriptId" type="xsd:string"/>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="PhoneCallSearchRow">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRow">
|
||||
<sequence>
|
||||
<element name="basic" type="platformCommon:PhoneCallSearchRowBasic" minOccurs="0"/>
|
||||
<element name="caseJoin" type="platformCommon:SupportCaseSearchRowBasic" minOccurs="0"/>
|
||||
<element name="companyCustomerJoin" type="platformCommon:CustomerSearchRowBasic" minOccurs="0"/>
|
||||
<element name="contactJoin" type="platformCommon:ContactSearchRowBasic" minOccurs="0"/>
|
||||
<element name="employeeJoin" type="platformCommon:EmployeeSearchRowBasic" minOccurs="0"/>
|
||||
<element name="fileJoin" type="platformCommon:FileSearchRowBasic" minOccurs="0"/>
|
||||
<element name="opportunityJoin" type="platformCommon:OpportunitySearchRowBasic" minOccurs="0"/>
|
||||
<element name="originatingLeadJoin" type="platformCommon:OriginatingLeadSearchRowBasic" minOccurs="0"/>
|
||||
<element name="participantJoin" type="platformCommon:EntitySearchRowBasic" minOccurs="0"/>
|
||||
<element name="transactionJoin" type="platformCommon:TransactionSearchRowBasic" minOccurs="0"/>
|
||||
<element name="userJoin" type="platformCommon:EmployeeSearchRowBasic" minOccurs="0"/>
|
||||
<element name="userNotesJoin" type="platformCommon:NoteSearchRowBasic" minOccurs="0"/>
|
||||
<element name="customSearchJoin" type="platformCommon:CustomSearchRowBasic" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<!-- phoneCall/end -->
|
||||
<!-- projectTaskCall/start -->
|
||||
<element name="projectTask" type="actSched:ProjectTask"/>
|
||||
<complexType name="ProjectTask">
|
||||
<complexContent>
|
||||
<extension base="platformCore:Record">
|
||||
<sequence>
|
||||
<element name="customForm" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="eventId" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="percentTimeComplete" type="xsd:double" minOccurs="0"/>
|
||||
<element name="title" type="xsd:string" minOccurs="0"/>
|
||||
<element name="company" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="contact" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="order" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="owner" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="parent" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="priority" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="estimatedWork" type="xsd:double" minOccurs="0"/>
|
||||
<element name="estimatedWorkBaseline" type="xsd:double" minOccurs="0"/>
|
||||
<element name="constraintType" type="actSchedTyp:ProjectTaskConstraintType" minOccurs="0"/>
|
||||
<element name="startDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="startDateBaseline" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="endDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="finishByDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="endDateBaseline" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="actualWork" type="xsd:double" minOccurs="0"/>
|
||||
<element name="remainingWork" type="xsd:double" minOccurs="0"/>
|
||||
<element name="message" type="xsd:string" minOccurs="0"/>
|
||||
<element name="isMilestone" type="xsd:boolean" minOccurs="0"/>
|
||||
<element name="isOnCriticalPath" type="xsd:string" minOccurs="0"/>
|
||||
<element name="slackMinutes" type="xsd:double" minOccurs="0"/>
|
||||
<element name="lateEnd" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="lateStart" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="status" type="actSchedTyp:ProjectTaskStatus" minOccurs="0"/>
|
||||
<element name="nonBillableTask" type="xsd:boolean" minOccurs="0"/>
|
||||
<element name="assigneeList" type="actSched:ProjectTaskAssigneeList" minOccurs="0"/>
|
||||
<element name="predecessorList" type="actSched:ProjectTaskPredecessorList" minOccurs="0"/>
|
||||
<element name="timeItemList" type="actSched:ProjectTaskTimeItemList" minOccurs="0"/>
|
||||
<element name="customFieldList" type="platformCore:CustomFieldList" minOccurs="0"/>
|
||||
</sequence>
|
||||
<!-- primary record internalId -->
|
||||
<attribute name="internalId" type="xsd:string"/>
|
||||
<attribute name="externalId" type="xsd:string"/>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ProjectTaskPredecessor">
|
||||
<sequence>
|
||||
<element name="task" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="type" type="actSchedTyp:ProjectTaskPredecessorPredecessorType" minOccurs="0"/>
|
||||
<element name="lagDays" type="xsd:double" minOccurs="0"/>
|
||||
<element name="startDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="endDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="ProjectTaskPredecessorList">
|
||||
<sequence>
|
||||
<element name="projectTaskPredecessor" type="actSched:ProjectTaskPredecessor" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="replaceAll" type="xsd:boolean" default="true"/>
|
||||
</complexType>
|
||||
<complexType name="ProjectTaskAssignee">
|
||||
<sequence>
|
||||
<element name="resource" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="units" type="xsd:double" minOccurs="0"/>
|
||||
<element name="serviceItem" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="estimatedWork" type="xsd:double" minOccurs="0"/>
|
||||
<element name="unitCost" type="xsd:double" minOccurs="0"/>
|
||||
<element name="unitPrice" type="xsd:double" minOccurs="0"/>
|
||||
<element name="cost" type="xsd:double" minOccurs="0"/>
|
||||
<element name="price" type="xsd:double" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="ProjectTaskAssigneeList">
|
||||
<sequence>
|
||||
<element name="projectTaskAssignee" type="actSched:ProjectTaskAssignee" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="replaceAll" type="xsd:boolean" default="true"/>
|
||||
</complexType>
|
||||
<element name="projectTaskSearch" type="actSched:ProjectTaskSearch"/>
|
||||
<complexType name="ProjectTaskSearch">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRecord">
|
||||
<sequence>
|
||||
<element name="basic" type="platformCommon:ProjectTaskSearchBasic" minOccurs="0"/>
|
||||
<element name="jobJoin" type="platformCommon:JobSearchBasic" minOccurs="0"/>
|
||||
<element name="predecessorJoin" type="platformCommon:ProjectTaskSearchBasic" minOccurs="0"/>
|
||||
<element name="projectTaskAssignmentJoin" type="platformCommon:ProjectTaskAssignmentSearchBasic" minOccurs="0"/>
|
||||
<element name="successorJoin" type="platformCommon:ProjectTaskSearchBasic" minOccurs="0"/>
|
||||
<element name="timeJoin" type="platformCommon:TimeBillSearchBasic" minOccurs="0"/>
|
||||
<element name="userJoin" type="platformCommon:EmployeeSearchBasic" minOccurs="0"/>
|
||||
<element name="userNotesJoin" type="platformCommon:NoteSearchBasic" minOccurs="0"/>
|
||||
<element name="customSearchJoin" type="platformCommon:CustomSearchJoin" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ProjectTaskSearchAdvanced">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRecord">
|
||||
<sequence>
|
||||
<element name="criteria" type="actSched:ProjectTaskSearch" minOccurs="0"/>
|
||||
<element name="columns" type="actSched:ProjectTaskSearchRow" minOccurs="0"/>
|
||||
</sequence>
|
||||
<attribute name="savedSearchId" type="xsd:string"/>
|
||||
<attribute name="savedSearchScriptId" type="xsd:string"/>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ProjectTaskSearchRow">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRow">
|
||||
<sequence>
|
||||
<element name="basic" type="platformCommon:ProjectTaskSearchRowBasic" minOccurs="0"/>
|
||||
<element name="jobJoin" type="platformCommon:JobSearchRowBasic" minOccurs="0"/>
|
||||
<element name="predecessorJoin" type="platformCommon:ProjectTaskSearchRowBasic" minOccurs="0"/>
|
||||
<element name="projectTaskAssignmentJoin" type="platformCommon:ProjectTaskAssignmentSearchRowBasic" minOccurs="0"/>
|
||||
<element name="successorJoin" type="platformCommon:ProjectTaskSearchRowBasic" minOccurs="0"/>
|
||||
<element name="timeJoin" type="platformCommon:TimeBillSearchRowBasic" minOccurs="0"/>
|
||||
<element name="userJoin" type="platformCommon:EmployeeSearchRowBasic" minOccurs="0"/>
|
||||
<element name="userNotesJoin" type="platformCommon:NoteSearchRowBasic" minOccurs="0"/>
|
||||
<element name="customSearchJoin" type="platformCommon:CustomSearchRowBasic" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<!-- projectTaskCall/end -->
|
||||
<complexType name="PhoneCallTimeItemList">
|
||||
<sequence>
|
||||
<element name="timeItem" type="platformCommon:TimeItem" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="replaceAll" type="xsd:boolean" default="true"/>
|
||||
</complexType>
|
||||
<complexType name="CalendarEventTimeItemList">
|
||||
<sequence>
|
||||
<element name="timeItem" type="platformCommon:TimeItem" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="replaceAll" type="xsd:boolean" default="true"/>
|
||||
</complexType>
|
||||
<complexType name="TaskTimeItemList">
|
||||
<sequence>
|
||||
<element name="timeItem" type="platformCommon:TimeItem" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="replaceAll" type="xsd:boolean" default="true"/>
|
||||
</complexType>
|
||||
<complexType name="ProjectTaskTimeItemList">
|
||||
<sequence>
|
||||
<element name="timeItem" type="platformCommon:TimeItem" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="replaceAll" type="xsd:boolean" default="true"/>
|
||||
</complexType>
|
||||
<element name="resourceAllocation" type="actSched:ResourceAllocation"/>
|
||||
<complexType name="ResourceAllocation">
|
||||
<complexContent>
|
||||
<extension base="platformCore:Record">
|
||||
<sequence>
|
||||
<element name="requestedby" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="approvalStatus" type="actSchedTyp:ResourceAllocationApprovalStatus" minOccurs="0"/>
|
||||
<element name="nextApprover" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="allocationResource" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="project" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="notes" type="xsd:string" minOccurs="0"/>
|
||||
<element name="startDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="endDate" type="xsd:dateTime" minOccurs="0"/>
|
||||
<element name="allocationAmount" type="xsd:double" minOccurs="0"/>
|
||||
<element name="allocationUnit" type="actSchedTyp:ResourceAllocationAllocationUnit" minOccurs="0"/>
|
||||
<element name="numberHours" type="xsd:double" minOccurs="0"/>
|
||||
<element name="percentOfTime" type="xsd:double" minOccurs="0"/>
|
||||
<element name="allocationType" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="customForm" type="platformCore:RecordRef" minOccurs="0"/>
|
||||
<element name="customFieldList" type="platformCore:CustomFieldList" minOccurs="0"/>
|
||||
</sequence>
|
||||
<!-- primary record internalId -->
|
||||
<attribute name="internalId" type="xsd:string"/>
|
||||
<attribute name="externalId" type="xsd:string"/>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<element name="resourceAllocationSearch" type="actSched:ResourceAllocationSearch"/>
|
||||
<complexType name="ResourceAllocationSearch">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRecord">
|
||||
<sequence>
|
||||
<element name="basic" type="platformCommon:ResourceAllocationSearchBasic" minOccurs="0"/>
|
||||
<element name="customerJoin" type="platformCommon:CustomerSearchBasic" minOccurs="0"/>
|
||||
<element name="employeeJoin" type="platformCommon:EmployeeSearchBasic" minOccurs="0"/>
|
||||
<element name="jobJoin" type="platformCommon:JobSearchBasic" minOccurs="0"/>
|
||||
<element name="requestedByJoin" type="platformCommon:EntitySearchBasic" minOccurs="0"/>
|
||||
<element name="resourceJoin" type="platformCommon:EntitySearchBasic" minOccurs="0"/>
|
||||
<element name="userJoin" type="platformCommon:EmployeeSearchBasic" minOccurs="0"/>
|
||||
<element name="vendorJoin" type="platformCommon:VendorSearchBasic" minOccurs="0"/>
|
||||
<element name="customSearchJoin" type="platformCommon:CustomSearchJoin" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ResourceAllocationSearchAdvanced">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRecord">
|
||||
<sequence>
|
||||
<element name="criteria" type="actSched:ResourceAllocationSearch" minOccurs="0"/>
|
||||
<element name="columns" type="actSched:ResourceAllocationSearchRow" minOccurs="0"/>
|
||||
</sequence>
|
||||
<attribute name="savedSearchId" type="xsd:string"/>
|
||||
<attribute name="savedSearchScriptId" type="xsd:string"/>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ResourceAllocationSearchRow">
|
||||
<complexContent>
|
||||
<extension base="platformCore:SearchRow">
|
||||
<sequence>
|
||||
<element name="basic" type="platformCommon:ResourceAllocationSearchRowBasic" minOccurs="0"/>
|
||||
<element name="customerJoin" type="platformCommon:CustomerSearchRowBasic" minOccurs="0"/>
|
||||
<element name="employeeJoin" type="platformCommon:EmployeeSearchRowBasic" minOccurs="0"/>
|
||||
<element name="jobJoin" type="platformCommon:JobSearchRowBasic" minOccurs="0"/>
|
||||
<element name="requestedByJoin" type="platformCommon:EntitySearchRowBasic" minOccurs="0"/>
|
||||
<element name="resourceJoin" type="platformCommon:EntitySearchRowBasic" minOccurs="0"/>
|
||||
<element name="userJoin" type="platformCommon:EmployeeSearchRowBasic" minOccurs="0"/>
|
||||
<element name="vendorJoin" type="platformCommon:VendorSearchRowBasic" minOccurs="0"/>
|
||||
<element name="customSearchJoin" type="platformCommon:CustomSearchRowBasic" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
</schema>
|
||||
@@ -1,198 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:actSchedTyp="urn:types.scheduling_2014_2.activities.webservices.netsuite.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:types.scheduling_2014_2.activities.webservices.netsuite.com" elementFormDefault="qualified">
|
||||
<!-- CalendarEventAccessLevel/start -->
|
||||
<simpleType name="CalendarEventAccessLevel">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_private"/>
|
||||
<enumeration value="_public"/>
|
||||
<enumeration value="_showAsBusy"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<!-- CalendarEventAccessLevel/end -->
|
||||
<!-- CalendarEventAttendeeAttendance/start -->
|
||||
<simpleType name="CalendarEventAttendeeAttendance">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_optional"/>
|
||||
<enumeration value="_required"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<!-- CalendarEventAttendeeAttendance/end -->
|
||||
<!-- CalendarEventReminderMinutes/start -->
|
||||
<simpleType name="CalendarEventReminderMinutes">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_none"/>
|
||||
<enumeration value="_0minutes"/>
|
||||
<enumeration value="_10minutes"/>
|
||||
<enumeration value="_12hours"/>
|
||||
<enumeration value="_15minutes"/>
|
||||
<enumeration value="_1day"/>
|
||||
<enumeration value="_1hour"/>
|
||||
<enumeration value="_1week"/>
|
||||
<enumeration value="_2days"/>
|
||||
<enumeration value="_2hours"/>
|
||||
<enumeration value="_30minutes"/>
|
||||
<enumeration value="_3days"/>
|
||||
<enumeration value="_3hours"/>
|
||||
<enumeration value="_4hours"/>
|
||||
<enumeration value="_5hours"/>
|
||||
<enumeration value="_5minutes"/>
|
||||
<enumeration value="_8hours"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<!-- CalendarEventReminderMinutes/end -->
|
||||
<!-- CalendarEventReminderType/start -->
|
||||
<simpleType name="CalendarEventReminderType">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_none"/>
|
||||
<enumeration value="_eMail"/>
|
||||
<enumeration value="_popupWindow"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<!-- CalendarEventReminderType/end -->
|
||||
<!-- CalendarEventStatus/start -->
|
||||
<simpleType name="CalendarEventStatus">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_canceled"/>
|
||||
<enumeration value="_completed"/>
|
||||
<enumeration value="_confirmed"/>
|
||||
<enumeration value="_tentative"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<!-- CalendarEventStatus/end -->
|
||||
<!-- TaskPriority/start -->
|
||||
<simpleType name="TaskPriority">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_high"/>
|
||||
<enumeration value="_low"/>
|
||||
<enumeration value="_medium"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<!-- TaskPriority/end -->
|
||||
<!-- TaskReminderMinutes/start -->
|
||||
<simpleType name="TaskReminderMinutes">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_0minutes"/>
|
||||
<enumeration value="_10minutes"/>
|
||||
<enumeration value="_12hours"/>
|
||||
<enumeration value="_15minutes"/>
|
||||
<enumeration value="_1day"/>
|
||||
<enumeration value="_1hour"/>
|
||||
<enumeration value="_1week"/>
|
||||
<enumeration value="_2days"/>
|
||||
<enumeration value="_2hours"/>
|
||||
<enumeration value="_30minutes"/>
|
||||
<enumeration value="_3days"/>
|
||||
<enumeration value="_3hours"/>
|
||||
<enumeration value="_4hours"/>
|
||||
<enumeration value="_5hours"/>
|
||||
<enumeration value="_5minutes"/>
|
||||
<enumeration value="_8hours"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<!-- TaskReminderMinutes/end -->
|
||||
<!-- TaskReminderType/start -->
|
||||
<simpleType name="TaskReminderType">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_eMail"/>
|
||||
<enumeration value="_popupWindow"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<!-- TaskReminderType/end -->
|
||||
<!-- TaskStatus/start -->
|
||||
<simpleType name="TaskStatus">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_completed"/>
|
||||
<enumeration value="_inProgress"/>
|
||||
<enumeration value="_notStarted"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<!-- TaskStatus/end -->
|
||||
<!-- PhoneCallPriority/start -->
|
||||
<simpleType name="PhoneCallPriority">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_high"/>
|
||||
<enumeration value="_low"/>
|
||||
<enumeration value="_medium"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<!-- PhoneCallPriority/end -->
|
||||
<!-- PhoneCallReminderMinutes/start -->
|
||||
<simpleType name="PhoneCallReminderMinutes">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_0minutes"/>
|
||||
<enumeration value="_10minutes"/>
|
||||
<enumeration value="_12hours"/>
|
||||
<enumeration value="_15minutes"/>
|
||||
<enumeration value="_1day"/>
|
||||
<enumeration value="_1hour"/>
|
||||
<enumeration value="_1week"/>
|
||||
<enumeration value="_2days"/>
|
||||
<enumeration value="_2hours"/>
|
||||
<enumeration value="_30minutes"/>
|
||||
<enumeration value="_3days"/>
|
||||
<enumeration value="_3hours"/>
|
||||
<enumeration value="_4hours"/>
|
||||
<enumeration value="_5hours"/>
|
||||
<enumeration value="_5minutes"/>
|
||||
<enumeration value="_8hours"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<!-- PhoneCallReminderMinutes/end -->
|
||||
<!-- PhoneCallReminderType/start -->
|
||||
<simpleType name="PhoneCallReminderType">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_eMail"/>
|
||||
<enumeration value="_popupWindow"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<!-- PhoneCallReminderType/end -->
|
||||
<!-- PhoneCallStatus/start -->
|
||||
<simpleType name="PhoneCallStatus">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_completed"/>
|
||||
<enumeration value="_scheduled"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<!-- PhoneCallStatus/end -->
|
||||
<simpleType name="ProjectTaskPriority">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_high"/>
|
||||
<enumeration value="_low"/>
|
||||
<enumeration value="_medium"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<simpleType name="ProjectTaskStatus">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_completed"/>
|
||||
<enumeration value="_inProgress"/>
|
||||
<enumeration value="_notStarted"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<simpleType name="ProjectTaskConstraintType">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_asSoonAsPossible"/>
|
||||
<enumeration value="_fixedStart"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<simpleType name="ProjectTaskPredecessorPredecessorType">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_finishToFinish"/>
|
||||
<enumeration value="_finishToStart"/>
|
||||
<enumeration value="_startToFinish"/>
|
||||
<enumeration value="_startToStart"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<simpleType name="ResourceAllocationAllocationUnit">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_hours"/>
|
||||
<enumeration value="_percentOfTime"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
<simpleType name="ResourceAllocationApprovalStatus">
|
||||
<restriction base="xsd:string">
|
||||
<enumeration value="_approved"/>
|
||||
<enumeration value="_pendingApproval"/>
|
||||
<enumeration value="_rejected"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
</schema>
|
||||