org.kuali.rice.krad.service.impl
Class DocumentSerializerServiceImpl

java.lang.Object
  extended by org.kuali.rice.krad.service.impl.SerializerServiceBase
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.krad.service.impl.SerializerServiceBase
SerializerServiceBase.ProxyAndStateAwareJavaReflectionProvider, SerializerServiceBase.ProxyConverter
 
Field Summary
 
Fields inherited from class org.kuali.rice.krad.service.impl.SerializerServiceBase
evaluators, persistenceService, serializationStates, xmlObjectSerializerService, xstream
 
Constructor Summary
DocumentSerializerServiceImpl()
           
 
Method Summary
 String serializeDocumentToXmlForRouting(Document document)
          Serializes a document for routing
protected  Object wrapDocumentWithMetadata(Document document)
          Wraps the document before it is routed.
 
Methods inherited from class org.kuali.rice.krad.service.impl.SerializerServiceBase
createNewDocumentSerializationState, getPersistenceService, getXmlObjectSerializerService, setPersistenceService, setXmlObjectSerializerService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentSerializerServiceImpl

public DocumentSerializerServiceImpl()
Method Detail

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.