Package com.prowidesoftware.swift.model
Class SwiftMessageRevision
- java.lang.Object
-
- com.prowidesoftware.swift.model.SwiftMessageRevision
-
@Entity public class SwiftMessageRevision extends java.lang.Object
A revision is a snapshot of message content and is used to track the history of changes in a message. Applications may use to store revisions each time a message is edited.XML metadata may be used to override or augment these JPA annotations.
- Since:
- 7.8
-
-
Constructor Summary
Constructors Constructor Description SwiftMessageRevision()
SwiftMessageRevision(AbstractSwiftMessage msg)
Creates a message revision from a messages.
Sets the revision message content with the actual message content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Calendar
getCreationDate()
java.lang.String
getCreationUser()
java.lang.Long
getId()
java.lang.String
getJson()
java.lang.String
getMessage()
int
hashCode()
void
setCreationDate(java.util.Calendar creationDate)
void
setCreationUser(java.lang.String creationUser)
void
setId(java.lang.Long id)
void
setJson(java.lang.String json)
void
setMessage(java.lang.String message)
-
-
-
Constructor Detail
-
SwiftMessageRevision
public SwiftMessageRevision()
-
SwiftMessageRevision
public SwiftMessageRevision(AbstractSwiftMessage msg)
Creates a message revision from a messages.
Sets the revision message content with the actual message content. And sets the revision creation date and creation user with information taken from the current status info. If the message has no status, this fields are left null.- Parameters:
msg
- message for the snapshot
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getId
public java.lang.Long getId()
-
setId
public void setId(java.lang.Long id)
-
getCreationDate
public java.util.Calendar getCreationDate()
-
setCreationDate
public void setCreationDate(java.util.Calendar creationDate)
-
getCreationUser
public java.lang.String getCreationUser()
-
setCreationUser
public void setCreationUser(java.lang.String creationUser)
-
getMessage
public java.lang.String getMessage()
-
setMessage
public void setMessage(java.lang.String message)
-
getJson
public java.lang.String getJson()
-
setJson
public void setJson(java.lang.String json)
-
-