Class CommitDataBean

  • All Implemented Interfaces:
    CommitData, CommitInfo

    public class CommitDataBean
    extends BaseCommitData
    implements CommitInfo
    This class is expected to be created from plugin code, provides implementation for CommitData
    Since:
    8.1
    Author:
    Eugene Petrenko (eugene.petrenko@jetbrains.com)
    • Constructor Detail

      • CommitDataBean

        public CommitDataBean​(@NotNull
                              java.lang.String version,
                              @NotNull
                              java.lang.String displayVersion,
                              @NotNull
                              java.util.Date vcsDate)
    • Method Detail

      • getCommitAuthor

        public java.lang.String getCommitAuthor()
        Specified by:
        getCommitAuthor in interface CommitInfo
        Returns:
        commit author associated with it
      • setCommitAuthor

        public void setCommitAuthor​(@NotNull
                                    java.lang.String commitAuthor)
      • getCommitMessage

        public java.lang.String getCommitMessage()
        Specified by:
        getCommitMessage in interface CommitInfo
        Returns:
        commit message
      • setCommitMessage

        public void setCommitMessage​(@NotNull
                                     java.lang.String commitMessage)
      • addTag

        public void addTag​(@NotNull
                           java.lang.String tag)
        Adds tag for this commit
        Parameters:
        tag - parent revision
        Since:
        8.1
      • setTags

        public void setTags​(@NotNull
                            java.util.Collection<java.lang.String> tags)
        Replaces tags list for this commit
        Parameters:
        tags - parent revisions
        Since:
        8.1
      • getTags

        @NotNull
        public java.util.List<java.lang.String> getTags()
        Specified by:
        getTags in interface CommitInfo
        Returns:
        tags for commit
      • addBranch

        public void addBranch​(@NotNull
                              java.lang.String branch)
        Adds branch for this commit
        Parameters:
        branch - parent revision
        Since:
        8.1
      • setBranches

        public void setBranches​(@NotNull
                                java.util.Collection<java.lang.String> branches)
        Replaces branches list for this commit
        Parameters:
        branches - parent revisions
        Since:
        8.1
      • getBranches

        @NotNull
        public java.util.List<java.lang.String> getBranches()
        Specified by:
        getBranches in interface CommitInfo
        Returns:
        branches to which commit belongs or empty list if nothing is known
      • addHead

        public void addHead​(@NotNull
                            java.lang.String head)
        adds one more head
        Since:
        8.1
      • setHeads

        public void setHeads​(@NotNull
                             java.util.Collection<java.lang.String> heads)
        Replaces current heads with given
        Since:
        8.1
      • getHeadNames

        @NotNull
        public java.util.List<java.lang.String> getHeadNames()
        Description copied from interface: CommitInfo
        Repository's current state contains a number of named commits. We name those commits 'heads' This method returns association of a commit with heads that are on the commit
        Specified by:
        getHeadNames in interface CommitInfo
        Returns:
        all head names that are on this commit
      • addMountPoints

        public void addMountPoints​(@NotNull
                                   java.util.Collection<? extends CommitMountPointInfo> points)
        Since:
        8.1
      • isIncludedByCheckoutRules

        public boolean isIncludedByCheckoutRules()
        Specified by:
        isIncludedByCheckoutRules in interface CommitInfo
        Returns:
        true if commit is not filtered by checkout rules
      • setIncludedByCheckoutRules

        public void setIncludedByCheckoutRules​(boolean isIncludedByCheckoutRules)
        Sets if this commit is included by checkout rules
        Parameters:
        isIncludedByCheckoutRules - set to true to include the commit by checkout rules
        Since:
        8.1