Interface BaseServiceAudit<T,​ID,​N extends java.lang.Number & java.lang.Comparable<N>>

    • 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 view
      void setShowPrivateComment​(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 entity
        revision - number of the entity
        Returns:
        Revision at 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 entity
        pageable - from controller method
        Returns:
        Page of 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)