Package de.fraunhofer.iese.mydata.client
Class LibraryClient
- java.lang.Object
-
- de.fraunhofer.iese.mydata.common.MyDataEntity
-
- de.fraunhofer.iese.mydata.client.LibraryClient
-
@Entity public class LibraryClient extends MyDataEntity
-
-
Constructor Summary
Constructors Constructor Description LibraryClient()
Default constructor for JPALibraryClient(ClientId clientId)
Generates a new client with a token id and a secret
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
void
removeLatestSyncNotification(@NonNull SyncNotification latest)
needed for JPA/Hibernate remove the SyncNotification if it matches the configured onvoid
setLatestSyncNotification(@NonNull SyncNotification latestSyncNotification)
Sets the last time this client synchronised with the master pmp-
Methods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, toString, validate, validateAndNullCheck
-
-
-
-
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
-
-