public class SugarCrmWrapper extends Object
Constructor and Description |
---|
SugarCrmWrapper(String hostName,
String user,
String password)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connects the Sugar CRM Online
|
int |
getAllEntries(String module,
String[] fields,
String[] linked_fields,
String query,
String csvFile) |
int |
getEntries(String module,
String[] fields,
String[] linked_fields,
String query,
int offset,
List<Map<String,String>> ret) |
String |
getHost() |
String |
getPassword() |
String |
getPasswordMD5() |
String |
getSessionToken() |
String |
getUsername() |
String |
login()
Logs into the MS Sugar CRM Online
|
static void |
main(String[] arg) |
void |
setHost(String host) |
void |
setPassword(String password) |
void |
setSessionToken(String sessionToken) |
void |
setUsername(String username) |
public int getAllEntries(String module, String[] fields, String[] linked_fields, String query, String csvFile) throws IOException, javax.xml.soap.SOAPException, org.jaxen.JaxenException
IOException
javax.xml.soap.SOAPException
org.jaxen.JaxenException
public void connect() throws org.jaxen.JaxenException, IOException, javax.xml.soap.SOAPException
org.jaxen.JaxenException
- issue with the response formatIOException
- generic IO issuejavax.xml.soap.SOAPException
- issue with SOAP invocationpublic String login() throws IOException, javax.xml.soap.SOAPException, org.jaxen.JaxenException
org.jaxen.JaxenException
- issue with the response formatIOException
- generic IO issuejavax.xml.soap.SOAPException
- issue with SOAP invocationpublic int getEntries(String module, String[] fields, String[] linked_fields, String query, int offset, List<Map<String,String>> ret) throws IOException, javax.xml.soap.SOAPException, org.jaxen.JaxenException
IOException
javax.xml.soap.SOAPException
org.jaxen.JaxenException
public String getHost()
public void setHost(String host)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public String getPasswordMD5()
public void setPassword(String password)
public String getSessionToken()
public void setSessionToken(String sessionToken)
Copyright © 2014. All rights reserved.