Skip to content
This repository has been archived by the owner on Nov 22, 2019. It is now read-only.

Commit

Permalink
TEIIDTOOLS-313: Adding salesforce as source
Browse files Browse the repository at this point in the history
  • Loading branch information
rareddy committed Jun 5, 2018
1 parent 6683a9f commit b56976c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ngapp/src/app/connections/shared/connection-type.model.ts
Expand Up @@ -51,6 +51,8 @@ export class ConnectionType {
return "MongoDB database img";
} else if (name === ConnectionsConstants.connectionType_mariadb) {
return "MariaDB database img";
} else if (name === ConnectionsConstants.connectionType_salesforce) {
return "SalesForce img";
}
return "unknown image";
}
Expand All @@ -68,6 +70,8 @@ export class ConnectionType {
return "assets/MongoDB_70x40.png";
} else if (name === ConnectionsConstants.connectionType_mariadb) {
return "assets/MongoDB_70x40.png";
} else if (name === ConnectionsConstants.connectionType_salesforce) {
return "assets/salesforce_40x40.png";
}
return "";
}
Expand Down
6 changes: 5 additions & 1 deletion ngapp/src/app/connections/shared/connection.service.ts
Expand Up @@ -186,14 +186,18 @@ export class ConnectionService extends ApiService {
const connType3: ConnectionType = new ConnectionType();
connType3.setName(ConnectionsConstants.connectionType_mongodb);
connType3.setDescription(ConnectionsConstants.connectionTypeDescription_mongodb);
const connType4: ConnectionType = new ConnectionType();
connType4.setName(ConnectionsConstants.connectionType_salesforce);
connType4.setDescription(ConnectionsConstants.connectionTypeDescription_salesforce);

// const connType4: ConnectionType = new ConnectionType();
// connType4.setName(ConnectionsConstants.connectionType_mariadb);
// connType4.setDescription(ConnectionsConstants.connectionTypeDescription_mariadb);

connectionTypes.push(connType1);
connectionTypes.push(connType2);
connectionTypes.push(connType3);
// connectionTypes.push(connType4);
connectionTypes.push(connType4);

return connectionTypes;
}
Expand Down
2 changes: 2 additions & 0 deletions ngapp/src/app/connections/shared/connections-constants.ts
Expand Up @@ -30,11 +30,13 @@ export class ConnectionsConstants {
public static readonly connectionType_mysql = "mysql";
public static readonly connectionType_mongodb = "mongodb";
public static readonly connectionType_mariadb = "mariadb";
public static readonly connectionType_salesforce = "salesforce";

public static readonly connectionTypeDescription_postgresql = "PostgreSQL database";
public static readonly connectionTypeDescription_mysql = "MySQL database";
public static readonly connectionTypeDescription_mongodb = "MongoDB database";
public static readonly connectionTypeDescription_mariadb = "MariaDB database";
public static readonly connectionTypeDescription_salesforce = "SalesForce";

public static readonly schemaNodeType_connection = "connection";

Expand Down
Binary file added ngapp/src/assets/salesforce_40x40.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b56976c

Please sign in to comment.