Class FileValueSerializer

java.lang.Object
org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer<org.camunda.bpm.engine.variable.value.FileValue>
org.camunda.bpm.engine.impl.variable.serializer.FileValueSerializer
All Implemented Interfaces:
TypedValueSerializer<org.camunda.bpm.engine.variable.value.FileValue>

public class FileValueSerializer extends AbstractTypedValueSerializer<org.camunda.bpm.engine.variable.value.FileValue>
Since:
7.4
Author:
Ronny Bräunlich
  • Field Details

    • NR_OF_VALUES_IN_TEXTFIELD2

      protected static final int NR_OF_VALUES_IN_TEXTFIELD2
      The numbers values we encoded in textfield two.
      See Also:
    • MIMETYPE_ENCODING_SEPARATOR

      protected static final String MIMETYPE_ENCODING_SEPARATOR
      The separator to be able to store encoding and mimetype inside the same text field. Please be aware that the separator only works when it is a character that is not allowed in the first component.
      See Also:
  • Constructor Details

    • FileValueSerializer

      public FileValueSerializer()
  • Method Details

    • writeValue

      public void writeValue(org.camunda.bpm.engine.variable.value.FileValue value, ValueFields valueFields)
      Description copied from interface: TypedValueSerializer
      Serialize a TypedValue to the ValueFields.
      Parameters:
      value - the TypedValue to persist
      valueFields - the ValueFields to which the value should be persisted
    • convertToTypedValue

      public org.camunda.bpm.engine.variable.value.FileValue convertToTypedValue(org.camunda.bpm.engine.variable.impl.value.UntypedValueImpl untypedValue)
      Description copied from interface: TypedValueSerializer
      Returns a typed value for the provided untyped value. This is used on cases where the user sets an untyped value which is then detected to be handled by this TypedValueSerializer (by invocation of TypedValueSerializer.canHandle(TypedValue)).
      Parameters:
      untypedValue - the untyped value
      Returns:
      the corresponding typed value
    • readValue

      public org.camunda.bpm.engine.variable.value.FileValue readValue(ValueFields valueFields, boolean deserializeValue, boolean asTransientValue)
      Description copied from interface: TypedValueSerializer
      Retrieve a TypedValue from the provided ValueFields.
      Parameters:
      valueFields - the ValueFields to retrieve the value from
      deserializeValue - indicates whether a SerializableValue should be deserialized.
      Returns:
      the TypedValue
    • returnNullIfEmptyString

      protected String returnNullIfEmptyString(String s)
    • getName

      public String getName()
      Description copied from interface: TypedValueSerializer
      The name of this serializer. The name is used when persisting the ValueFields populated by this serializer.
      Returns:
      the name of this serializer.
    • canWriteValue

      protected boolean canWriteValue(org.camunda.bpm.engine.variable.value.TypedValue value)
      Specified by:
      canWriteValue in class AbstractTypedValueSerializer<org.camunda.bpm.engine.variable.value.FileValue>