public static final class ImportExport.AttachmentService extends Object
The Attachment Webservice is used in the Import-/Export-API to get / add / edit / remove attachments of a real estate object.
Modifier and Type | Method and Description |
---|---|
static Messages |
deleteById(AbstractClient client,
long is24RealEstateIdId,
long is24AttachmentId)
Calls the DELETEbyID method of the Attachment Webservice.
|
static Messages |
deleteById(AbstractClient client,
String externalRealEstateId,
long is24AttachmentId)
Calls the DELETEbyID method of the Attachment Webservice.
|
static Attachments |
getAll(AbstractClient client,
long is24RealEstateIdId)
Calls the GETall method of the Attachment Webservice.
|
static Attachments |
getAll(AbstractClient client,
String externalRealEstateId)
Calls the GETall method of the Attachment Webservice.
|
static Attachment |
getById(AbstractClient client,
long is24RealEstateIdId,
long is24AttachmentId)
Calls the GETbyID method of the Attachment Webservice.
|
static Attachment |
getById(AbstractClient client,
long is24RealEstateIdId,
String externalAttachmentId)
Calls the GETbyID method of the Attachment Webservice.
|
static Attachment |
getById(AbstractClient client,
String externalRealEstateId,
long is24AttachmentId)
Calls the GETbyID method of the Attachment Webservice.
|
static Attachment |
getById(AbstractClient client,
String externalRealEstateId,
String externalAttachmentId)
Calls the GETbyID method of the Attachment Webservice.
|
static long |
post(AbstractClient client,
long is24RealEstateIdId,
Attachment attachment,
InputStream input,
String fileName,
String mimeType)
Calls the POST method of the Attachment Webservice.
|
static long |
post(AbstractClient client,
String externalRealEstateId,
Attachment attachment,
InputStream input,
String fileName,
String mimeType)
Calls the POST method of the Attachment Webservice.
|
static Messages |
putById(AbstractClient client,
long is24RealEstateIdId,
long is24AttachmentId,
Attachment attachment)
Calls the PUTbyID method of the Attachment Webservice.
|
static Messages |
putById(AbstractClient client,
String externalRealEstateId,
long is24AttachmentId,
Attachment attachment)
Calls the PUTbyID method of the Attachment Webservice.
|
public static Messages deleteById(AbstractClient client, String externalRealEstateId, long is24AttachmentId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method removes the attachment of a real estate object.
client
- AbstractClient
, that is used to communicate with the WebserviceexternalRealEstateId
- user defined ID of the real estate object, for which the attachment is
removedis24AttachmentId
- ID of the attachment to remove, that was returned by
post(org.openestate.is24.restapi.AbstractClient, java.lang.String, org.openestate.is24.restapi.xml.common.Attachment, java.io.InputStream, java.lang.String, java.lang.String)
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 deleteById(AbstractClient client, long is24RealEstateIdId, long is24AttachmentId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method removes the attachment of a real estate object.
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 attachment is removedis24AttachmentId
- ID of the attachment to remove, that was returned by
post(org.openestate.is24.restapi.AbstractClient, long, org.openestate.is24.restapi.xml.common.Attachment, java.io.InputStream, java.lang.String, java.lang.String)
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 Attachments getAll(AbstractClient client, String externalRealEstateId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns the list of attachments for a real estate object.
client
- AbstractClient
, that is used to communicate with the WebserviceexternalRealEstateId
- user defined ID of the real estate object, for which the list of
attachments 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 Attachments getAll(AbstractClient client, long is24RealEstateIdId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns the list of attachments for a real estate object.
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 list of attachments 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 Attachment getById(AbstractClient client, String externalRealEstateId, long is24AttachmentId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns a specific attachment for a real estate object.
client
- AbstractClient
, that is used to communicate with the WebserviceexternalRealEstateId
- user defined ID of the real estate object, for which the attachment is
retrievedis24AttachmentId
- ID of the requested attachment, that was returned by
post(org.openestate.is24.restapi.AbstractClient, java.lang.String, org.openestate.is24.restapi.xml.common.Attachment, java.io.InputStream, java.lang.String, java.lang.String)
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 Attachment getById(AbstractClient client, String externalRealEstateId, String externalAttachmentId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns a specific attachment for a real estate object.
client
- AbstractClient
, that is used to communicate with the WebserviceexternalRealEstateId
- user defined ID of the real estate object, for which the attachment is
retrievedexternalAttachmentId
- user defined ID of the attachment 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 Attachment getById(AbstractClient client, long is24RealEstateIdId, long is24AttachmentId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns a specific attachment for a real estate object.
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 attachment is retrievedis24AttachmentId
- ID of the requested attachment, that was returned by
post(org.openestate.is24.restapi.AbstractClient, long, org.openestate.is24.restapi.xml.common.Attachment, java.io.InputStream, java.lang.String, java.lang.String)
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 Attachment getById(AbstractClient client, long is24RealEstateIdId, String externalAttachmentId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns a specific attachment for a real estate object.
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 attachment is retrievedexternalAttachmentId
- user defined ID of the attachment 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 long post(AbstractClient client, String externalRealEstateId, Attachment attachment, InputStream input, String fileName, String mimeType) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method stores a new attachment for a specific real estate object.
client
- AbstractClient
, that is used to communicate with the WebserviceexternalRealEstateId
- user defined ID of the real estate object, for which the attachment is
storedattachment
- details about the attachmentinput
- InputStream
with the file content of the attachmentfileName
- file name of the attachmentmimeType
- MIME type of the attachmentIOException
- 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, long is24RealEstateIdId, Attachment attachment, InputStream input, String fileName, String mimeType) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method stores a new attachment for a specific real estate object.
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 attachment is storedattachment
- details about the attachmentinput
- InputStream
with the file content of the attachmentfileName
- file name of the attachmentmimeType
- MIME type of the attachmentIOException
- 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 putById(AbstractClient client, String externalRealEstateId, long is24AttachmentId, Attachment attachment) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method updates the informations about an attachment for a specific real estate object.
This method only updates the metadata of an attachment. If the file content itself has changed, a new POST request must be executed.
client
- AbstractClient
, that is used to communicate with the WebserviceexternalRealEstateId
- user defined ID of the real estate object, for which the attachment is
updatedis24AttachmentId
- ID of the attachment to update, that was returned by
post(org.openestate.is24.restapi.AbstractClient, java.lang.String, org.openestate.is24.restapi.xml.common.Attachment, java.io.InputStream, java.lang.String, java.lang.String)
attachment
- details about the attachmentIOException
- 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 putById(AbstractClient client, long is24RealEstateIdId, long is24AttachmentId, Attachment attachment) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method updates the informations about an attachment for a specific real estate object.
This method only updates the metadata of an attachment. If the file content itself has changed, a new POST request must be executed.
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 attachment is updatedis24AttachmentId
- ID of the attachment to update, that was returned by
post(org.openestate.is24.restapi.AbstractClient, long, org.openestate.is24.restapi.xml.common.Attachment, java.io.InputStream, java.lang.String, java.lang.String)
attachment
- details about the attachmentIOException
- 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.