Class SyncPageEntry


  • public class SyncPageEntry
    extends java.lang.Object
    Represents an entry in the page data.
    • Constructor Summary

      Constructors 
      Constructor Description
      SyncPageEntry()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getIdentifier()
      The uniq indentifier for the resource.
      java.lang.Object getResource()
      The FINT resource.
      int hashCode()  
      static SyncPageEntry of​(java.lang.String identifier, java.lang.Object resource)
      Helper method to create an SyncPageEntry.
      static <T extends no.fint.model.resource.FintLinks>
      SyncPageEntry
      ofIdentifierName​(java.lang.String identifierName, T resource)
      Helper method to create an SyncPageEntry with identifierName as the identifier.
      static <T extends no.fint.model.resource.FintLinks>
      SyncPageEntry
      ofSystemId​(T resource)
      Helper method to create an SyncPageEntry with systemId as identifier.
      void setIdentifier​(java.lang.String identifier)
      The uniq indentifier for the resource.
      void setResource​(java.lang.Object resource)
      The FINT resource.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SyncPageEntry

        public SyncPageEntry()
    • Method Detail

      • of

        public static SyncPageEntry of​(java.lang.String identifier,
                                       java.lang.Object resource)
        Helper method to create an SyncPageEntry.
        Parameters:
        identifier - identifier
        resource - resource
        Returns:
        A SyncPageEntry.
      • ofSystemId

        public static <T extends no.fint.model.resource.FintLinks> SyncPageEntry ofSystemId​(T resource)
        Helper method to create an SyncPageEntry with systemId as identifier.
        Type Parameters:
        T - The FINT resource type
        Parameters:
        resource - resource
        Returns:
        A SyncPageEntry
      • ofIdentifierName

        public static <T extends no.fint.model.resource.FintLinks> SyncPageEntry ofIdentifierName​(java.lang.String identifierName,
                                                                                                  T resource)
        Helper method to create an SyncPageEntry with identifierName as the identifier.
        Type Parameters:
        T - The FINT resource type
        Parameters:
        identifierName - Name of a self link in a FINT resource. This is any attribute of the type Identifikator. For the FINT resource Elev it could be:
        • elevnummer
        • brukernavn
        • feidenavn
        resource - resource
        Returns:
        A SyncPageEntry
        See Also:
        FINT resource Elev
      • getIdentifier

        public java.lang.String getIdentifier()

        The uniq indentifier for the resource. Typically created with Link.with().

        E.g. ${utdanning.vurdering.fravar}/systemid/32a83959-2896-4882-94b2-9157cad009d2

      • getResource

        public java.lang.Object getResource()
        The FINT resource.
      • setIdentifier

        public void setIdentifier​(java.lang.String identifier)

        The uniq indentifier for the resource. Typically created with Link.with().

        E.g. ${utdanning.vurdering.fravar}/systemid/32a83959-2896-4882-94b2-9157cad009d2

      • setResource

        public void setResource​(java.lang.Object resource)
        The FINT resource.
      • 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