Package jetbrains.buildServer.messages
Class BuildServiceMessagesTranslator
- java.lang.Object
 - 
- jetbrains.buildServer.messages.BuildServiceMessagesTranslator
 
 
- 
- All Implemented Interfaces:
 BuildMessagesTranslator,ServerExtension,TeamCityExtension,PositionAware,PositionConstraintAware
public class BuildServiceMessagesTranslator extends Object implements BuildMessagesTranslator, PositionAware
Maintains translators for service messages- See Also:
 ServiceMessage
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBuildServiceMessagesTranslator.InvalidMessagesMode 
- 
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_MESSAGES_ADD_PROBLEM_ON_PARSE_ERROR_PARAM_SUFFIXstatic StringSERVICE_MESSAGES_LOG_ORIGINAL_PARAM_SUFFIXstatic StringTEST_OUTPUT_ORIGIN_TAG 
- 
Constructor Summary
Constructors Constructor Description BuildServiceMessagesTranslator(ExtensionHolder extensionHolder) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BuildMessage1createInvalidServiceMessageProblem(String errorMessage, BuildMessage1 originalMessage)PositionConstraintgetConstraint()Constraint to be respected during objects sorting.static BuildServiceMessagesTranslator.InvalidMessagesModegetInvalidServiceMessagesMode(RunningBuildEx runningBuild)StringgetOrderId()Returns object id that can be referenced by {PositionConstraint}List<BuildMessage1>translateMessages(SRunningBuild build, List<BuildMessage1> messages)Translates the specified messages with help of provided translators. 
 - 
 
- 
- 
Field Detail
- 
SERVICE_MESSAGES_LOG_ORIGINAL_PARAM_SUFFIX
public static final String SERVICE_MESSAGES_LOG_ORIGINAL_PARAM_SUFFIX
- See Also:
 - Constant Field Values
 
 
- 
SERVICE_MESSAGES_ADD_PROBLEM_ON_PARSE_ERROR_PARAM_SUFFIX
public static final String SERVICE_MESSAGES_ADD_PROBLEM_ON_PARSE_ERROR_PARAM_SUFFIX
- See Also:
 - Constant Field Values
 
 
- 
TEST_OUTPUT_ORIGIN_TAG
public static final String TEST_OUTPUT_ORIGIN_TAG
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
BuildServiceMessagesTranslator
public BuildServiceMessagesTranslator(@NotNull ExtensionHolder extensionHolder) 
 - 
 
- 
Method Detail
- 
translateMessages
@NotNull public List<BuildMessage1> translateMessages(@NotNull SRunningBuild build, @NotNull List<BuildMessage1> messages)
Translates the specified messages with help of provided translators.- Specified by:
 translateMessagesin interfaceBuildMessagesTranslator- Parameters:
 build- running build, whose messages are translatedmessages- messages to translate- Returns:
 - list of translated messages
 
 
- 
getOrderId
@NotNull public String getOrderId()
Description copied from interface:PositionAwareReturns object id that can be referenced by {PositionConstraint}- Specified by:
 getOrderIdin interfacePositionAware- Returns:
 - object id
 
 
- 
getConstraint
@NotNull public PositionConstraint getConstraint()
Description copied from interface:PositionConstraintAwareConstraint to be respected during objects sorting.- Specified by:
 getConstraintin interfacePositionConstraintAware- Returns:
 - position constraint
 
 
- 
getInvalidServiceMessagesMode
@NotNull public static BuildServiceMessagesTranslator.InvalidMessagesMode getInvalidServiceMessagesMode(@NotNull RunningBuildEx runningBuild)
 
- 
createInvalidServiceMessageProblem
@NotNull public static BuildMessage1 createInvalidServiceMessageProblem(@NotNull String errorMessage, @NotNull BuildMessage1 originalMessage)
 
 - 
 
 -