Class ModificationData

  • All Implemented Interfaces:
    ChangeData, CommitData

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

      • ModificationData

        public ModificationData​(@NotNull
                                Date changeDate,
                                @NotNull
                                List<VcsChange> changes,
                                @Nullable
                                String description,
                                @Nullable
                                String user,
                                VcsRoot 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 ModificationData substituteFiles​(@NotNull
                                                       ModificationData 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