Package 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:
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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.kuali.rice.krad.service.impl.SerializerServiceBase
SerializerServiceBase.AutoPopulatingListConverter, SerializerServiceBase.ProxyAndStateAwareJavaReflectionProvider, SerializerServiceBase.ProxyConverter, SerializerServiceBase.Serializer<T> -
Field Summary
Fields inherited from class org.kuali.rice.krad.service.impl.SerializerServiceBase
currentPathTracker, evaluators, legacyDataAdapter, pathToSerializationState, xmlObjectSerializerService, xstream, xStreamSecurityService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluatorgetPropertySerizabilityEvaluator(Object dataObject) Get the appropriatePropertySerializabilityEvaluatorfor the given dataObject.serializeDocumentToXmlForRouting(org.kuali.rice.krad.document.Document document) Serializes a document for routingprotected ObjectwrapDocumentWithMetadata(org.kuali.rice.krad.document.Document document) Wraps the document before it is routed.Methods inherited from class org.kuali.rice.krad.service.impl.SerializerServiceBase
afterPropertiesSet, doSerialization, getCurrentPathTracker, getXmlObjectSerializerService, ignoreField, serializeBusinessObjectToXml, setLegacyDataAdapter, setXmlObjectSerializerService, setXStreamSecurityService
-
Constructor Details
-
DocumentSerializerServiceImpl
public DocumentSerializerServiceImpl()
-
-
Method Details
-
serializeDocumentToXmlForRouting
Serializes a document for routing- Specified by:
serializeDocumentToXmlForRoutingin interfaceorg.kuali.rice.krad.service.DocumentSerializerService- See Also:
-
wrapDocumentWithMetadata
Wraps the document before it is routed. This implementation defers toDocument.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:SerializerServiceBaseGet the appropriatePropertySerializabilityEvaluatorfor the given dataObject.- Specified by:
getPropertySerizabilityEvaluatorin classSerializerServiceBase- Parameters:
dataObject- the data object- Returns:
- the evaluator
-