public class ExportMessage extends Object implements Serializable
The ExportMessage
is part of the high level API for bulk exports of
real estate data.
Modifier and Type | Class and Description |
---|---|
static class |
ExportMessage.Code
Supported message codes.
|
static class |
ExportMessage.Level
Supported message levels.
|
Modifier and Type | Method and Description |
---|---|
ExportMessage.Code |
getCode()
Return message code.
|
String |
getContactId()
Return the contact ID, that this message is assigned to.
|
String |
getErrorRequestRefNumber()
Return the unique identifier of the failed HTTP request.
|
ExportMessage.Level |
getLevel()
Return message level.
|
String |
getMessage()
Return message text.
|
String |
getObjectId()
Return the real estate ID, that this message is assigned to.
|
boolean |
isError()
Check, if the message is an error.
|
boolean |
isGeneral()
Check, if the message is assigned to a certain object.
|
boolean |
isNotice()
Check, if the message is a notice.
|
boolean |
isWarning()
Check, if the message is a warning.
|
static ExportMessage |
newContactMessage(String contactId,
ExportMessage.Code code,
String message)
Create a message for a contact person.
|
static ExportMessage |
newContactMessage(String contactId,
ExportMessage.Code code,
String message,
String errorRequestRefNumber)
Create a message for a contact person.
|
static ExportMessage |
newGeneralMessage(String message,
ExportMessage.Code code)
Create a general message.
|
static ExportMessage |
newGeneralMessage(String message,
ExportMessage.Code code,
String errorRequestRefNumber)
Create a general message.
|
static ExportMessage |
newObjectMessage(String objectId,
ExportMessage.Code code,
String message)
Create a message for a real estate.
|
static ExportMessage |
newObjectMessage(String objectId,
ExportMessage.Code code,
String message,
String errorRequestRefNumber)
Create a message for a real estate.
|
public ExportMessage.Code getCode()
public String getContactId()
public String getErrorRequestRefNumber()
This values was passed through the L-IS24-RequestRefnum header of the HTTP response.
public ExportMessage.Level getLevel()
public String getMessage()
public String getObjectId()
public boolean isError()
public boolean isGeneral()
public boolean isNotice()
public boolean isWarning()
public static ExportMessage newContactMessage(String contactId, ExportMessage.Code code, String message)
contactId
- contact IDcode
- message codemessage
- message textpublic static ExportMessage newContactMessage(String contactId, ExportMessage.Code code, String message, String errorRequestRefNumber)
contactId
- contact IDcode
- message codemessage
- message texterrorRequestRefNumber
- unique identifier of the failed HTTP requestpublic static ExportMessage newGeneralMessage(String message, ExportMessage.Code code)
code
- message codemessage
- message textpublic static ExportMessage newGeneralMessage(String message, ExportMessage.Code code, String errorRequestRefNumber)
code
- message codemessage
- message texterrorRequestRefNumber
- unique identifier of the failed HTTP requestpublic static ExportMessage newObjectMessage(String objectId, ExportMessage.Code code, String message)
objectId
- real estate IDcode
- message codemessage
- message textpublic static ExportMessage newObjectMessage(String objectId, ExportMessage.Code code, String message, String errorRequestRefNumber)
objectId
- real estate IDcode
- message codemessage
- message texterrorRequestRefNumber
- unique identifier of the failed HTTP requestCopyright © 2016 OpenEstate. All rights reserved.