Package no.fintlabs.adapter.models.sync
Class SyncPageMetadata
- java.lang.Object
-
- no.fintlabs.adapter.models.sync.SyncPageMetadata
-
public class SyncPageMetadata extends java.lang.ObjectRepresents metadata for a page in a sync.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSyncPageMetadata.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.SyncPageMetadataBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetAdapterId()java.lang.StringgetCorrId()An uniq id for a sync.java.lang.StringgetOrgId()longgetPage()Current page in a sync.longgetPageSize()Size of current page.longgetTime()Unix timestamp for the current page in a sync.longgetTotalPages()Total pages in a sync.longgetTotalSize()The total amount of resources for all pages in a sync.java.lang.StringgetUriRef()The path for the FINT resource in a sync.inthashCode()voidsetAdapterId(java.lang.String adapterId)voidsetCorrId(java.lang.String corrId)An uniq id for a sync.voidsetOrgId(java.lang.String orgId)voidsetPage(long page)Current page in a sync.voidsetPageSize(long pageSize)Size of current page.voidsetTime(long time)Unix timestamp for the current page in a sync.voidsetTotalPages(long totalPages)Total pages in a sync.voidsetTotalSize(long totalSize)The total amount of resources for all pages in a sync.voidsetUriRef(java.lang.String uriRef)The path for the FINT resource in a sync.java.lang.StringtoString()
-
-
-
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 aUUIDin 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 aUUIDin 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:
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
-
-