Package no.fintlabs.adapter.models.sync
Class SyncPageMetadata
- java.lang.Object
-
- no.fintlabs.adapter.models.sync.SyncPageMetadata
-
public class SyncPageMetadata extends java.lang.Object
Represents metadata for a page in a sync.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SyncPageMetadata.SyncPageMetadataBuilder
-
Constructor Summary
Constructors Constructor Description SyncPageMetadata()
SyncPageMetadata(java.lang.String adapterId, java.lang.String corrId, java.lang.String orgId, long totalSize, long page, long pageSize, long totalPages, java.lang.String uriRef, long time)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyncPageMetadata.SyncPageMetadataBuilder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getAdapterId()
java.lang.String
getCorrId()
An uniq id for a sync.java.lang.String
getOrgId()
long
getPage()
Current page in a sync.long
getPageSize()
Size of current page.long
getTime()
Unix timestamp for the current page in a sync.long
getTotalPages()
Total pages in a sync.long
getTotalSize()
The total amount of resources for all pages in a sync.java.lang.String
getUriRef()
The path for the FINT resource in a sync.int
hashCode()
void
setAdapterId(java.lang.String adapterId)
void
setCorrId(java.lang.String corrId)
An uniq id for a sync.void
setOrgId(java.lang.String orgId)
void
setPage(long page)
Current page in a sync.void
setPageSize(long pageSize)
Size of current page.void
setTime(long time)
Unix timestamp for the current page in a sync.void
setTotalPages(long totalPages)
Total pages in a sync.void
setTotalSize(long totalSize)
The total amount of resources for all pages in a sync.void
setUriRef(java.lang.String uriRef)
The path for the FINT resource in a sync.java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static SyncPageMetadata.SyncPageMetadataBuilder builder()
-
getAdapterId
public java.lang.String getAdapterId()
-
getCorrId
public java.lang.String getCorrId()
An uniq id for a sync. It is used to correlate all pages in a sync. It should be aUUID
in lowercase.
-
getOrgId
public java.lang.String getOrgId()
-
getTotalSize
public long getTotalSize()
The total amount of resources for all pages in a sync.
-
getPage
public long getPage()
Current page in a sync.
-
getPageSize
public long getPageSize()
Size of current page.
-
getTotalPages
public long getTotalPages()
Total pages in a sync.
-
getUriRef
public java.lang.String getUriRef()
The path for the FINT resource in a sync. E.g./utdanning/elev/fravar
.- See Also:
AdapterCapability.getEntityUri()
-
getTime
public long getTime()
Unix timestamp for the current page in a sync. Each page should have a timestamp for when it was sent.- See Also:
System.currentTimeMillis()
-
setAdapterId
public void setAdapterId(java.lang.String adapterId)
-
setCorrId
public void setCorrId(java.lang.String corrId)
An uniq id for a sync. It is used to correlate all pages in a sync. It should be aUUID
in lowercase.
-
setOrgId
public void setOrgId(java.lang.String orgId)
-
setTotalSize
public void setTotalSize(long totalSize)
The total amount of resources for all pages in a sync.
-
setPage
public void setPage(long page)
Current page in a sync.
-
setPageSize
public void setPageSize(long pageSize)
Size of current page.
-
setTotalPages
public void setTotalPages(long totalPages)
Total pages in a sync.
-
setUriRef
public void setUriRef(java.lang.String uriRef)
The path for the FINT resource in a sync. E.g./utdanning/elev/fravar
.- See Also:
AdapterCapability.getEntityUri()
-
setTime
public void setTime(long time)
Unix timestamp for the current page in a sync. Each page should have a timestamp for when it was sent.- See Also:
System.currentTimeMillis()
-
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
-
-