├── target
├── .gitignore
├── maven-status
│ └── maven-compiler-plugin
│ │ ├── testCompile
│ │ └── default-testCompile
│ │ │ ├── inputFiles.lst
│ │ │ └── createdFiles.lst
│ │ └── compile
│ │ └── default-compile
│ │ ├── createdFiles.lst
│ │ └── inputFiles.lst
├── .DS_Store
├── maven-archiver
│ └── pom.properties
└── classes
│ ├── com
│ └── force
│ │ └── crma
│ │ └── olympus
│ │ ├── FileUtils.class
│ │ ├── HeaderJSON.class
│ │ ├── StringUtils.class
│ │ ├── CreateDataset.class
│ │ ├── DataPartJSON.class
│ │ ├── DatasetCreator.class
│ │ ├── RESTHttpClient.class
│ │ ├── AddDataPartThread.class
│ │ ├── DatasetCreatorParams.class
│ │ └── DatasetCreatorException.class
│ ├── META-INF
│ ├── MANIFEST.MF
│ └── maven
│ │ └── com.force.crma.olympus
│ │ └── dataset-creator
│ │ ├── pom.properties
│ │ └── pom.xml
│ └── Complaints_schema.json
├── .DS_Store
├── .gitattributes
├── src
├── .DS_Store
├── main
│ ├── .DS_Store
│ ├── java
│ │ ├── .DS_Store
│ │ └── com
│ │ │ ├── .DS_Store
│ │ │ └── force
│ │ │ ├── .DS_Store
│ │ │ └── crma
│ │ │ └── olympus
│ │ │ ├── DatasetCreatorParams.java
│ │ │ ├── StringUtils.java
│ │ │ ├── DatasetCreatorException.java
│ │ │ ├── DataPartJSON.java
│ │ │ ├── AddDataPartThread.java
│ │ │ ├── HeaderJSON.java
│ │ │ ├── DatasetCreator.java
│ │ │ ├── FileUtils.java
│ │ │ ├── RESTHttpClient.java
│ │ │ └── CreateDataset.java
│ └── resources
│ │ ├── .DS_Store
│ │ └── Complaints_schema.json
└── test
│ └── .DS_Store
├── .settings
├── org.eclipse.m2e.core.prefs
└── org.eclipse.jdt.core.prefs
├── CONTRIBUTING-ARCHIVED.md
├── .gitignore
├── SECURITY.md
├── .project
├── logging.properties
├── .classpath
├── LICENSE.md
├── pom.xml
└── README.md
/target/.gitignore:
--------------------------------------------------------------------------------
1 | /classes/
2 | /test-classes/
3 |
--------------------------------------------------------------------------------
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/.DS_Store
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/src/.DS_Store
--------------------------------------------------------------------------------
/target/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/target/.DS_Store
--------------------------------------------------------------------------------
/src/main/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/src/main/.DS_Store
--------------------------------------------------------------------------------
/src/test/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/src/test/.DS_Store
--------------------------------------------------------------------------------
/src/main/java/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/src/main/java/.DS_Store
--------------------------------------------------------------------------------
/src/main/java/com/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/src/main/java/com/.DS_Store
--------------------------------------------------------------------------------
/src/main/resources/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/src/main/resources/.DS_Store
--------------------------------------------------------------------------------
/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/src/main/java/com/force/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/src/main/java/com/force/.DS_Store
--------------------------------------------------------------------------------
/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
3 |
--------------------------------------------------------------------------------
/target/maven-archiver/pom.properties:
--------------------------------------------------------------------------------
1 | #Created by Apache Maven 3.6.1
2 | groupId=com.force.crma.olympus
3 | artifactId=dataset-creator
4 | version=0.54.1
5 |
--------------------------------------------------------------------------------
/CONTRIBUTING-ARCHIVED.md:
--------------------------------------------------------------------------------
1 | # ARCHIVED
2 |
3 | This project is `Archived` and is no longer actively maintained;
4 | We are not accepting contributions or Pull Requests.
5 |
6 |
--------------------------------------------------------------------------------
/target/classes/com/force/crma/olympus/FileUtils.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/target/classes/com/force/crma/olympus/FileUtils.class
--------------------------------------------------------------------------------
/target/classes/com/force/crma/olympus/HeaderJSON.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/target/classes/com/force/crma/olympus/HeaderJSON.class
--------------------------------------------------------------------------------
/target/classes/com/force/crma/olympus/StringUtils.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/target/classes/com/force/crma/olympus/StringUtils.class
--------------------------------------------------------------------------------
/target/classes/com/force/crma/olympus/CreateDataset.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/target/classes/com/force/crma/olympus/CreateDataset.class
--------------------------------------------------------------------------------
/target/classes/com/force/crma/olympus/DataPartJSON.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/target/classes/com/force/crma/olympus/DataPartJSON.class
--------------------------------------------------------------------------------
/target/classes/com/force/crma/olympus/DatasetCreator.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/target/classes/com/force/crma/olympus/DatasetCreator.class
--------------------------------------------------------------------------------
/target/classes/com/force/crma/olympus/RESTHttpClient.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/target/classes/com/force/crma/olympus/RESTHttpClient.class
--------------------------------------------------------------------------------
/target/classes/com/force/crma/olympus/AddDataPartThread.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/target/classes/com/force/crma/olympus/AddDataPartThread.class
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | *.class
3 | target/classes/META-INF/maven/com.force.crma.olympus/dataset-creator/pom.properties
4 | target/classes/META-INF/maven/com.force.crma.olympus/dataset-creator/pom.xml
5 |
--------------------------------------------------------------------------------
/target/classes/com/force/crma/olympus/DatasetCreatorParams.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/target/classes/com/force/crma/olympus/DatasetCreatorParams.class
--------------------------------------------------------------------------------
/target/classes/com/force/crma/olympus/DatasetCreatorException.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/forcedotcom/CRMA-dataset-creator/HEAD/target/classes/com/force/crma/olympus/DatasetCreatorException.class
--------------------------------------------------------------------------------
/target/classes/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Built-By: terence.wilson
3 | Build-Jdk: 11.0.4
4 | Main-Class: com.force.crma.olympus.CreateDataset
5 | Created-By: Maven Integration for Eclipse
6 |
7 |
--------------------------------------------------------------------------------
/target/classes/META-INF/maven/com.force.crma.olympus/dataset-creator/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Tue Sep 13 19:39:12 MDT 2022
3 | m2e.projectLocation=/Users/terence.wilson/eclipse-workspace/dataset-creator
4 | m2e.projectName=dataset-creator
5 | groupId=com.force.crma.olympus
6 | artifactId=dataset-creator
7 | version=0.54.1
8 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | ## Security
2 |
3 | Please report any security issue to [security@salesforce.com](mailto:security@salesforce.com)
4 | as soon as it is discovered. This library limits its runtime dependencies in
5 | order to reduce the total cost of ownership as much as can be, but all consumers
6 | should remain vigilant and have their security stakeholders review all third-party
7 | products (3PP) like this one and their dependencies.
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst:
--------------------------------------------------------------------------------
1 | com/force/crma/olympus/StringUtils.class
2 | com/force/crma/olympus/RESTHttpClient.class
3 | com/force/crma/olympus/FileUtils.class
4 | com/force/crma/olympus/HeaderJSON.class
5 | com/force/crma/olympus/DatasetCreatorException.class
6 | com/force/crma/olympus/AddDataPartThread.class
7 | com/force/crma/olympus/DatasetCreator.class
8 | com/force/crma/olympus/DataPartJSON.class
9 | com/force/crma/olympus/DatasetCreatorParams.class
10 | com/force/crma/olympus/CreateDataset.class
11 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | dataset-creator
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/src/main/java/com/force/crma/olympus/DatasetCreatorParams.java:
--------------------------------------------------------------------------------
1 | package com.force.crma.olympus;
2 |
3 | public class DatasetCreatorParams {
4 |
5 |
6 | String datasetAlias = null;
7 | String datasetLabel = null;
8 | String app =null;
9 | String username = null;
10 | String password = null;
11 | String cSecret = null;
12 | String cKey = null;
13 | String endpoint = null;
14 | String inputFile = null;
15 | String schemaFile = null;
16 | String operation = null;
17 | String mode=null;
18 | String proxyHost =null;
19 | int proxyPort =0;
20 | String proxyUsername =null;
21 | String proxyPassword=null;
22 |
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/logging.properties:
--------------------------------------------------------------------------------
1 |
2 | # Logs to file and console
3 | handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
4 | # Global logging levels, 7 levels
5 | .level= FINE
6 |
7 | # Log file output in user's home directory, %h
8 | java.util.logging.FileHandler.pattern = %h/java%u.log
9 | java.util.logging.FileHandler.limit = 50000
10 | java.util.logging.FileHandler.count = 1
11 | #java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
12 | java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
13 |
14 | java.util.logging.ConsoleHandler.level = INFO
15 | java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
16 |
17 | java.util.logging.SimpleFormatter.format=[%1$tc] %4$s: %5$s %n
18 |
--------------------------------------------------------------------------------
/src/main/java/com/force/crma/olympus/StringUtils.java:
--------------------------------------------------------------------------------
1 | package com.force.crma.olympus;
2 |
3 | import java.util.Arrays;
4 | import java.util.List;
5 |
6 | public class StringUtils {
7 |
8 | public StringUtils() {
9 | // TODO Auto-generated constructor stub
10 | }
11 |
12 | protected static boolean isBlank(String aString) {
13 | return aString == null || aString.isEmpty();
14 |
15 | }
16 |
17 | protected static boolean arrayContainsValue(String[] aArray, String aString) {
18 | if(!isEmptyArray(aArray)) {
19 | List list =Arrays.asList(aArray);
20 | return list.contains(aString);
21 | }else
22 | return false;
23 |
24 | }
25 |
26 | protected static boolean isEmptyArray(String[] aArray) {
27 | return aArray==null||aArray.length==0;
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/com/force/crma/olympus/DatasetCreatorException.java:
--------------------------------------------------------------------------------
1 | package com.force.crma.olympus;
2 |
3 | public class DatasetCreatorException extends Exception {
4 |
5 | /**
6 | *
7 | */
8 | private static final long serialVersionUID = 1L;
9 |
10 | public DatasetCreatorException() {
11 |
12 | }
13 |
14 | public DatasetCreatorException(String message) {
15 | super(message);
16 |
17 | }
18 |
19 | public DatasetCreatorException(Throwable cause) {
20 | super(cause);
21 |
22 | }
23 |
24 | public DatasetCreatorException(String message, Throwable cause) {
25 | super(message, cause);
26 |
27 | }
28 |
29 | public DatasetCreatorException(String message, Throwable cause, boolean enableSuppression,
30 | boolean writableStackTrace) {
31 | super(message, cause, enableSuppression, writableStackTrace);
32 |
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | /Users/terence.wilson/eclipse-workspace/dataset-creator/src/main/java/com/force/crma/olympus/DataPartJSON.java
2 | /Users/terence.wilson/eclipse-workspace/dataset-creator/src/main/java/com/force/crma/olympus/HeaderJSON.java
3 | /Users/terence.wilson/eclipse-workspace/dataset-creator/src/main/java/com/force/crma/olympus/StringUtils.java
4 | /Users/terence.wilson/eclipse-workspace/dataset-creator/src/main/java/com/force/crma/olympus/RESTHttpClient.java
5 | /Users/terence.wilson/eclipse-workspace/dataset-creator/src/main/java/com/force/crma/olympus/DatasetCreator.java
6 | /Users/terence.wilson/eclipse-workspace/dataset-creator/src/main/java/com/force/crma/olympus/DatasetCreatorException.java
7 | /Users/terence.wilson/eclipse-workspace/dataset-creator/src/main/java/com/force/crma/olympus/DatasetCreatorParams.java
8 | /Users/terence.wilson/eclipse-workspace/dataset-creator/src/main/java/com/force/crma/olympus/FileUtils.java
9 | /Users/terence.wilson/eclipse-workspace/dataset-creator/src/main/java/com/force/crma/olympus/AddDataPartThread.java
10 | /Users/terence.wilson/eclipse-workspace/dataset-creator/src/main/java/com/force/crma/olympus/CreateDataset.java
11 |
--------------------------------------------------------------------------------
/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/src/main/java/com/force/crma/olympus/DataPartJSON.java:
--------------------------------------------------------------------------------
1 | package com.force.crma.olympus;
2 |
3 |
4 | /*
5 | * Simple JAVA object representing REST JSON of the datapart object InsightsExternalDataPart
6 | * to support REST insert calls;
7 | *
8 | */
9 | public class DataPartJSON {
10 |
11 |
12 | protected static final String EXT_DATA_OBJECT_PARTS="InsightsExternalDataPart";
13 | protected static final String FIELD_DATA_FILE ="\"DataFile\"";
14 | protected static final String FIELD_INSIGHTS_EXT_DATA_ID="\"InsightsExternalDataId\"";
15 | protected static final String FIELD_PART_NUMBER="\"PartNumber\"";
16 |
17 |
18 | private static String headerId=null;
19 | private String partNumber=null;
20 | private String dataPart=null;
21 |
22 | public DataPartJSON(String aHeaderId) {
23 | if (headerId ==null) headerId=aHeaderId;
24 | }
25 |
26 | public void setPartNumber(String aPartNumber) {
27 | partNumber=aPartNumber;
28 | }
29 |
30 | public void setDataPart(String aDataPart) {
31 | dataPart=aDataPart;
32 | }
33 | public String toString() {
34 | StringBuilder requestBody =new StringBuilder();
35 | requestBody.append("{").append(HeaderJSON.LF);
36 | requestBody.append(FIELD_INSIGHTS_EXT_DATA_ID).append(" : \"").append(headerId).append("\",").append(HeaderJSON.LF);
37 | requestBody.append(FIELD_PART_NUMBER).append(" : \"").append(partNumber).append("\",").append(HeaderJSON.LF);
38 | requestBody.append(FIELD_DATA_FILE).append(" : \"").append(dataPart).append("\"").append(HeaderJSON.LF);
39 | requestBody.append("}").append(HeaderJSON.LF);
40 | return requestBody.toString();
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | # Salesforce.com Analytics Cloud DatasetCreator End User License Agreement
2 |
3 | Except as described below, Salesforce.com Analytics Cloud DatasetCreator is Copyright (c) 2022, salesforce.com, inc. All rights reserved.
4 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5 |
6 | * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7 |
8 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9 |
10 | * Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11 |
12 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 | 4.0.0
3 | com.force.crma.olympus
4 | dataset-creator
5 | 0.56.0
6 | dataset-creator
7 | CRMA Dataset Creator
8 |
9 | 56.0
10 | 11
11 | UTF-8
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | org.apache.maven.plugins
20 | maven-assembly-plugin
21 | 3.2.0
22 |
23 |
24 | org.apache.maven.plugins
25 | maven-compiler-plugin
26 | 3.8.1
27 |
28 | 11
29 | 11
30 |
31 |
32 |
33 |
34 |
35 | maven-jar-plugin
36 | 3.0.2
37 |
38 |
39 |
40 | true
41 |
42 |
43 | com.force.crma.olympus.CreateDataset
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/target/classes/META-INF/maven/com.force.crma.olympus/dataset-creator/pom.xml:
--------------------------------------------------------------------------------
1 |
2 | 4.0.0
3 | com.force.crma.olympus
4 | dataset-creator
5 | 0.54.1
6 | dataset-creator
7 | TCRM Dataset Creator
8 |
9 | 54.0
10 | 11
11 | UTF-8
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | org.apache.maven.plugins
20 | maven-assembly-plugin
21 | 3.2.0
22 |
23 |
24 | org.apache.maven.plugins
25 | maven-compiler-plugin
26 | 3.8.1
27 |
28 | 11
29 | 11
30 |
31 |
32 |
33 |
34 |
35 | maven-jar-plugin
36 | 3.0.2
37 |
38 |
39 |
40 | true
41 |
42 |
43 | com.force.crma.olympus.CreateDataset
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/src/main/java/com/force/crma/olympus/AddDataPartThread.java:
--------------------------------------------------------------------------------
1 | package com.force.crma.olympus;
2 |
3 | import java.io.File;
4 | import java.util.Map;
5 | import java.util.concurrent.BlockingQueue;
6 | import java.util.concurrent.atomic.AtomicBoolean;
7 | import java.util.concurrent.atomic.AtomicInteger;
8 | import java.util.logging.Level;
9 | import java.util.logging.Logger;
10 |
11 | public class AddDataPartThread implements Runnable {
12 |
13 | private final BlockingQueue