public static final class ImportExport.RealEstateService extends Object
The RealEstate Webservice is used in the Import-/Export-API to get / add / edit / remove real estate objects.
Modifier and Type | Method and Description |
---|---|
static Messages |
deleteByExternalId(AbstractClient client,
String externalRealEstateId)
Calls the DELETEbyID method of the RealEstate Webservice.
|
static Messages |
deleteByIs24Id(AbstractClient client,
long is24RealEstateId)
Calls the DELETEbyID method of the RealEstate Webservice.
|
static RealEstates |
getAll(AbstractClient client,
String inPublishChannel,
String notInPublishChannel,
int pageSize,
int pageNumber,
boolean archivedObjectsIncluded)
Calls the GETall method of the RealEstate Webservice.
|
static RealEstate |
getByExternalId(AbstractClient client,
String externalRealEstateId)
Calls the GETbyID method of the RealEstate Webservice.
|
static RealEstate |
getByIs24Id(AbstractClient client,
long is24RealEstateId)
Calls the GETbyID method of the RealEstate Webservice.
|
static long |
post(AbstractClient client,
RealEstate realEstate)
Calls the POST method of the RealEstate Webservice.
|
static long |
post(AbstractClient client,
RealEstate realEstate,
boolean useNewEnergySourceEnev2014Values)
Calls the POST method of the RealEstate Webservice.
|
static Messages |
putByExternalId(AbstractClient client,
RealEstate realEstate,
String externalRealEstateId)
Calls the PUTbyID method of the RealEstate Webservice.
|
static Messages |
putByExternalId(AbstractClient client,
RealEstate realEstate,
String externalRealEstateId,
boolean useNewEnergySourceEnev2014Values)
Calls the PUTbyID method of the RealEstate Webservice.
|
static Messages |
putByIs24Id(AbstractClient client,
RealEstate realEstate,
long is24RealEstateId)
Calls the PUTbyID method of the RealEstate Webservice.
|
static Messages |
putByIs24Id(AbstractClient client,
RealEstate realEstate,
long is24RealEstateId,
boolean useNewEnergySourceEnev2014Values)
Calls the PUTbyID method of the RealEstate Webservice.
|
public static Messages deleteByExternalId(AbstractClient client, String externalRealEstateId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method removes a real estate object.
client
- AbstractClient
, that is used to communicate with the WebserviceexternalRealEstateId
- user defined ID of the real estate object to removeIOException
- 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 is24RealEstateId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method removes a real estate object.
client
- AbstractClient
, that is used to communicate with the Webserviceis24RealEstateId
- ID of the real estate object to remove, that was returned by
post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.realestates.RealEstate)
IOException
- 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 RealEstates getAll(AbstractClient client, String inPublishChannel, String notInPublishChannel, int pageSize, int pageNumber, boolean archivedObjectsIncluded) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns the list of real estate objects for the agency.
client
- AbstractClient
, that is used to communicate with the WebserviceinPublishChannel
- the name of the publish channel to look for propertiesnotInPublishChannel
- the name of the publish channel not to look for propertiespageSize
- the number of properties per page (from min 1 until max 100, default 20)pageNumber
- the page number to return (starts with 1, default 1)archivedObjectsIncluded
- include archived objects into the resultIOException
- 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 RealEstate getByExternalId(AbstractClient client, String externalRealEstateId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns a specific real estate object.
client
- AbstractClient
, that is used to communicate with the WebserviceexternalRealEstateId
- user defined ID of the real estate object to retrieveIOException
- 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 RealEstate getByIs24Id(AbstractClient client, long is24RealEstateId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns a specific real estate object.
client
- AbstractClient
, that is used to communicate with the Webserviceis24RealEstateId
- ID of the real estate object to retrieve, that was returned by
post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.realestates.RealEstate)
IOException
- 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, RealEstate realEstate) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method stores a new real estate object.
client
- AbstractClient
, that is used to communicate with the WebservicerealEstate
- real estate object to storeIOException
- 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, RealEstate realEstate, boolean useNewEnergySourceEnev2014Values) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method stores a new real estate object.
client
- AbstractClient
, that is used to communicate with the WebservicerealEstate
- real estate object to storeuseNewEnergySourceEnev2014Values
- tells the Webservice to make use of all values for "energySourceEnev2014"
as described here
(true by default)IOException
- 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, RealEstate realEstate, String externalRealEstateId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method updates a real estate object.
client
- AbstractClient
, that is used to communicate with the WebservicerealEstate
- real estate object to updateexternalRealEstateId
- user defined ID of the real estate object to updateIOException
- 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, RealEstate realEstate, String externalRealEstateId, boolean useNewEnergySourceEnev2014Values) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method updates a real estate object.
client
- AbstractClient
, that is used to communicate with the WebservicerealEstate
- real estate object to updateexternalRealEstateId
- user defined ID of the real estate object to updateuseNewEnergySourceEnev2014Values
- tells the Webservice to make use of all values for "energySourceEnev2014"
as described here
(true by default)IOException
- 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, RealEstate realEstate, long is24RealEstateId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method updates a real estate object.
client
- AbstractClient
, that is used to communicate with the WebservicerealEstate
- real estate object to updateis24RealEstateId
- ID of the real estate object to update, that was returned by
post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.realestates.RealEstate)
IOException
- 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, RealEstate realEstate, long is24RealEstateId, boolean useNewEnergySourceEnev2014Values) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method updates a real estate object.
client
- AbstractClient
, that is used to communicate with the WebservicerealEstate
- real estate object to updateis24RealEstateId
- ID of the real estate object to update, that was returned by
post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.realestates.RealEstate)
useNewEnergySourceEnev2014Values
- tells the Webservice to make use of all values for "energySourceEnev2014"
as described here
(true by default)IOException
- 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.