public class DocumentSerializerServiceImpl extends SerializerServiceBase implements DocumentSerializerService
DocumentSerializerService
. If no <workflowProperties> have been defined in the
data dictionary for a document type (i.e. Document.getDocumentPropertySerizabilityEvaluator()
returns an instance of
AlwaysTruePropertySerializibilityEvaluator
), then this service will revert to using the XmlObjectSerializerService
bean, which was the old way of serializing a document for routing. If workflowProperties are defined, then this implementation
will selectively serialize items.SerializerServiceBase.AutoPopulatingListConverter, SerializerServiceBase.ProxyAndStateAwareJavaReflectionProvider, SerializerServiceBase.ProxyConverter
evaluators, legacyDataAdapter, serializationStates, xmlObjectSerializerService, xstream
Constructor and Description |
---|
DocumentSerializerServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected PropertySerializabilityEvaluator |
getPropertySerizabilityEvaluator(Object dataObject)
Get the appropriate
PropertySerializabilityEvaluator for the given dataObject. |
String |
serializeDocumentToXmlForRouting(Document document)
Serializes a document for routing
|
protected Object |
wrapDocumentWithMetadata(Document document)
Wraps the document before it is routed.
|
createNewDocumentSerializationState, getXmlObjectSerializerService, ignoreField, serializeBusinessObjectToXml, setLegacyDataAdapter, setXmlObjectSerializerService
public DocumentSerializerServiceImpl()
public String serializeDocumentToXmlForRouting(Document document)
serializeDocumentToXmlForRouting
in interface DocumentSerializerService
document
- the documentDocumentSerializerService.serializeDocumentToXmlForRouting(org.kuali.rice.krad.document.Document)
protected Object wrapDocumentWithMetadata(Document document)
Document.wrapDocumentWithMetadataForXmlSerialization()
.document
- protected PropertySerializabilityEvaluator getPropertySerizabilityEvaluator(Object dataObject)
SerializerServiceBase
PropertySerializabilityEvaluator
for the given dataObject.getPropertySerizabilityEvaluator
in class SerializerServiceBase
dataObject
- the data objectCopyright © 2005–2016 The Kuali Foundation. All rights reserved.