Interface CRUDService<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<T> create​(java.util.List<T> objects)
      Creates a list of objects
      void delete​(java.util.List<com.flower.docs.domain.common.Id> ids)
      Deletes a list of objects
      java.util.List<T> get​(java.util.List<com.flower.docs.domain.common.Id> ids)
      Gets a list of objects
      java.util.List<T> update​(java.util.List<T> objects)
      Updates a list of objects
    • Method Detail

      • create

        java.util.List<T> create​(java.util.List<T> objects)
                          throws com.flower.docs.domain.exception.FunctionalException,
                                 com.flower.docs.domain.exception.TechnicalException
        Creates a list of objects
        Parameters:
        objects - The objects to create
        Returns:
        The created objects
        Throws:
        com.flower.docs.domain.exception.FunctionalException - If a functional error occurred
        com.flower.docs.domain.exception.TechnicalException - If a technical error occurred
      • get

        java.util.List<T> get​(java.util.List<com.flower.docs.domain.common.Id> ids)
                       throws com.flower.docs.domain.exception.FunctionalException,
                              com.flower.docs.domain.exception.TechnicalException
        Gets a list of objects
        Parameters:
        ids - The unique identifiers of requested objects
        Returns:
        The requested objects
        Throws:
        com.flower.docs.domain.exception.FunctionalException - If a functional error occurred
        com.flower.docs.domain.exception.TechnicalException - If a technical error occurred
      • update

        java.util.List<T> update​(java.util.List<T> objects)
                          throws com.flower.docs.domain.exception.FunctionalException,
                                 com.flower.docs.domain.exception.TechnicalException
        Updates a list of objects
        Parameters:
        objects - The objects to update
        Returns:
        The updated objects
        Throws:
        com.flower.docs.domain.exception.FunctionalException - If a functional error occurred
        com.flower.docs.domain.exception.TechnicalException - If a technical error occurred
      • delete

        void delete​(java.util.List<com.flower.docs.domain.common.Id> ids)
             throws com.flower.docs.domain.exception.FunctionalException,
                    com.flower.docs.domain.exception.TechnicalException
        Deletes a list of objects
        Parameters:
        ids - The unique identifiers of objects to delete
        Throws:
        com.flower.docs.domain.exception.FunctionalException - If a functional error occurred
        com.flower.docs.domain.exception.TechnicalException - If a technical error occurred