Class LibraryClient

java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.client.LibraryClient

@Entity public class LibraryClient extends MyDataEntity
  • Constructor Details

    • 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 Details

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object