Class DocumentSerializerServiceImpl

java.lang.Object
org.kuali.rice.krad.service.impl.SerializerServiceBase
org.kuali.rice.krad.service.impl.DocumentSerializerServiceImpl
All Implemented Interfaces:
org.kuali.rice.krad.service.DocumentSerializerService, org.kuali.rice.krad.service.SerializerService, org.springframework.beans.factory.InitializingBean

public class DocumentSerializerServiceImpl extends SerializerServiceBase implements org.kuali.rice.krad.service.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.
  • Constructor Details

    • DocumentSerializerServiceImpl

      public DocumentSerializerServiceImpl()
  • Method Details

    • serializeDocumentToXmlForRouting

      public String serializeDocumentToXmlForRouting(org.kuali.rice.krad.document.Document document)
      Serializes a document for routing
      Specified by:
      serializeDocumentToXmlForRouting in interface org.kuali.rice.krad.service.DocumentSerializerService
      See Also:
      • DocumentSerializerService.serializeDocumentToXmlForRouting(org.kuali.rice.krad.document.Document)
    • wrapDocumentWithMetadata

      protected Object wrapDocumentWithMetadata(org.kuali.rice.krad.document.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
    • getPropertySerizabilityEvaluator

      protected org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluator getPropertySerizabilityEvaluator(Object dataObject)
      Description copied from class: SerializerServiceBase
      Get the appropriate PropertySerializabilityEvaluator for the given dataObject.
      Specified by:
      getPropertySerizabilityEvaluator in class SerializerServiceBase
      Parameters:
      dataObject - the data object
      Returns:
      the evaluator