Interface FolderDAO

  • All Superinterfaces:
    ComponentDAO<com.flower.docs.domain.folder.Folder>, GenericDAO<com.flower.docs.domain.folder.Folder>

    public interface FolderDAO
    extends ComponentDAO<com.flower.docs.domain.folder.Folder>
    Data Access Object allowing to manage persistence and access to Folder domain objects
    Author:
    Christopher Laszczuk
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addChildren​(com.flower.docs.domain.folder.Folder folder, java.util.List<com.flower.docs.domain.component.ComponentReference> children, boolean replace)
      Adds children to a Folder
      void deleteChildren​(com.flower.docs.domain.folder.Folder folder, java.util.List<com.flower.docs.domain.component.ComponentReference> children)
      Deletes provided children Components
      • Methods inherited from interface com.flower.docs.dao.api.component.ComponentDAO

        find
    • Method Detail

      • addChildren

        void addChildren​(com.flower.docs.domain.folder.Folder folder,
                         java.util.List<com.flower.docs.domain.component.ComponentReference> children,
                         boolean replace)
                  throws com.flower.docs.domain.exception.TechnicalException
        Adds children to a Folder
        Parameters:
        folder - The parent folder
        children - Component children which should be added to supplied Folder
        replace - Determines if folder children should be replaced by provided ones or not
        Throws:
        com.flower.docs.domain.exception.TechnicalException
      • deleteChildren

        void deleteChildren​(com.flower.docs.domain.folder.Folder folder,
                            java.util.List<com.flower.docs.domain.component.ComponentReference> children)
                     throws com.flower.docs.domain.exception.TechnicalException
        Deletes provided children Components
        Parameters:
        folder - The parent Folder
        children - Chilren which be deleted from supplied folder
        Throws:
        com.flower.docs.domain.exception.TechnicalException