Interface VersionDAO<T extends com.flower.docs.domain.component.Version>


  • public interface VersionDAO<T extends com.flower.docs.domain.component.Version>
    Data Access Object allowing to manage persistence and access to Versioning domain object
    Author:
    Arthur Perrad
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteVersion​(com.flower.docs.domain.common.Id id, com.flower.docs.domain.common.Id versionId)  
      com.flower.docs.domain.component.VersionSeries getVersions​(com.flower.docs.domain.common.Id id)  
      T promote​(com.flower.docs.domain.common.Id id, java.lang.String label)  
      T promote​(T version)  
      T revert​(com.flower.docs.domain.common.Id id, com.flower.docs.domain.common.Id version)  
    • Method Detail

      • promote

        T promote​(com.flower.docs.domain.common.Id id,
                  java.lang.String label)
           throws com.flower.docs.domain.exception.TechnicalException
        Throws:
        com.flower.docs.domain.exception.TechnicalException
      • promote

        T promote​(T version)
           throws com.flower.docs.domain.exception.TechnicalException
        Throws:
        com.flower.docs.domain.exception.TechnicalException
      • getVersions

        com.flower.docs.domain.component.VersionSeries getVersions​(com.flower.docs.domain.common.Id id)
                                                            throws com.flower.docs.domain.exception.TechnicalException
        Throws:
        com.flower.docs.domain.exception.TechnicalException
      • revert

        T revert​(com.flower.docs.domain.common.Id id,
                 com.flower.docs.domain.common.Id version)
          throws com.flower.docs.domain.exception.TechnicalException
        Throws:
        com.flower.docs.domain.exception.TechnicalException
      • deleteVersion

        void deleteVersion​(com.flower.docs.domain.common.Id id,
                           com.flower.docs.domain.common.Id versionId)
                    throws com.flower.docs.domain.exception.TechnicalException
        Throws:
        com.flower.docs.domain.exception.TechnicalException