Search in sources :

Example 1 with SalesforceConnectionProperties

use of org.talend.components.salesforce.SalesforceConnectionProperties in project tdi-studio-se by Talend.

the class RepositoryUpdateTest method setupPropertiesWithProxy.

private void setupPropertiesWithProxy(String id) {
    SalesforceConnectionProperties sfp = new SalesforceConnectionProperties("test");
    sfp.init();
    sfp.loginType.setValue(SalesforceConnectionProperties.LoginType.Basic);
    sfp.userPassword.userId.setStoredValue("myUser");
    sfp.userPassword.password.setStoredValue("myPassword");
    sfp.proxy.useProxy.setStoredValue(Boolean.TRUE);
    sfp.proxy.host.setStoredValue("host");
    sfp.proxy.port.setStoredValue(1234);
    sfp.proxy.userPassword.userId.setStoredValue("proxyUser");
    sfp.proxy.userPassword.password.setStoredValue("proxyPassword");
    GenericRepository gr = new GenericRepository();
    gr.storeProperties(sfp, "test", id, null);
}
Also used : GenericRepository(org.talend.repository.generic.persistence.GenericRepository) SalesforceConnectionProperties(org.talend.components.salesforce.SalesforceConnectionProperties)

Example 2 with SalesforceConnectionProperties

use of org.talend.components.salesforce.SalesforceConnectionProperties in project tdi-studio-se by Talend.

the class RepositoryUpdateTest method setupPropertiesWithProxyEmptyVars.

private void setupPropertiesWithProxyEmptyVars(String id) {
    SalesforceConnectionProperties sfp = new SalesforceConnectionProperties("test");
    sfp.init();
    sfp.loginType.setValue(SalesforceConnectionProperties.LoginType.Basic);
    sfp.userPassword.userId.setStoredValue("myUser");
    sfp.userPassword.password.setStoredValue("myPassword");
    sfp.proxy.useProxy.setStoredValue(Boolean.TRUE);
    sfp.proxy.host.setStoredValue(null);
    sfp.proxy.port.setStoredValue(null);
    sfp.proxy.userPassword.userId.setStoredValue(null);
    sfp.proxy.userPassword.password.setStoredValue(null);
    GenericRepository gr = new GenericRepository();
    gr.storeProperties(sfp, "test", id, null);
}
Also used : GenericRepository(org.talend.repository.generic.persistence.GenericRepository) SalesforceConnectionProperties(org.talend.components.salesforce.SalesforceConnectionProperties)

Example 3 with SalesforceConnectionProperties

use of org.talend.components.salesforce.SalesforceConnectionProperties in project tdi-studio-se by Talend.

the class RepositoryUpdateTest method setupPropertiesWithoutProxy.

private void setupPropertiesWithoutProxy(String id) {
    SalesforceConnectionProperties sfp = new SalesforceConnectionProperties("test");
    sfp.init();
    sfp.loginType.setValue(SalesforceConnectionProperties.LoginType.Basic);
    sfp.userPassword.userId.setStoredValue("myUser");
    sfp.userPassword.password.setStoredValue("myPassword");
    GenericRepository gr = new GenericRepository();
    gr.storeProperties(sfp, "test", id, null);
}
Also used : GenericRepository(org.talend.repository.generic.persistence.GenericRepository) SalesforceConnectionProperties(org.talend.components.salesforce.SalesforceConnectionProperties)

Aggregations

SalesforceConnectionProperties (org.talend.components.salesforce.SalesforceConnectionProperties)3 GenericRepository (org.talend.repository.generic.persistence.GenericRepository)3