jetbrains.buildServer.responsibility
Class ResponsibilityEntryFactory

java.lang.Object
  extended by 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
ResponsibilityEntryFactory()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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 name
testNameId - the test name id
state - the state
responsible - responsible user
reporter - reporter user
timestamp - the timestamp
comment - the comment
projectId - project, where responsibility were taken
removeMethod - remove method
Returns:
new instance