Class ProcessResult

    • Constructor Detail

      • ProcessResult

        public ProcessResult()
        Creates an empty ProcessResult.
      • ProcessResult

        public ProcessResult​(edu.byu.hbll.box.BoxDocument... documents)
        Creates a new ProcessResult by adding the initial documents.
        Parameters:
        documents - the resulting documents to be saved
      • ProcessResult

        public ProcessResult​(Collection<? extends edu.byu.hbll.box.BoxDocument> documents)
        Creates a new ProcessResult by adding the initial documents.
        Parameters:
        documents - the resulting documents to be saved
    • Method Detail

      • addDocument

        public ProcessResult addDocument​(edu.byu.hbll.box.BoxDocument document)
        Same as add() except returns this.
        Parameters:
        document - the resulting document to be saved
        Returns:
        this
      • addDocuments

        public ProcessResult addDocuments​(edu.byu.hbll.box.BoxDocument... documents)
        Same as addAll() except returns this.
        Parameters:
        documents - the resulting documents to be saved
        Returns:
        this
      • addDocuments

        public ProcessResult addDocuments​(Collection<? extends edu.byu.hbll.box.BoxDocument> documents)
        Same as addAll() except returns this.
        Parameters:
        documents - the resulting documents to be saved
        Returns:
        this
      • startGroup

        public ProcessResult startGroup​(String groupId)
        Marks the start of a new group to be processed identified by the given groupId. This is necessary for identifying orphaned documents and deleting them when they're no longer part of the group.
        Parameters:
        groupId - the group's id
        Returns:
        this
      • endGroup

        public ProcessResult endGroup​(String groupId)
        Marks the moment a group finished processing. This is necessary for identifying orphaned documents and deleting them when they're no longer part of the group.
        Parameters:
        groupId - the group's id
        Returns:
        this