Class ResponsibilityEntryFactory


  • public class ResponsibilityEntryFactory
    extends java.lang.Object
    A helper factory for creating responsibility entries.
    Since:
    5.0
    Author:
    Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
    See Also:
    ResponsibilityEntry
    • Constructor Detail

      • ResponsibilityEntryFactory

        public ResponsibilityEntryFactory()
    • Method Detail

      • createEntry

        public static BuildTypeResponsibilityEntry createEntry​(@NotNull
                                                               BuildType buildType,
                                                               @NotNull
                                                               ResponsibilityEntry.State state,
                                                               @NotNull
                                                               User responsible,
                                                               @Nullable
                                                               User reporter,
                                                               @NotNull
                                                               java.util.Date timestamp,
                                                               @NotNull
                                                               java.lang.String comment,
                                                               @NotNull
                                                               ResponsibilityEntry.RemoveMethod removeMethod)
        Returns new build type responsibility entry.
        Parameters:
        buildType - the build type
        state - the state
        responsible - responsible user
        reporter - reporter user
        timestamp - the timestamp
        comment - the comment
        removeMethod - remove method
        Returns:
        new instance
      • createEntry

        public static TestNameResponsibilityEntry createEntry​(@NotNull
                                                              TestName testName,
                                                              long testNameId,
                                                              @NotNull
                                                              ResponsibilityEntry.State state,
                                                              @NotNull
                                                              User responsible,
                                                              @Nullable
                                                              User reporter,
                                                              @NotNull
                                                              java.util.Date timestamp,
                                                              @NotNull
                                                              java.lang.String comment,
                                                              @NotNull
                                                              BuildProject project,
                                                              @NotNull
                                                              ResponsibilityEntry.RemoveMethod removeMethod)
        Returns new test responsibility entry.
        Parameters:
        testName - the test name
        testNameId - the test name id
        state - the state
        responsible - responsible user
        reporter - reporter user
        timestamp - the timestamp
        comment - the comment
        project - project, where responsibility were taken
        removeMethod - remove method
        Returns:
        new instance