Interface FolderService

  • All Superinterfaces:
    ComponentService<com.flower.docs.domain.folder.Folder>, CRUDService<com.flower.docs.domain.folder.Folder>, EditService<com.flower.docs.domain.folder.Folder>

    public interface FolderService
    extends ComponentService<com.flower.docs.domain.folder.Folder>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addChildren​(com.flower.docs.domain.common.Id folder, java.util.List<com.flower.docs.domain.component.ComponentReference> children, boolean replace)
      Adds supplied children to existing folder
      void deleteChildren​(com.flower.docs.domain.common.Id folder, java.util.List<com.flower.docs.domain.component.ComponentReference> children)
      Adds supplied children from existing folder
      java.util.List<com.flower.docs.domain.task.Task> getStartableTasks​(com.flower.docs.domain.common.Id folder)  
      void startTask​(com.flower.docs.domain.common.Id folder, com.flower.docs.domain.task.Task task)  
    • Method Detail

      • addChildren

        void addChildren​(com.flower.docs.domain.common.Id folder,
                         java.util.List<com.flower.docs.domain.component.ComponentReference> children,
                         boolean replace)
                  throws com.flower.docs.domain.exception.TechnicalException,
                         com.flower.docs.domain.exception.FunctionalException
        Adds supplied children to existing folder
        Parameters:
        folder - The unique identifier of existing folder to update
        children - The references of children to add into folder
        replace - Determines if existing folder children should be remove or not
        Throws:
        com.flower.docs.domain.exception.TechnicalException
        com.flower.docs.domain.exception.FunctionalException
      • deleteChildren

        void deleteChildren​(com.flower.docs.domain.common.Id folder,
                            java.util.List<com.flower.docs.domain.component.ComponentReference> children)
                     throws com.flower.docs.domain.exception.TechnicalException,
                            com.flower.docs.domain.exception.FunctionalException
        Adds supplied children from existing folder
        Parameters:
        folder - The unique identifier of existing folder to update
        children - The references of children to add from folder
        Throws:
        com.flower.docs.domain.exception.TechnicalException
        com.flower.docs.domain.exception.FunctionalException
      • getStartableTasks

        java.util.List<com.flower.docs.domain.task.Task> getStartableTasks​(com.flower.docs.domain.common.Id folder)
                                                                    throws com.flower.docs.domain.exception.TechnicalException,
                                                                           com.flower.docs.domain.exception.FunctionalException
        Throws:
        com.flower.docs.domain.exception.TechnicalException
        com.flower.docs.domain.exception.FunctionalException
      • startTask

        void startTask​(com.flower.docs.domain.common.Id folder,
                       com.flower.docs.domain.task.Task task)
                throws com.flower.docs.domain.exception.TechnicalException,
                       com.flower.docs.domain.exception.FunctionalException
        Throws:
        com.flower.docs.domain.exception.TechnicalException
        com.flower.docs.domain.exception.FunctionalException