org.kuali.rice.krad.service.impl
Class DocumentSerializerServiceImpl
java.lang.Object
org.kuali.rice.krad.service.impl.SerializerServiceBase
org.kuali.rice.krad.service.impl.DocumentSerializerServiceImpl
- All Implemented Interfaces:
- DocumentSerializerService, SerializerService
public class DocumentSerializerServiceImpl
- extends SerializerServiceBase
- implements DocumentSerializerService
Default implementation of the 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentSerializerServiceImpl
public DocumentSerializerServiceImpl()
serializeDocumentToXmlForRouting
public String serializeDocumentToXmlForRouting(Document document)
- Serializes a document for routing
- Specified by:
serializeDocumentToXmlForRouting
in interface DocumentSerializerService
- Parameters:
document
- the document
- Returns:
- a XML representation of the document
- See Also:
DocumentSerializerService.serializeDocumentToXmlForRouting(org.kuali.rice.krad.document.Document)
wrapDocumentWithMetadata
protected Object wrapDocumentWithMetadata(Document document)
- Wraps the document before it is routed. This implementation defers to
Document.wrapDocumentWithMetadataForXmlSerialization()
.
- Parameters:
document
-
- Returns:
- may return the document, or may return another object that wraps around the document to provide additional metadata
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.