public static final class ImportExport.PublishService extends Object
The Publish Webservice is used in the Import-/Export-API to publish / unpublish a real estate object.
| Modifier and Type | Method and Description |
|---|---|
static Messages |
delete(AbstractClient client,
String is24PublishId)
Calls the DELETEbyID method of the Publish Webservice.
|
static PublishObjects |
delete(AbstractClient client,
String[] is24PublishIds)
Calls the DELETEbyList method of the Publish Webservice.
|
static Messages |
deleteById(AbstractClient client,
String is24PublishId)
Deprecated.
|
static PublishObjects |
get(AbstractClient client,
long is24RealEstateIdId,
long is24PublishChannelId)
Calls the GET method of the Publish Webservice.
|
static PublishObject |
getById(AbstractClient client,
String is24PublishId)
Calls the GETbyID method of the Publish Webservice.
|
static String |
post(AbstractClient client,
PublishObject publishObject)
Calls the POSTbyID method of the Publish Webservice.
|
static PublishObjects |
post(AbstractClient client,
PublishObjects publishObjects)
Calls the POST method of the Publish Webservice.
|
public static Messages delete(AbstractClient client, String is24PublishId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method removes the attribution of a real estate object to a publish channel.
client - AbstractClient, that is used to communicate with the Webserviceis24PublishId - the unique publishing ID, that was returned by
post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.common.PublishObject),
for which the publishing 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 PublishObjects delete(AbstractClient client, String[] is24PublishIds) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method removes the attribution of a real estate object to a publish channel.
client - AbstractClient, that is used to communicate with the Webserviceis24PublishIds - list of unique publishing ID's, that were returned by
post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.common.PublishObject),
for which the publishing are 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 message@Deprecated public static Messages deleteById(AbstractClient client, String is24PublishId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
delete(org.openestate.is24.restapi.AbstractClient, java.lang.String) insteadThis method removes the attribution of a real estate object to a publish channel.
client - AbstractClient, that is used to communicate with the Webserviceis24PublishId - the unique publishing ID, that was returned by
post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.common.PublishObject),
for which the publishing 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 PublishObjects get(AbstractClient client, long is24RealEstateIdId, long is24PublishChannelId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns a list of the publish channels, where a real estate object is published.
client - AbstractClient, that is used to communicate with the Webserviceis24RealEstateIdId - ID of the real estate object, that was returned by
ImportExport.RealEstateService.post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.realestates.RealEstate),
for which the publishing are retrievedis24PublishChannelId - the ID of a certain publish channel (optional, default 0)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 PublishObject getById(AbstractClient client, String is24PublishId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns a specific publish channel, where a real estate object is published.
client - AbstractClient, that is used to communicate with the Webserviceis24PublishId - the unique publishing ID, that was returned by
post(org.openestate.is24.restapi.AbstractClient, org.openestate.is24.restapi.xml.common.PublishObject),
for which the publishing 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 String post(AbstractClient client, PublishObject publishObject) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method publishes a real estate object into a publish channel.
client - AbstractClient, that is used to communicate with the WebservicepublishObject - publishing 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 PublishObjects post(AbstractClient client, PublishObjects publishObjects) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method publishes mulitple real estate objects at once.
client - AbstractClient, that is used to communicate with the WebservicepublishObjects - publishings 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 messageCopyright © 2014 OpenEstate. All rights reserved.