Package no.fintlabs.adapter.models.event
Class ResponseFintEvent
- java.lang.Object
-
- no.fintlabs.adapter.models.event.ResponseFintEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResponseFintEvent.ResponseFintEventBuilder
-
Constructor Summary
Constructors Constructor Description ResponseFintEvent()ResponseFintEvent(java.lang.String corrId, java.lang.String orgId, java.lang.String adapterId, long handledAt, SyncPageEntry value, OperationType operationType, boolean failed, java.lang.String errorMessage, boolean rejected, java.lang.String rejectReason, boolean conflicted, java.lang.String conflictReason)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseFintEvent.ResponseFintEventBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetAdapterId()java.lang.StringgetConflictReason()A message that explains the reason for the conflict of the event.java.lang.StringgetCorrId()GUID for correlation ID.java.lang.StringgetErrorMessage()A message that explains the reason for the failure of the event.longgetHandledAt()When the event was handled.OperationTypegetOperationType()The type of operation to be performed (CREATE, UPDATE, VALIDATE)java.lang.StringgetOrgId()OrgId for the current customer.java.lang.StringgetRejectReason()A message that explains the reason for the rejection of the event.SyncPageEntrygetValue()The SyncPageEntry of the object that the event produced.inthashCode()booleanisConflicted()Indicates whether the event had a conflict.booleanisFailed()Indicates whether the event has failed.booleanisRejected()Indicates whether the event has been rejected.voidsetAdapterId(java.lang.String adapterId)voidsetConflicted(boolean conflicted)Indicates whether the event had a conflict.voidsetConflictReason(java.lang.String conflictReason)A message that explains the reason for the conflict of the event.voidsetCorrId(java.lang.String corrId)GUID for correlation ID.voidsetErrorMessage(java.lang.String errorMessage)A message that explains the reason for the failure of the event.voidsetFailed(boolean failed)Indicates whether the event has failed.voidsetHandledAt(long handledAt)When the event was handled.voidsetOperationType(OperationType operationType)The type of operation to be performed (CREATE, UPDATE, VALIDATE)voidsetOrgId(java.lang.String orgId)OrgId for the current customer.voidsetRejected(boolean rejected)Indicates whether the event has been rejected.voidsetRejectReason(java.lang.String rejectReason)A message that explains the reason for the rejection of the event.voidsetValue(SyncPageEntry value)The SyncPageEntry of the object that the event produced.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ResponseFintEvent
public ResponseFintEvent()
-
ResponseFintEvent
public ResponseFintEvent(java.lang.String corrId, java.lang.String orgId, java.lang.String adapterId, long handledAt, SyncPageEntry value, OperationType operationType, boolean failed, java.lang.String errorMessage, boolean rejected, java.lang.String rejectReason, boolean conflicted, java.lang.String conflictReason)
-
-
Method Detail
-
builder
public static ResponseFintEvent.ResponseFintEventBuilder builder()
-
getCorrId
public java.lang.String getCorrId()
GUID for correlation ID. The same ID should follow the request both upstream and downstream.
-
getOrgId
public java.lang.String getOrgId()
OrgId for the current customer.
-
getAdapterId
public java.lang.String getAdapterId()
-
getHandledAt
public long getHandledAt()
When the event was handled.
-
getValue
public SyncPageEntry getValue()
The SyncPageEntry of the object that the event produced. The object should be a FINT resource.
-
getOperationType
public OperationType getOperationType()
The type of operation to be performed (CREATE, UPDATE, VALIDATE)- Specified by:
getOperationTypein interfaceFintEvent
-
isFailed
public boolean isFailed()
Indicates whether the event has failed.
-
getErrorMessage
public java.lang.String getErrorMessage()
A message that explains the reason for the failure of the event.
-
isRejected
public boolean isRejected()
Indicates whether the event has been rejected.
-
getRejectReason
public java.lang.String getRejectReason()
A message that explains the reason for the rejection of the event.
-
isConflicted
public boolean isConflicted()
Indicates whether the event had a conflict.
-
getConflictReason
public java.lang.String getConflictReason()
A message that explains the reason for the conflict of the event.
-
setCorrId
public void setCorrId(java.lang.String corrId)
GUID for correlation ID. The same ID should follow the request both upstream and downstream.
-
setOrgId
public void setOrgId(java.lang.String orgId)
OrgId for the current customer.
-
setAdapterId
public void setAdapterId(java.lang.String adapterId)
-
setHandledAt
public void setHandledAt(long handledAt)
When the event was handled.
-
setValue
public void setValue(SyncPageEntry value)
The SyncPageEntry of the object that the event produced. The object should be a FINT resource.
-
setOperationType
public void setOperationType(OperationType operationType)
The type of operation to be performed (CREATE, UPDATE, VALIDATE)
-
setFailed
public void setFailed(boolean failed)
Indicates whether the event has failed.
-
setErrorMessage
public void setErrorMessage(java.lang.String errorMessage)
A message that explains the reason for the failure of the event.
-
setRejected
public void setRejected(boolean rejected)
Indicates whether the event has been rejected.
-
setRejectReason
public void setRejectReason(java.lang.String rejectReason)
A message that explains the reason for the rejection of the event.
-
setConflicted
public void setConflicted(boolean conflicted)
Indicates whether the event had a conflict.
-
setConflictReason
public void setConflictReason(java.lang.String conflictReason)
A message that explains the reason for the conflict of the event.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-