Class SyncPageMetadata


  • public class SyncPageMetadata
    extends java.lang.Object
    Represents metadata for a page in a sync.
    • Constructor Detail

      • SyncPageMetadata

        public SyncPageMetadata()
      • SyncPageMetadata

        public 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 Detail

      • 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 a UUID in lowercase.
      • 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()
      • 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 a UUID in lowercase.
      • 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 class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object