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 class
BuildServiceMessagesTranslator.InvalidMessagesMode
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_MESSAGES_ADD_PROBLEM_ON_PARSE_ERROR_PARAM_SUFFIX
static String
SERVICE_MESSAGES_LOG_ORIGINAL_PARAM_SUFFIX
static String
TEST_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 BuildMessage1
createInvalidServiceMessageProblem(String errorMessage, BuildMessage1 originalMessage)
PositionConstraint
getConstraint()
Constraint to be respected during objects sorting.static BuildServiceMessagesTranslator.InvalidMessagesMode
getInvalidServiceMessagesMode(RunningBuildEx runningBuild)
String
getOrderId()
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:
translateMessages
in 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:PositionAware
Returns object id that can be referenced by {PositionConstraint
}- Specified by:
getOrderId
in interfacePositionAware
- Returns:
- object id
-
getConstraint
@NotNull public PositionConstraint getConstraint()
Description copied from interface:PositionConstraintAware
Constraint to be respected during objects sorting.- Specified by:
getConstraint
in 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)
-
-