jetbrains.buildServer.notification
Class TemplateMessageBuilder

java.lang.Object
  extended by jetbrains.buildServer.notification.TemplateMessageBuilder

public class TemplateMessageBuilder
extends java.lang.Object

Rewritten by Maxim Podkolzine (maxim.podkolzine@jetbrains.com)


Nested Class Summary
static interface TemplateMessageBuilder.MuteScopeBean
          Represents a bean for providing mode scope related data to the FreeMarker template.
static interface TemplateMessageBuilder.UnmuteModeBean
          Represents a bean for providing unmute mode related data to the FreeMarker template.
 
Field Summary
static java.lang.String BUILD_LAST_MESSAGE_TIMESTAMP_FORMAT
           
static java.text.SimpleDateFormat DATE_FORMAT
           
static int MAX_NUM_OF_CHANGES
           
static int MAX_NUM_OF_FILES_PER_CHANGE
           
static int MAX_NUM_OF_STACKTRACES
           
static int MAX_NUM_OF_SUMMARY_ENTRIES
           
 
Constructor Summary
TemplateMessageBuilder(WebLinks webLinks, SBuildServer server)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getBuildFailedMap(SRunningBuild build, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getBuildFailedToStartMap(SRunningBuild build, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getBuildFailingMap(SRunningBuild build, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getBuildProbablyHangingMap(SRunningBuild build, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getBuildProblemsMutedMap(java.util.Collection<BuildProblemInfo> buildProblems, MuteInfo muteInfo, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getBuildProblemsResponsibilityAssignedMap(java.util.Collection<BuildProblemInfo> buildProblems, ResponsibilityEntry entry, SProject project, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getBuildProblemsResponsibilityChangedMap(java.util.Collection<BuildProblemInfo> buildProblems, ResponsibilityEntry entry, SProject project, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getBuildProblemsUnmutedMap(java.util.Collection<BuildProblemInfo> buildProblems, MuteInfo muteInfo, SUser user, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getBuildStartedMap(SRunningBuild build, java.util.Set<SUser> users)
          Event handlers
 java.util.Map<java.lang.String,java.lang.Object> getBuildSuccessfulMap(SRunningBuild build, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getBuildTypeResponsibilityAssignedMap(SBuildType buildType, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getBuildTypeResponsibilityChangedMap(SBuildType buildType, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getLabelingFailedMap(SBuild build, VcsRoot vcsRoot, java.lang.Throwable exception, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getTestResponsibilityAssignedMap(java.util.Collection<TestName> testNames, ResponsibilityEntry entry, SProject project, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getTestResponsibilityAssignedMap(TestNameResponsibilityEntry newValue, TestNameResponsibilityEntry oldValue, SProject project, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getTestResponsibilityChangedMap(java.util.Collection<TestName> testNames, ResponsibilityEntry entry, SProject project, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getTestResponsibilityChangedMap(TestNameResponsibilityEntry newValue, TestNameResponsibilityEntry oldValue, SProject project, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getTestsMutedMap(java.util.Collection<STest> tests, MuteInfo muteInfo, java.util.Set<SUser> users)
           
 java.util.Map<java.lang.String,java.lang.Object> getTestsUnmutedMap(java.util.Collection<STest> tests, MuteInfo muteInfo, SUser user, java.util.Set<SUser> users)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_NUM_OF_STACKTRACES

public static final int MAX_NUM_OF_STACKTRACES
See Also:
Constant Field Values

MAX_NUM_OF_SUMMARY_ENTRIES

public static final int MAX_NUM_OF_SUMMARY_ENTRIES
See Also:
Constant Field Values

MAX_NUM_OF_CHANGES

public static final int MAX_NUM_OF_CHANGES

MAX_NUM_OF_FILES_PER_CHANGE

public static final int MAX_NUM_OF_FILES_PER_CHANGE
See Also:
Constant Field Values

BUILD_LAST_MESSAGE_TIMESTAMP_FORMAT

public static final java.lang.String BUILD_LAST_MESSAGE_TIMESTAMP_FORMAT
See Also:
Constant Field Values

DATE_FORMAT

public static final java.text.SimpleDateFormat DATE_FORMAT
Constructor Detail

TemplateMessageBuilder

public TemplateMessageBuilder(@NotNull
                              WebLinks webLinks,
                              @NotNull
                              SBuildServer server)
Method Detail

getBuildStartedMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getBuildStartedMap(@NotNull
                                                                                   SRunningBuild build,
                                                                                   @NotNull
                                                                                   java.util.Set<SUser> users)
Event handlers


getBuildSuccessfulMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getBuildSuccessfulMap(@NotNull
                                                                                      SRunningBuild build,
                                                                                      @NotNull
                                                                                      java.util.Set<SUser> users)

getBuildFailedMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getBuildFailedMap(@NotNull
                                                                                  SRunningBuild build,
                                                                                  @NotNull
                                                                                  java.util.Set<SUser> users)

getBuildFailedToStartMap

public java.util.Map<java.lang.String,java.lang.Object> getBuildFailedToStartMap(@NotNull
                                                                                 SRunningBuild build,
                                                                                 @NotNull
                                                                                 java.util.Set<SUser> users)

getBuildFailingMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getBuildFailingMap(@NotNull
                                                                                   SRunningBuild build,
                                                                                   @NotNull
                                                                                   java.util.Set<SUser> users)

getBuildProbablyHangingMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getBuildProbablyHangingMap(@NotNull
                                                                                           SRunningBuild build,
                                                                                           @NotNull
                                                                                           java.util.Set<SUser> users)

getLabelingFailedMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getLabelingFailedMap(@NotNull
                                                                                     SBuild build,
                                                                                     @NotNull
                                                                                     VcsRoot vcsRoot,
                                                                                     @NotNull
                                                                                     java.lang.Throwable exception,
                                                                                     @NotNull
                                                                                     java.util.Set<SUser> users)

getBuildTypeResponsibilityChangedMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getBuildTypeResponsibilityChangedMap(@NotNull
                                                                                                     SBuildType buildType,
                                                                                                     @NotNull
                                                                                                     java.util.Set<SUser> users)

getBuildTypeResponsibilityAssignedMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getBuildTypeResponsibilityAssignedMap(@NotNull
                                                                                                      SBuildType buildType,
                                                                                                      @NotNull
                                                                                                      java.util.Set<SUser> users)

getTestResponsibilityChangedMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getTestResponsibilityChangedMap(@NotNull
                                                                                                TestNameResponsibilityEntry newValue,
                                                                                                @Nullable
                                                                                                TestNameResponsibilityEntry oldValue,
                                                                                                @NotNull
                                                                                                SProject project,
                                                                                                @NotNull
                                                                                                java.util.Set<SUser> users)

getTestResponsibilityAssignedMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getTestResponsibilityAssignedMap(@NotNull
                                                                                                 TestNameResponsibilityEntry newValue,
                                                                                                 @Nullable
                                                                                                 TestNameResponsibilityEntry oldValue,
                                                                                                 @NotNull
                                                                                                 SProject project,
                                                                                                 @NotNull
                                                                                                 java.util.Set<SUser> users)

getTestResponsibilityChangedMap

public java.util.Map<java.lang.String,java.lang.Object> getTestResponsibilityChangedMap(@NotNull
                                                                                        java.util.Collection<TestName> testNames,
                                                                                        @NotNull
                                                                                        ResponsibilityEntry entry,
                                                                                        @NotNull
                                                                                        SProject project,
                                                                                        @NotNull
                                                                                        java.util.Set<SUser> users)

getTestResponsibilityAssignedMap

public java.util.Map<java.lang.String,java.lang.Object> getTestResponsibilityAssignedMap(@NotNull
                                                                                         java.util.Collection<TestName> testNames,
                                                                                         @NotNull
                                                                                         ResponsibilityEntry entry,
                                                                                         @NotNull
                                                                                         SProject project,
                                                                                         @NotNull
                                                                                         java.util.Set<SUser> users)

getTestsMutedMap

public java.util.Map<java.lang.String,java.lang.Object> getTestsMutedMap(@NotNull
                                                                         java.util.Collection<STest> tests,
                                                                         @NotNull
                                                                         MuteInfo muteInfo,
                                                                         @NotNull
                                                                         java.util.Set<SUser> users)

getTestsUnmutedMap

public java.util.Map<java.lang.String,java.lang.Object> getTestsUnmutedMap(@NotNull
                                                                           java.util.Collection<STest> tests,
                                                                           @NotNull
                                                                           MuteInfo muteInfo,
                                                                           @Nullable
                                                                           SUser user,
                                                                           @NotNull
                                                                           java.util.Set<SUser> users)

getBuildProblemsResponsibilityAssignedMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getBuildProblemsResponsibilityAssignedMap(@NotNull
                                                                                                          java.util.Collection<BuildProblemInfo> buildProblems,
                                                                                                          @NotNull
                                                                                                          ResponsibilityEntry entry,
                                                                                                          @NotNull
                                                                                                          SProject project,
                                                                                                          @NotNull
                                                                                                          java.util.Set<SUser> users)

getBuildProblemsResponsibilityChangedMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getBuildProblemsResponsibilityChangedMap(@NotNull
                                                                                                         java.util.Collection<BuildProblemInfo> buildProblems,
                                                                                                         @NotNull
                                                                                                         ResponsibilityEntry entry,
                                                                                                         @NotNull
                                                                                                         SProject project,
                                                                                                         @NotNull
                                                                                                         java.util.Set<SUser> users)

getBuildProblemsMutedMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getBuildProblemsMutedMap(@NotNull
                                                                                         java.util.Collection<BuildProblemInfo> buildProblems,
                                                                                         @NotNull
                                                                                         MuteInfo muteInfo,
                                                                                         @NotNull
                                                                                         java.util.Set<SUser> users)

getBuildProblemsUnmutedMap

@NotNull
public java.util.Map<java.lang.String,java.lang.Object> getBuildProblemsUnmutedMap(@NotNull
                                                                                           java.util.Collection<BuildProblemInfo> buildProblems,
                                                                                           @NotNull
                                                                                           MuteInfo muteInfo,
                                                                                           @Nullable
                                                                                           SUser user,
                                                                                           @NotNull
                                                                                           java.util.Set<SUser> users)