|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IVersionableService<T extends VersionableEntity>
| Method Summary | |
|---|---|
AuditEventRecord<T> |
getNextAuditEvent(T t)
A convenience method which returns a record of the next (relative to the audit event in context) audit event to affect the entity t. |
AuditEventRecord<T> |
getPreviousAuditEvent(T t)
A convenience method which returns a record of the previous (relative to the audit event in context) audit event to affect the entity t. |
Pager<AuditEventRecord<T>> |
pageAuditEvents(Class<? extends T> clazz,
AuditEvent from,
AuditEvent to,
List<org.hibernate.envers.query.criteria.AuditCriterion> criteria,
Integer pageSize,
Integer pageValue,
AuditEventSort sort,
List<String> propertyPaths)
Returns a list of all audit events occurring to objects of type T, optionally restricted to objects of type clazz between the AuditEvents from and to, inclusive, optionally filtered by other criteria |
Pager<AuditEventRecord<T>> |
pageAuditEvents(T t,
Integer pageSize,
Integer pageNumber,
AuditEventSort sort,
List<String> propertyPaths)
Returns a paged list of audit events (in order) which affected the state of an entity t. |
| Methods inherited from interface eu.etaxonomy.cdm.api.service.IService |
|---|
clear, count, delete, exists, find, find, find, findById, getSession, group, list, list, load, load, lock, merge, page, refresh, refresh, rows, save, save, saveOrUpdate, saveOrUpdate, update |
| Method Detail |
|---|
Pager<AuditEventRecord<T>> pageAuditEvents(T t,
Integer pageSize,
Integer pageNumber,
AuditEventSort sort,
List<String> propertyPaths)
t - pageSize - pageNumber - sort - propertyPaths - paths initialized on the returned objects - only applied to the objects returned from the first grouping
AuditEventRecord<T> getNextAuditEvent(T t)
t - The versionable entity affected by these audit events
AuditEventRecord<T> getPreviousAuditEvent(T t)
t - The versionable entity affected by these audit events
Pager<AuditEventRecord<T>> pageAuditEvents(Class<? extends T> clazz,
AuditEvent from,
AuditEvent to,
List<org.hibernate.envers.query.criteria.AuditCriterion> criteria,
Integer pageSize,
Integer pageValue,
AuditEventSort sort,
List<String> propertyPaths)
clazz - Restrict the results returned to objects of this classfrom - The audit event to start from (inclusive, or pass null to start from the beginning of the recordset)to - The audit event to continue until (exclusive, or pass null to return audit events up to the time of the query)criteria - Extra criteria to filter bypageSize - The maximum number of objects returned (can be null for all matching objects)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based,
can be null, equivalent of starting at the beginning of the recordset)sort - Sort the events either forwards or backwards in timepropertyPaths - properties to be initialized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||