public class MsDynamicsWrapper extends Object
Constructor and Description |
---|
MsDynamicsWrapper(String hostName,
String organization,
String user,
String password)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connects the CRM 2011 Online
|
String |
getCrmTicket() |
String |
getHost() |
String |
getLiveId() |
String |
getOrganization() |
String |
getPassword() |
String |
getPolicy() |
String |
getUsername() |
String |
login()
Logs into the MS CRM 2011 Online
|
String |
retrieveCrmTicket()
Retrieves the CRM ticket
|
int |
retrieveMultiple(String entity,
String[] columns,
String csvFile)
Retrieves data from the CRM 2011 Online
|
protected com.gooddata.msdynamics.MsDynamicsWrapper.RetrievePageInfo |
retrievePage(String entity,
String[] columns,
int pageNumber,
String cookie,
List<Map<String,String>> ret)
Retrieves a single page of RetrieveMultiple result
|
String |
retrievePolicy()
Retrieves the MS CRM 2011 policy
|
void |
setCrmTicket(String crmTicket) |
void |
setHost(String host) |
void |
setLiveId(String l) |
void |
setOrganization(String organization) |
void |
setPassword(String password) |
void |
setPolicy(String policy) |
void |
setUsername(String username) |
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 retrievePolicy() 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 String retrieveCrmTicket() 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 retrieveMultiple(String entity, String[] columns, String csvFile) throws IOException, javax.xml.soap.SOAPException, org.jaxen.JaxenException
entity
- CRM 2011 entity (e.g. account or opportunity)columns
- Entity fields (e.g. accountid, name etc.)csvFile
- name of the CSV file where the results will be storedorg.jaxen.JaxenException
- issue with the response formatIOException
- generic IO issuejavax.xml.soap.SOAPException
- issue with SOAP invocationprotected com.gooddata.msdynamics.MsDynamicsWrapper.RetrievePageInfo retrievePage(String entity, String[] columns, int pageNumber, String cookie, List<Map<String,String>> ret) throws IOException, javax.xml.soap.SOAPException, org.jaxen.JaxenException
entity
- CRM 2011 entity (e.g. account or opportunity)columns
- Entity fields (e.g. accountid, name etc.)pageNumber
- the result page number (1..N)cookie
- API paging cookieret
- the List of Maps that will be populated with the dataorg.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 String getHost()
public void setHost(String host)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public String getOrganization()
public void setOrganization(String organization)
public String getPolicy()
public void setPolicy(String policy)
public String getLiveId()
public void setLiveId(String l)
public String getCrmTicket()
public void setCrmTicket(String crmTicket)
Copyright © 2014. All rights reserved.