Serialized Form
-
Package com.broadleafcommerce.translation.domain
-
Class com.broadleafcommerce.translation.domain.Translation
class Translation extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
contextState
com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState
A subset ofTracking
information to expose the context state for this object. -
entityField
String entityField
The name of the field on the entity to which this translation applies. -
entityId
String entityId
The ID of the entity to which this translation applies. -
entityType
String entityType
The type of the entity to which this translation applies represented by the repository domain class name. -
id
String id
The context ID of this Translation -
locale
Locale locale
TheLocale
wherein this Translation is applicable -
typeHint
String typeHint
A type hint for this translation entity. This field indicates what kind of entity this translation belongs to. This is not populated by default, and is not persisted. In the case that it is needed, it is up to a service to manually populate this value. -
value
Object value
This field holds the actual translated value. This is anObject
to allow flexibility for what can be translated (ex: aString
or aList
ofStrings
). This should ideally match the type of the value held byTranslation.entityField
.Note, however, that for certain value types, there may be type mismatches with
Translation.entityField
once Jackson deserializes theTranslation.value
received in a request. For example, if a JSON array is received as the value, Jackson will simply deserialize it to aList
. If yourTranslation.entityField
was of typeSet
, it would produce an error inTranslationPostMapperMember
when the value needed to be copied into the entity. Custom deserialization or custom translation logic inTranslationPostMapperMember
may be used to resolve these differences.- See Also:
-
-
-
Package com.broadleafcommerce.translation.jackson
-
Class com.broadleafcommerce.translation.jackson.LocaleFlexibleFormatDeserializer
class LocaleFlexibleFormatDeserializer extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<Locale> implements Serializable- serialVersionUID:
- 1L
-
Class com.broadleafcommerce.translation.jackson.LocaleSerializationModule
class LocaleSerializationModule extends com.fasterxml.jackson.databind.module.SimpleModule implements Serializable- serialVersionUID:
- 1L
-
Class com.broadleafcommerce.translation.jackson.LocaleToLanguageTagSerializer
class LocaleToLanguageTagSerializer extends com.fasterxml.jackson.databind.ser.std.StdSerializer<Locale> implements Serializable- serialVersionUID:
- 1L
-
-
Package com.broadleafcommerce.translation.mapping
-
Exception com.broadleafcommerce.translation.mapping.InvalidTranslationRequestException
class InvalidTranslationRequestException extends RuntimeException implements Serializable
-
-
Package com.broadleafcommerce.translation.provider.jpa.domain
-
Class com.broadleafcommerce.translation.provider.jpa.domain.JpaTranslation
class JpaTranslation extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
_id
String _id
-
contextId
String contextId
- See Also:
-
entityField
String entityField
- See Also:
-
entityId
String entityId
- See Also:
-
entityType
String entityType
- See Also:
-
locale
Locale locale
- See Also:
-
tracking
com.broadleafcommerce.data.tracking.jpa.filtering.domain.FullJpaTracking tracking
- See Also:
-
FullJpaTracking
-
value
String value
- See Also:
-
-
-
Package com.broadleafcommerce.translation.service.dto
-
Class com.broadleafcommerce.translation.service.dto.TranslationsPayload
class TranslationsPayload extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
translations
List<Translation> translations
A list ofTranslation
objects for a request/response payload.
-
-