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 SummaryAll 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- 
findLastChangeorg.springframework.data.history.Revision<N,T> findLastChange(ID id) Find the latest changed revision.- Parameters:
- id- of the entity
- Returns:
- Revision
 
 - 
findRevisionorg.springframework.data.history.Revision<N,T> findRevision(ID id, N revision) Find the entity based on a revision number.- Parameters:
- id- of the entity
- revision- number of the entity
- Returns:
- Revisionat the given revision
 
 - 
findRevisionsorg.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 entity
- pageable- from controller method
- Returns:
- Pageof the entity
 
 - 
findFirstChangeorg.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) 
 
- 
 
-