Class FormatterUtil
java.lang.Object
org.openmetadata.service.formatter.util.FormatterUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ChangeEvent>getChangeEventFromResponseContext(javax.ws.rs.container.ContainerResponseContext responseContext, String updateBy, String method) static MessageParser.EntityLinkgetEntityLink(String fieldName, EntityInterface entity) static StringgetFieldValue(Object fieldValue) static Map<MessageParser.EntityLink,String> getFormattedMessages(MessageDecorator<?> messageFormatter, ChangeDescription changeDescription, EntityInterface entity) getUpdatedField(ChangeEvent event) static StringtransformMessage(MessageDecorator<?> messageFormatter, FieldChange fieldChange, EntityInterface entity, FormatterUtil.CHANGE_TYPE changeType)
-
Constructor Details
-
FormatterUtil
public FormatterUtil()
-
-
Method Details
-
getEntityLink
-
getFieldValue
-
getUpdatedField
-
transformMessage
public static String transformMessage(MessageDecorator<?> messageFormatter, FieldChange fieldChange, EntityInterface entity, FormatterUtil.CHANGE_TYPE changeType) -
getFormattedMessages
public static Map<MessageParser.EntityLink,String> getFormattedMessages(MessageDecorator<?> messageFormatter, ChangeDescription changeDescription, EntityInterface entity) -
getChangeEventFromResponseContext
public static Optional<ChangeEvent> getChangeEventFromResponseContext(javax.ws.rs.container.ContainerResponseContext responseContext, String updateBy, String method)
-