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, ResponsibilityEntry.State state, User responsible, User reporter, java.util.Date timestamp, java.lang.String comment)
          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, java.lang.String projectId)
          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)
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
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,
                                                      java.lang.String projectId)
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
Returns:
new instance