lumis.content.workflow.serialization
Class WorkflowSerializationManager

Package class diagram package WorkflowSerializationManager
java.lang.Object
  extended by lumis.content.workflow.serialization.WorkflowSerializationManager
All Implemented Interfaces:
IWorkflowSerializationManager, IConfigPersister

public class WorkflowSerializationManager
extends Object
implements IWorkflowSerializationManager, IConfigPersister

Manager for Workflow serialization

Since:
4.0.7

Constructor Summary
WorkflowSerializationManager()
           
 
Method Summary
 void deserialize(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext, WorkflowSerializableConfig workflowSerializableConfig)
          Deserialize a content service instance's workflow and its permissions.
protected  SerializationMessageConfigNode getServiceInstanceWorkflowSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ServiceInstanceConfig serviceInstanceConfig, WorkflowPermission workflowPermission)
           
protected  SerializationMessageConfigNode getServiceInstanceWorkflowSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ServiceInstanceConfig serviceInstanceConfig, WorkflowPermission workflowPermission, EnumSet<SerializationMessageConfigNode.RecursionStopPoints> recursionStopPoints)
           
protected  SerializationMessageConfigNode getWorkflowSerializationMessageConfigNode(String workflowId)
           
 boolean persistConfig(DeserializationContext deserializationContext, Object config, boolean firstPersistence)
          Performs a config persistance (add or update) operation
 WorkflowSerializableConfig serialize(ServiceInstanceSerializationContext serviceInstanceSerializationContext)
          Serialize a content service instance's workflow and its permissions.
 void setupSerializationContext(ServiceInstanceBaseSerializationContext serviceInstanceBaseSerializationContext)
          Set up a serialization context, defining settings such as class aliases, field aliases, transient fields, omitted collections etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowSerializationManager

public WorkflowSerializationManager()
Method Detail

deserialize

public void deserialize(ServiceInstanceDeserializationContext serviceInstanceDeserializationContext,
                        WorkflowSerializableConfig workflowSerializableConfig)
                 throws PortalException
Description copied from interface: IWorkflowSerializationManager
Deserialize a content service instance's workflow and its permissions.

Specified by:
deserialize in interface IWorkflowSerializationManager
Throws:
PortalException

persistConfig

public boolean persistConfig(DeserializationContext deserializationContext,
                             Object config,
                             boolean firstPersistence)
                      throws PortalException
Description copied from interface: IConfigPersister
Performs a config persistance (add or update) operation

Specified by:
persistConfig in interface IConfigPersister
Returns:
Throws:
PortalException

serialize

public WorkflowSerializableConfig serialize(ServiceInstanceSerializationContext serviceInstanceSerializationContext)
                                     throws PortalException
Description copied from interface: IWorkflowSerializationManager
Serialize a content service instance's workflow and its permissions.

Specified by:
serialize in interface IWorkflowSerializationManager
Returns:
Throws:
PortalException

getWorkflowSerializationMessageConfigNode

protected SerializationMessageConfigNode getWorkflowSerializationMessageConfigNode(String workflowId)

getServiceInstanceWorkflowSerializationMessageConfigNode

protected SerializationMessageConfigNode getServiceInstanceWorkflowSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext,
                                                                                                  ServiceInstanceConfig serviceInstanceConfig,
                                                                                                  WorkflowPermission workflowPermission)
                                                                                           throws PortalException
Throws:
PortalException

getServiceInstanceWorkflowSerializationMessageConfigNode

protected SerializationMessageConfigNode getServiceInstanceWorkflowSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext,
                                                                                                  ServiceInstanceConfig serviceInstanceConfig,
                                                                                                  WorkflowPermission workflowPermission,
                                                                                                  EnumSet<SerializationMessageConfigNode.RecursionStopPoints> recursionStopPoints)
                                                                                           throws PortalException
Throws:
PortalException

setupSerializationContext

public void setupSerializationContext(ServiceInstanceBaseSerializationContext serviceInstanceBaseSerializationContext)
Description copied from interface: IWorkflowSerializationManager
Set up a serialization context, defining settings such as class aliases, field aliases, transient fields, omitted collections etc.

Specified by:
setupSerializationContext in interface IWorkflowSerializationManager


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.