Package no.fintlabs.adapter.models.event
Class RequestFintEvent
- java.lang.Object
-
- no.fintlabs.adapter.models.event.RequestFintEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RequestFintEvent.RequestFintEventBuilder
-
Constructor Summary
Constructors Constructor Description RequestFintEvent()
RequestFintEvent(java.lang.String corrId, java.lang.String orgId, java.lang.String domainName, java.lang.String packageName, java.lang.String resourceName, OperationType operationType, long created, long timeToLive, java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestFintEvent.RequestFintEventBuilder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getCorrId()
GUID for correlation ID.long
getCreated()
When the event was created.java.lang.String
getDomainName()
Name of the FINT domain.OperationType
getOperationType()
The type of operation to be performed (CREATE, UPDATE, VALIDATE)java.lang.String
getOrgId()
OrgId for the current customer.java.lang.String
getPackageName()
Name of the FINT package.java.lang.String
getResourceName()
Name of the FINT class/entity.long
getTimeToLive()
How long the request is valid in millisecondsjava.lang.String
getValue()
The object to which the event appliesint
hashCode()
void
setCorrId(java.lang.String corrId)
GUID for correlation ID.void
setCreated(long created)
When the event was created.void
setDomainName(java.lang.String domainName)
Name of the FINT domain.void
setOperationType(OperationType operationType)
The type of operation to be performed (CREATE, UPDATE, VALIDATE)void
setOrgId(java.lang.String orgId)
OrgId for the current customer.void
setPackageName(java.lang.String packageName)
Name of the FINT package.void
setResourceName(java.lang.String resourceName)
Name of the FINT class/entity.void
setTimeToLive(long timeToLive)
How long the request is valid in millisecondsvoid
setValue(java.lang.String value)
The object to which the event appliesjava.lang.String
toString()
-
-
-
Constructor Detail
-
RequestFintEvent
public RequestFintEvent()
-
RequestFintEvent
public RequestFintEvent(java.lang.String corrId, java.lang.String orgId, java.lang.String domainName, java.lang.String packageName, java.lang.String resourceName, OperationType operationType, long created, long timeToLive, java.lang.String value)
-
-
Method Detail
-
builder
public static RequestFintEvent.RequestFintEventBuilder 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.
-
getDomainName
public java.lang.String getDomainName()
Name of the FINT domain. E.g. utdanning.
-
getPackageName
public java.lang.String getPackageName()
Name of the FINT package. E.g. vurdering.
-
getResourceName
public java.lang.String getResourceName()
Name of the FINT class/entity. E.g. fravar
-
getOperationType
public OperationType getOperationType()
The type of operation to be performed (CREATE, UPDATE, VALIDATE)- Specified by:
getOperationType
in interfaceFintEvent
-
getCreated
public long getCreated()
When the event was created.
-
getTimeToLive
public long getTimeToLive()
How long the request is valid in milliseconds
-
getValue
public java.lang.String getValue()
The object to which the event applies
-
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.
-
setDomainName
public void setDomainName(java.lang.String domainName)
Name of the FINT domain. E.g. utdanning.
-
setPackageName
public void setPackageName(java.lang.String packageName)
Name of the FINT package. E.g. vurdering.
-
setResourceName
public void setResourceName(java.lang.String resourceName)
Name of the FINT class/entity. E.g. fravar
-
setOperationType
public void setOperationType(OperationType operationType)
The type of operation to be performed (CREATE, UPDATE, VALIDATE)
-
setCreated
public void setCreated(long created)
When the event was created.
-
setTimeToLive
public void setTimeToLive(long timeToLive)
How long the request is valid in milliseconds
-
setValue
public void setValue(java.lang.String value)
The object to which the event applies
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-