Interface MergeResultContext

    • Method Detail

      • getFailureReason

        @Nullable
        @Nullable String getFailureReason()
        Returns:
        reason of failure of merge or push operation
      • setFailureReason

        void setFailureReason​(String failureReason)
      • getBranchTargetVcsKey

        @Nullable
        @Nullable String getBranchTargetVcsKey()
        Depending on the integration strategy this could be the checked out revision or the merged revision Should be NotNull, but legacy data may exist that doesn't have this value.
        Returns:
        The revision key used of the branch
      • setBranchTargetVcsKey

        void setBranchTargetVcsKey​(String branchTargetVcsKey)
      • getIntegrationRepositoryId

        long getIntegrationRepositoryId()
        Returns:
        id of the integrated repository. This could be the checkout or merge repo depending on strategy
      • setIntegrationRepositoryId

        void setIntegrationRepositoryId​(long integrationRepositoryId)
      • getIntegrationRepositoryBranchName

        @Nullable
        @Nullable String getIntegrationRepositoryBranchName()
        The branch name associated with the integration repository
        Returns:
        A string representation of the branch at the time of integration.
      • setIntegrationRepositoryBranchName

        void setIntegrationRepositoryBranchName​(String integrationRepositoryBranchName)
      • getIntegrationBranchVcsKey

        @NotNull
        @NotNull String getIntegrationBranchVcsKey()
        Depensing on the integration strategy this could be the checked out revision or the merged revision
        Returns:
        revision key integrated into the branch
      • setIntegrationBranchVcsKey

        void setIntegrationBranchVcsKey​(String mergedRevisionKey)
      • getMergeResultVcsKey

        @Nullable
        @Nullable String getMergeResultVcsKey()
        Returns:
        revision created by the merge process
      • setMergeResultVcsKey

        void setMergeResultVcsKey​(String mergeResultVcsKey)
      • isEmptyMerge

        boolean isEmptyMerge()
        Returns:
        true iff merge doesn't produce any changes that need to be committed
      • setEmptyMerge

        void setEmptyMerge​(boolean emptyMerge)
      • getMergeState

        @Nullable
        @Nullable MergeResultState getMergeState()
        The state of the merge part of the integration strategy Should be NotNull but legacy data may exist
        Returns:
        MergeResultState representing the state of the merge
      • getPushState

        @Nullable
        @Nullable MergeResultState getPushState()
        The state of the push part of the integration strategy Should be NotNull but legacy data may exist
        Returns:
        MergeResultState representing the state of the push
      • hasFailed

        boolean hasFailed()
        Has the branch integration failed at any point in the integration process
        Returns:
        true if the integration has failed.
      • getIntegrationStrategy

        @Nullable
        @Nullable BranchIntegrationStrategy getIntegrationStrategy()
        Should not be null, however legacy data may exist that doesn't have this value.
        Returns:
        The integration strategy used for his merge.
      • getBranchName

        @Nullable
        @Nullable String getBranchName()
        Branch name associated with this Plan Branch.
        Returns:
        a string representation of the branch at the time of integration
      • setBranchName

        void setBranchName​(String branchName)