Interface BackgroundPersistTask

    • Method Detail

      • setContent

        void setContent​(@NotNull
                        SPersistentEntity entity,
                        @NotNull
                        byte[] content)
                 throws IOException
        Sets file content to be persisted.
        Parameters:
        entity - entity which content is persisted
        content - content to persist
        Throws:
        IOException - when task failed to save the content in task dir
      • setContent

        void setContent​(@NotNull
                        SProject project,
                        @NotNull
                        String path,
                        @NotNull
                        byte[] content)
                 throws IOException
        Sets file content to be persisted. Should be used for paths which don't depend on external ids.
        Parameters:
        project - project within which content should be persisted
        path - path relative to project root directory
        content - content to persist
        Throws:
        IOException - when task failed to save the content in task dir
      • setComplete

        void setComplete()
        Marks task as complete meaning that all desired changes were provided to the task. Changes made after setComplete() call will lead to exception.
      • cancel

        void cancel()
        Marks task as canceled, canceled task will not be executed on configs directory.
      • getErrors

        @NotNull
        List<Throwable> getErrors()
        Returns errors thrown during background task execution.
        Returns:
        errors thrown during background task execution
      • getAffectedProjects

        @NotNull
        Set<SProject> getAffectedProjects()
      • getAffectedProjectExtIds

        @NotNull
        Set<String> getAffectedProjectExtIds()
      • affectsProject

        boolean affectsProject​(@NotNull
                               SProject project)
      • getOriginNodeId

        @NotNull
        String getOriginNodeId()
      • getSavedPaths

        @NotNull
        Set<String> getSavedPaths()