Package org.ametys.plugins.core.ui.help
Class HelpSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
com.fasterxml.jackson.databind.ser.std.StdSerializer<HelpLink>
org.ametys.plugins.core.ui.help.HelpSerializer
- All Implemented Interfaces:
JsonFormatVisitable
,SchemaAware
,Serializable
,LogEnabled
,Component
,Contextualizable
,Serviceable
public class HelpSerializer
extends StdSerializer<HelpLink>
implements Component, Serviceable, LogEnabled, Contextualizable
Serializer for
HelpLink
objects.
Returns the help url for the right language, for JSON value.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None
-
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) void
serialize
(HelpLink value, JsonGenerator gen, SerializerProvider provider) void
service
(ServiceManager manager) void
Called at creation time to provide aLogger
.Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
-
Field Details
-
ROLE
The Avalon Role
-
-
Constructor Details
-
HelpSerializer
public HelpSerializer()Constructor
-
-
Method Details
-
serialize
public void serialize(HelpLink value, JsonGenerator gen, SerializerProvider provider) throws IOException - Specified by:
serialize
in classStdSerializer<HelpLink>
- Throws:
IOException
-
setLogger
Description copied from interface:LogEnabled
Called at creation time to provide aLogger
.- Specified by:
setLogger
in interfaceLogEnabled
- Parameters:
logger
- aLogger
for messages.
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-