public static final class ImportExport.ContactAddressService extends Object
The Contact Webservice is used in the Import-/Export-API to get / add / edit / remove contact informations of a real estate object.
Modifier and Type | Method and Description |
---|---|
static Messages |
deleteByExternalId(AbstractClient client,
String externalContactId)
Calls the DELETEbyID method of the Contact Webservice.
|
static Messages |
deleteByExternalId(AbstractClient client,
String externalContactId,
String assignToExternalContactId)
Calls the DELETEbyID method of the Contact Webservice.
|
static Messages |
deleteByIs24Id(AbstractClient client,
long is24ContactId)
Calls the DELETEbyID method of the Contact Webservice.
|
static Messages |
deleteByIs24Id(AbstractClient client,
long is24ContactId,
long assignToIs24ContactId)
Calls the DELETEbyID method of the Contact Webservice.
|
static RealtorContactDetailsList |
getAll(AbstractClient client)
Calls the GETall method of the Contact Webservice.
|
static RealtorContactDetails |
getByExternalId(AbstractClient client,
String externalContactId)
Calls the GETbyID method of the Contact Webservice.
|
static RealtorContactDetails |
getByIs24Id(AbstractClient client,
long is24ContactId)
Calls the GETbyID method of the Contact Webservice.
|
static long |
post(AbstractClient client,
RealtorContactDetails contact)
Calls the POST method of the Contact Webservice.
|
static Messages |
putByExternalId(AbstractClient client,
RealtorContactDetails contact,
String externalContactId)
Calls the PUTbyID method of the Contact Webservice.
|
static Messages |
putByIs24Id(AbstractClient client,
RealtorContactDetails contact,
long is24ContactId)
Calls the PUTbyID method of the Contact Webservice.
|
public static Messages deleteByExternalId(AbstractClient client, String externalContactId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method removes a contact person.
client
- AbstractClient
, that is used to communicate with the WebserviceexternalContactId
- user defined ID of the contact, for which the contact is removedIOException
- if communication with the Webservice failedoauth.signpost.exception.OAuthException
- if authorization failedJAXBException
- if XML reading / writing failedRequestFailedException
- if the Webservice did not respond with a success messagepublic static Messages deleteByExternalId(AbstractClient client, String externalContactId, String assignToExternalContactId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method removes a contact person.
client
- AbstractClient
, that is used to communicate with the WebserviceexternalContactId
- user defined ID of the contact, for which the contact is removedassignToExternalContactId
- user defined ID of another contact, where real estates of the removed
contact are assigned toIOException
- if communication with the Webservice failedoauth.signpost.exception.OAuthException
- if authorization failedJAXBException
- if XML reading / writing failedRequestFailedException
- if the Webservice did not respond with a success messagepublic static Messages deleteByIs24Id(AbstractClient client, long is24ContactId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method removes a contact person.
client
- AbstractClient
, that is used to communicate with the Webserviceis24ContactId
- ID of the contact object, that was returned by
post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.common.RealtorContactDetails)
,
for which the contact is removedIOException
- if communication with the Webservice failedoauth.signpost.exception.OAuthException
- if authorization failedJAXBException
- if XML reading / writing failedRequestFailedException
- if the Webservice did not respond with a success messagepublic static Messages deleteByIs24Id(AbstractClient client, long is24ContactId, long assignToIs24ContactId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method removes a contact person.
client
- AbstractClient
, that is used to communicate with the Webserviceis24ContactId
- ID of the contact object, that was returned by
post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.common.RealtorContactDetails)
,
for which the contact is removedassignToIs24ContactId
- ID of the contact object, that was returned by
post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.common.RealtorContactDetails)
,
where real estates of the removed contact are assigned toIOException
- if communication with the Webservice failedoauth.signpost.exception.OAuthException
- if authorization failedJAXBException
- if XML reading / writing failedRequestFailedException
- if the Webservice did not respond with a success messagepublic static RealtorContactDetailsList getAll(AbstractClient client) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns the list of contacts for the agency.
client
- AbstractClient
, that is used to communicate with the WebserviceIOException
- if communication with the Webservice failedoauth.signpost.exception.OAuthException
- if authorization failedJAXBException
- if XML reading / writing failedRequestFailedException
- if the Webservice did not respond with a success messagepublic static RealtorContactDetails getByExternalId(AbstractClient client, String externalContactId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns a specific contact for the agency.
client
- AbstractClient
, that is used to communicate with the WebserviceexternalContactId
- user defined ID of the contact, for which the contact is retrievedIOException
- if communication with the Webservice failedoauth.signpost.exception.OAuthException
- if authorization failedJAXBException
- if XML reading / writing failedRequestFailedException
- if the Webservice did not respond with a success messagepublic static RealtorContactDetails getByIs24Id(AbstractClient client, long is24ContactId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns a specific contact for the agency.
client
- AbstractClient
, that is used to communicate with the Webserviceis24ContactId
- ID of the contact object, that was returned by
post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.common.RealtorContactDetails)
,
for which the contact is retrievedIOException
- if communication with the Webservice failedoauth.signpost.exception.OAuthException
- if authorization failedJAXBException
- if XML reading / writing failedRequestFailedException
- if the Webservice did not respond with a success messagepublic static long post(AbstractClient client, RealtorContactDetails contact) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method stores a new contact for the agency.
client
- AbstractClient
, that is used to communicate with the Webservicecontact
- contact to setIOException
- if communication with the Webservice failedoauth.signpost.exception.OAuthException
- if authorization failedJAXBException
- if XML reading / writing failedRequestFailedException
- if the Webservice did not respond with a success messagepublic static Messages putByExternalId(AbstractClient client, RealtorContactDetails contact, String externalContactId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method updates a specific contact for the agency.
client
- AbstractClient
, that is used to communicate with the Webservicecontact
- contact to setexternalContactId
- user defined ID of the contact, for which contact is updatedIOException
- if communication with the Webservice failedoauth.signpost.exception.OAuthException
- if authorization failedJAXBException
- if XML reading / writing failedRequestFailedException
- if the Webservice did not respond with a success messagepublic static Messages putByIs24Id(AbstractClient client, RealtorContactDetails contact, long is24ContactId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method updates a specific contact for the agency.
client
- AbstractClient
, that is used to communicate with the Webservicecontact
- contact to setis24ContactId
- ID of the contact object, that was returned by
post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.common.RealtorContactDetails)
,
for which the contact is updatedIOException
- if communication with the Webservice failedoauth.signpost.exception.OAuthException
- if authorization failedJAXBException
- if XML reading / writing failedRequestFailedException
- if the Webservice did not respond with a success messageCopyright © 2014 OpenEstate. All rights reserved.