Class ResponsibilityEntryFactory
- java.lang.Object
-
- jetbrains.buildServer.responsibility.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 Summary
Constructors Constructor Description ResponsibilityEntryFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BuildTypeResponsibilityEntry
createEntry(BuildType buildType)
Returns a new (inactive) build type responsibility entry.static BuildTypeResponsibilityEntry
createEntry(BuildType buildType, ResponsibilityEntry.State state, User responsible, User reporter, java.util.Date timestamp, java.lang.String comment, ResponsibilityEntry.RemoveMethod removeMethod)
Returns new build type responsibility entry.static TestNameResponsibilityEntry
createEntry(TestName testName, long testNameId, ResponsibilityEntry.State state, User responsible, User reporter, java.util.Date timestamp, java.lang.String comment, BuildProject project, ResponsibilityEntry.RemoveMethod removeMethod)
Returns new test responsibility entry.
-
-
-
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 typestate
- the stateresponsible
- responsible userreporter
- reporter usertimestamp
- the timestampcomment
- the commentremoveMethod
- remove method- Returns:
- new instance
-
createEntry
public static BuildTypeResponsibilityEntry createEntry(@NotNull BuildType buildType)
Returns a new (inactive) build type responsibility entry.- Parameters:
buildType
- the build type- Returns:
- new instance
- Since:
- 7.1
- See Also:
ResponsibilityEntry.State.NONE
-
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 nametestNameId
- the test name idstate
- the stateresponsible
- responsible userreporter
- reporter usertimestamp
- the timestampcomment
- the commentproject
- project, where responsibility were takenremoveMethod
- remove method- Returns:
- new instance
-
-