Class MetasyncHistory
- java.lang.Object
-
- org.gbif.api.model.registry.metasync.MetasyncHistory
-
public class MetasyncHistory extends Object
Metadata synchronization historical information.
-
-
Constructor Summary
Constructors Constructor Description MetasyncHistory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getDetails()
Details about the metasync operation.@NotNull UUID
getInstallationKey()
Key of the synchronized installation.MetasyncResult
getResult()
Result of the metasync operation.@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date
getSyncDate()
Date when the metasync operation was executed.int
hashCode()
void
setDetails(String details)
void
setInstallationKey(UUID installationKey)
void
setResult(MetasyncResult result)
void
setSyncDate(Date syncDate)
String
toString()
-
-
-
Constructor Detail
-
MetasyncHistory
public MetasyncHistory()
-
-
Method Detail
-
getInstallationKey
@NotNull public @NotNull UUID getInstallationKey()
Key of the synchronized installation.- Returns:
- the installation key that was synchronized
-
setInstallationKey
public void setInstallationKey(UUID installationKey)
-
getSyncDate
@Nullable @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Date getSyncDate()
Date when the metasync operation was executed.
NB: null before the record is persisted, not-null afterwards.- Returns:
- timestamp when the synchronization was executed
-
setSyncDate
public void setSyncDate(Date syncDate)
-
getResult
@Nullable public MetasyncResult getResult()
Result of the metasync operation.- Returns:
- the result of the metasync operation
-
setResult
public void setResult(MetasyncResult result)
-
getDetails
@Nullable public String getDetails()
Details about the metasync operation.- Returns:
- the metasync details
-
setDetails
public void setDetails(String details)
-
-