com.day.cq.workflow.serialization
Interface SerializationService

All Known Implementing Classes:
CQWorkflowSerializationService

public interface SerializationService

The SerializationService manages access to WorkflowModelSerializer services.


Method Summary
 WorkflowModel deserialize(String modelDefinition, String type)
          Deserializes a WorkflowModel instance from the given (textual) model definition.
 String getMimeType(String type)
          Returns the mime type associated with a given type.
 String serialize(WorkflowModel model, String type)
          Serializes the given WorkflowModel into a textual representation.
 

Method Detail

getMimeType

String getMimeType(String type)
Returns the mime type associated with a given type.

Parameters:
type - The type of the serialization format.
Returns:
The mime type associated with the given type or NULL if no serializer with the given type exists.

serialize

String serialize(WorkflowModel model,
                 String type)
                 throws Exception
Serializes the given WorkflowModel into a textual representation.

Parameters:
model - The WorkflowModel to be serialized.
type - The type of the serialization format.
Returns:
A serialized (textual) representation of the WorkflowModel or NULL if no serializer with the given type was found.
Throws:
Exception

deserialize

WorkflowModel deserialize(String modelDefinition,
                          String type)
                          throws Exception
Deserializes a WorkflowModel instance from the given (textual) model definition.

Parameters:
modelDefinition - The model definition as string.
type - The type of the serialization format.
Returns:
The deserialized WorkflowModel or NULL if no serializer with the given type was found.
Throws:
Exception


Copyright © 2008 Day Management AG. All Rights Reserved.