public final class MessageMetaData
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
META_DATA_CONTEXT_KEY
Key used to store this information in the process context.
|
| Constructor and Description |
|---|
MessageMetaData()
Creates a new instance of the message metadata.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getCode()
Gets the code of the message in the database table.
|
GenericCodedException |
getException()
Gets an exception caused during the processing of this message.
|
java.security.cert.X509Certificate |
getHttpCertificate()
Gets the user's http X.509 Certificate.
|
java.lang.String |
getMessageType()
Gets the message type.
|
java.lang.String |
getOwner()
Returns current message's data owner.
|
java.lang.String |
getRejectText()
Gets the reject text of the message.
|
java.lang.String |
getRemoteUser()
Gets the remote user identification (from http request).
|
java.util.Calendar |
getServerTimestamp()
Gets the timestamp when the message is received by the server.
|
java.security.cert.X509Certificate |
getSignatureCertificate()
Gets the certificate used in the signature.
|
EnumMessageStatus |
getStatus()
Gets the status of the message (OK, FAILED).
|
java.util.List<java.lang.String> |
getUserRoles()
Gets the user's list of roles.
|
boolean |
isIgnorable()
Returns
true if the message must be ignored. |
void |
setCode(java.lang.Long inCode)
Sets the code of the message when it is stored.
|
void |
setException(GenericCodedException ex)
Sets an exception caused during the processing of this message.
|
void |
setHttpCertificate(java.security.cert.X509Certificate x509Certificate)
Sets the http X.509 Certificate.
|
void |
setIgnorable(boolean ign)
Sets if the message must be ignored.
|
void |
setMessageType(java.lang.String type)
Sets the message type.
|
void |
setOwner(java.lang.String own)
Sets current message's data owner.
|
void |
setRejectText(java.lang.String inRejectText)
Sets the reject text of the message.
|
void |
setRemoteUser(java.lang.String inRemoteUser)
Sets the remote user identification (from http request).
|
void |
setServerTimestamp(java.util.Calendar date)
Sets the timestamp when the message is received by the server.
|
void |
setSignatureCertificate(java.security.cert.X509Certificate x509Certificate)
Sets the certificate used for signature.
|
void |
setStatus(EnumMessageStatus inStatus)
Sets the status of the message (OK, FAILED).
|
void |
setUserRoles(java.util.List<java.lang.String> inRoles)
Sets the user's list of roles.
|
public static final java.lang.String META_DATA_CONTEXT_KEY
public MessageMetaData()
public java.lang.String getOwner()
public void setOwner(java.lang.String own)
own - Current message's data owner.public java.util.Calendar getServerTimestamp()
public void setServerTimestamp(java.util.Calendar date)
date - Date when the message is received by the server.public java.security.cert.X509Certificate getHttpCertificate()
public void setHttpCertificate(java.security.cert.X509Certificate x509Certificate)
x509Certificate - Http X.509 Certificate.public void setSignatureCertificate(java.security.cert.X509Certificate x509Certificate)
x509Certificate - Certificate used for signature.public java.security.cert.X509Certificate getSignatureCertificate()
public java.lang.String getRemoteUser()
public void setRemoteUser(java.lang.String inRemoteUser)
inRemoteUser - Remote user identification.public java.util.List<java.lang.String> getUserRoles()
public void setUserRoles(java.util.List<java.lang.String> inRoles)
inRoles - User's list of roles.public java.lang.Long getCode()
public void setCode(java.lang.Long inCode)
inCode - Message's code.public java.lang.String getMessageType()
public void setMessageType(java.lang.String type)
type - Message type.public void setException(GenericCodedException ex)
ex - Exception caused during the processing of this message.public GenericCodedException getException()
public EnumMessageStatus getStatus()
public void setStatus(EnumMessageStatus inStatus)
inStatus - Status of the message.public java.lang.String getRejectText()
null if the message was accepted.public void setRejectText(java.lang.String inRejectText)
inRejectText - Reject text of the message.public boolean isIgnorable()
true if the message must be ignored. false otherwise.true if any futher process of this message must be skipped. false otherwise.public void setIgnorable(boolean ign)
ign - true if the message must be ignored. false otherwise.