Class WorkflowSerializationManager
- java.lang.Object
-
- 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
- Version:
- $Revision: 17225 $ $Date: 2015-04-15 17:54:54 -0300 (Wed, 15 Apr 2015) $
-
-
Constructor Summary
Constructors Constructor Description WorkflowSerializationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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) operationWorkflowSerializableConfig
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.
-
-
-
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 interfaceIWorkflowSerializationManager
- 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 interfaceIConfigPersister
- 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 interfaceIWorkflowSerializationManager
- 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 interfaceIWorkflowSerializationManager
-
-