public interface SFDCService
Modifier and Type | Method and Description |
---|---|
String |
createOrUpdateLead(Profile profile)
Create or update a lead based on a Unomi profile.
|
Set<String> |
findLeadIdsByIdentifierValue(String identifierFieldValue) |
Map<String,Object> |
getLead(String leadId) |
Map<String,Object> |
getLimits() |
Set<String> |
getRecentLeadIds() |
SFDCSession |
getSFDCSession() |
SFDCConfiguration |
loadConfiguration()
Load the configuration from the persistence service (if it exists)
|
boolean |
login(SFDCConfiguration sfdcConfiguration)
Login into Salesforce using the configuration passed in the methods arguments.
|
void |
logout() |
Map<String,Object> |
query(String query) |
boolean |
saveConfiguration(SFDCConfiguration sfdcConfiguration)
Save a Salesforce configuration into the persistence service
|
boolean |
updateProfileFromLead(Profile profile)
Updates a Unomi profile from a Salesforce lead
|
SFDCConfiguration loadConfiguration()
boolean saveConfiguration(SFDCConfiguration sfdcConfiguration)
sfdcConfiguration
- the configuration to persistboolean login(SFDCConfiguration sfdcConfiguration) throws org.apache.http.HttpException, IOException
sfdcConfiguration
- the configuration to use for the loginorg.apache.http.HttpException
- thrown if there was an error communicating with the Salesforce serverIOException
- thrown if there was an error communicating with the Salesforce serverSFDCSession getSFDCSession()
void logout()
String createOrUpdateLead(Profile profile)
profile
- the Unomi profile to use to update leadsboolean updateProfileFromLead(Profile profile)
profile
- the profile to update with the data coming from the leadCopyright © 2014–2023 Apache Software Foundation. All rights reserved.