Package no.nsd.qddt.domain
Interface BaseServiceAudit<T,ID,N extends java.lang.Number & java.lang.Comparable<N>>
-
- All Known Subinterfaces:
CategoryAuditService,ConceptAuditService,ControlConstructAuditService,InstructionAuditService,InstrumentAuditService,PublicationAuditService,QuestionItemAuditService,ResponseDomainAuditService,StudyAuditService,SurveyProgramAuditService,TopicGroupAuditService,UniverseAuditService
public interface BaseServiceAudit<T,ID,N extends java.lang.Number & java.lang.Comparable<N>>Interface for all service classes dealing with entity classes annotated byAudited
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.data.history.Revision<N,T>findFirstChange(ID id)Find the latest changed revision.org.springframework.data.history.Revision<N,T>findLastChange(ID id)Find the latest changed revision.org.springframework.data.history.Revision<N,T>findRevision(ID id, N revision)Find the entity based on a revision number.org.springframework.data.domain.Page<org.springframework.data.history.Revision<N,T>>findRevisions(ID id, org.springframework.data.domain.Pageable pageable)Find all revisions and return in a pageable viewvoidsetShowPrivateComment(boolean showPrivate)
-
-
-
Method Detail
-
findLastChange
org.springframework.data.history.Revision<N,T> findLastChange(ID id)
Find the latest changed revision.- Parameters:
id- of the entity- Returns:
Revision
-
findRevision
org.springframework.data.history.Revision<N,T> findRevision(ID id, N revision)
Find the entity based on a revision number.- Parameters:
id- of the entityrevision- number of the entity- Returns:
Revisionat the given revision
-
findRevisions
org.springframework.data.domain.Page<org.springframework.data.history.Revision<N,T>> findRevisions(ID id, org.springframework.data.domain.Pageable pageable)
Find all revisions and return in a pageable view- Parameters:
id- of the entitypageable- from controller method- Returns:
Pageof the entity
-
findFirstChange
org.springframework.data.history.Revision<N,T> findFirstChange(ID id)
Find the latest changed revision.- Parameters:
id- of the entity- Returns:
Revision
-
setShowPrivateComment
@NotNull void setShowPrivateComment(boolean showPrivate)
-
-