Class LibraryClient

    • Constructor Detail

      • LibraryClient

        public LibraryClient()
        Default constructor for JPA
      • LibraryClient

        public LibraryClient​(ClientId clientId)
        Generates a new client with a token id and a secret
        Parameters:
        tokenId -
        secret -
    • Method Detail

      • setLatestSyncNotification

        public void setLatestSyncNotification​(@NonNull
                                              @NonNull SyncNotification latestSyncNotification)
        Sets the last time this client synchronised with the master pmp
        Parameters:
        latestSyncNotification -
      • removeLatestSyncNotification

        public void removeLatestSyncNotification​(@NonNull
                                                 @NonNull SyncNotification latest)
        needed for JPA/Hibernate remove the SyncNotification if it matches the configured on
        Parameters:
        latest - : the SyncNotification to remove
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object