public class AttachmentSerializationHandler extends Object implements FormDataSerializationHandler
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_FILE_ID |
static String |
ATTRIBUTE_FILES |
static String |
ATTRIBUTE_TYPE |
static String |
ATTRIBUTE_VALUE_ATTACHMENT |
Constructor and Description |
---|
AttachmentSerializationHandler(ContentManager contentManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Object value)
Returns whether the given value can be handled or not.
|
Object |
process(Object value)
Processes the given value and returns the resulting serialized value.
|
public static final String ATTRIBUTE_TYPE
public static final String ATTRIBUTE_FILES
public static final String ATTRIBUTE_VALUE_ATTACHMENT
public static final String ATTRIBUTE_FILE_ID
public AttachmentSerializationHandler(ContentManager contentManager)
public boolean accept(Object value)
FormDataSerializationHandler
Returns whether the given value can be handled or not.
accept
in interface FormDataSerializationHandler
value
- the value to decide on whether it can be handledpublic Object process(Object value)
FormDataSerializationHandler
Processes the given value and returns the resulting serialized value.
process
in interface FormDataSerializationHandler
value
- the value to processCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.