public interface VersioningService
Modifier and Type | Method and Description |
---|---|
<T> T |
getAtRevision(java.lang.Class<T> clazz,
long objectId,
java.lang.Number revision) |
<T> T |
getAtRevision(java.lang.Class<T> clazz,
java.lang.Object object,
java.lang.Number revision)
Returns an instance of the given
Object at the given revision. |
AuditReader |
getAuditReader()
Returns the used
AuditReader |
java.util.Set<java.lang.Number> |
getRevisionNumbers(java.lang.Class<?> clazz,
long objectId) |
java.util.Set<java.lang.Number> |
getRevisionNumbers(java.lang.Object object)
Returns a
Set of Number s identified all revisions of the
given Object |
java.util.Set<Revision> |
getRevisions(java.lang.Object object)
|
java.util.Set<Revision> |
getRevisions(java.util.Set<java.lang.Number> revisionNumbers) |
java.util.Set<Revision> getRevisions(java.lang.Object object)
object
- The Object
Set
of Revision
sjava.util.Set<Revision> getRevisions(java.util.Set<java.lang.Number> revisionNumbers)
<T> T getAtRevision(java.lang.Class<T> clazz, java.lang.Object object, java.lang.Number revision)
Object
at the given revision.
The result gets casted to the Class
TT
- The class to cast toclazz
- The Class
objectobject
- The Object
revision
- The revision as a Number
Object
with the data of the given
revision<T> T getAtRevision(java.lang.Class<T> clazz, long objectId, java.lang.Number revision)
java.util.Set<java.lang.Number> getRevisionNumbers(java.lang.Object object)
Set
of Number
s identified all revisions of the
given Object
object
- The Object
to get the revisions fromSet
holding the revision Number
sjava.util.Set<java.lang.Number> getRevisionNumbers(java.lang.Class<?> clazz, long objectId)
AuditReader getAuditReader()
AuditReader
AuditReader