Class TModificationData<TRoot extends VcsRoot>

  • All Implemented Interfaces:
    CommitData
    Direct Known Subclasses:
    ModificationData

    public class TModificationData<TRoot extends VcsRoot>
    extends BaseModificationData
    Bean object to represent modification happened to the version control as reported by version control integration plugin.
    Author:
    Kir
    • Constructor Detail

      • TModificationData

        protected TModificationData​(@NotNull
                                    Date changeDate,
                                    @NotNull
                                    List<VcsChange> changes,
                                    @Nullable
                                    String description,
                                    @Nullable
                                    String user,
                                    TRoot vcsRoot,
                                    @NotNull
                                    String version,
                                    @NotNull
                                    String displayVersion,
                                    int changesCount)
      • TModificationData

        public TModificationData​(@NotNull
                                 Date changeDate,
                                 @NotNull
                                 List<VcsChange> changes,
                                 @Nullable
                                 String description,
                                 @Nullable
                                 String user,
                                 TRoot vcsRoot,
                                 @NotNull
                                 String version,
                                 @Nullable
                                 String displayVersion)
        This constructor has to be used in production code to create ModificationData instance
        Parameters:
        changeDate - date of the change.
        changes - list of all files affected by this modification.
        description - commit message.
        user - user name in the version control.
        vcsRoot - current settings.
        version - repository version right after the modification. Has to have the same meaning as VcsSupport.getCurrentVersion.
        displayVersion - repository version right after the modification in the human readable format. Used for presentation purpose only.
    • Method Detail

      • substituteFiles

        @NotNull
        public static <TRoot extends VcsRootTModificationData<TRoot> substituteFiles​(@NotNull
                                                                                       TModificationData<TRoot> originalData,
                                                                                       @NotNull
                                                                                       List<VcsChange> changedFiles)
        Creates a copy of modification data with changed files substituted.
        Parameters:
        originalData - original data
        changedFiles - new changed files
        Returns:
        ModificationData copy but with different changed files
      • getVcsRootObject

        @NotNull
        public TRoot getVcsRootObject()
      • getVcsRoot

        @NotNull
        public TRoot getVcsRoot()