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 classRequestFintEvent.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.RequestFintEventBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetCorrId()GUID for correlation ID.longgetCreated()When the event was created.java.lang.StringgetDomainName()Name of the FINT domain.OperationTypegetOperationType()The type of operation to be performed (CREATE, UPDATE, VALIDATE)java.lang.StringgetOrgId()OrgId for the current customer.java.lang.StringgetPackageName()Name of the FINT package.java.lang.StringgetResourceName()Name of the FINT class/entity.longgetTimeToLive()How long the request is valid in millisecondsjava.lang.StringgetValue()The object to which the event appliesinthashCode()voidsetCorrId(java.lang.String corrId)GUID for correlation ID.voidsetCreated(long created)When the event was created.voidsetDomainName(java.lang.String domainName)Name of the FINT domain.voidsetOperationType(OperationType operationType)The type of operation to be performed (CREATE, UPDATE, VALIDATE)voidsetOrgId(java.lang.String orgId)OrgId for the current customer.voidsetPackageName(java.lang.String packageName)Name of the FINT package.voidsetResourceName(java.lang.String resourceName)Name of the FINT class/entity.voidsetTimeToLive(long timeToLive)How long the request is valid in millisecondsvoidsetValue(java.lang.String value)The object to which the event appliesjava.lang.StringtoString()
-
-
-
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:
getOperationTypein 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:
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
-
-