public interface IAuditable
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LIVE_TO |
| Modifier and Type | Method and Description |
|---|---|
void |
close(Instant now,
String user)
Method that closes an entry
|
String |
getCreator()
Get the creator of the record
|
String |
getId()
The unique id of the auditable object
|
String |
getLiveFrom()
Get the string representation of the live from date of the adjustment.
|
String |
getLiveTo()
Get the string representation of the live to date of the adjustment.
|
String |
getUpdater()
Get the updater of the record
|
long |
getUtcTimestamp()
Get the UTC timestamp of the record in milliseconds
|
boolean |
isOpen()
Check whether an entry is open or closed
|
void |
open(Instant now,
String user)
Method that creates a new entry
|
void |
setAsNew()
Method used specifically for updates; for instance you can set the id of the entry to 'null' so
that a new id is generated when the update entry is created.
|
void |
setCreator(String creator)
Set the creator of the record
|
void |
setId(String id)
Set the unique id of the auditable object
|
void |
setLiveFrom(String liveFrom)
Set the string representation of the live from date of the adjustment.
|
void |
setLiveTo(String liveTo)
Set the string representation of the live to date of the adjustment.
|
void |
setUpdater(String updater)
Set the creator of the record
|
void |
setUtcTimestamp(long utcTimestamp)
Set the UTC timestamp of the record in milliseconds
|
static final String DEFAULT_LIVE_TO
String getId()
void setId(String id)
id - the idString getLiveFrom()
void setLiveFrom(String liveFrom)
liveFrom - the string representation of the live from dateString getLiveTo()
void setLiveTo(String liveTo)
liveTo - the string representation of the live to dateString getCreator()
void setCreator(String creator)
creator - the creatorString getUpdater()
void setUpdater(String updater)
updater - the updaterlong getUtcTimestamp()
void setUtcTimestamp(long utcTimestamp)
utcTimestamp - the UTC timestamp in millisecondsvoid open(Instant now, String user)
now - the UTC timestamp in milliseconds of the current instantuser - the user idvoid setAsNew()
void close(Instant now, String user)
now - the UTC timestamp in milliseconds of the current instantuser - the userboolean isOpen()
Copyright © 2020. All rights reserved.