Class ServiceInstanceSerializationManager
- java.lang.Object
-
- lumis.portal.serviceinstance.serialization.ServiceInstanceSerializationManager
-
- All Implemented Interfaces:
IConfigDeleter
,IServiceInstanceSerializationManager
public class ServiceInstanceSerializationManager extends java.lang.Object implements IServiceInstanceSerializationManager
Manager for Service Instance serialization- Since:
- 4.0.7
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ConfigForeignKey>
dependencyForeignKeys
protected java.util.List<ConfigForeignKey>
foreignKeys
-
Constructor Summary
Constructors Constructor Description ServiceInstanceSerializationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteConfig(DeserializationContext deserializationContext, java.lang.String configId)
void
deserialize(DeserializationContext deserializationContext, ServiceInstanceSerializableConfig serviceInstanceSerializableConfig)
Deserialize a service instance.void
deserializeContent(DeserializationContext deserializationContext, ServiceInstanceSerializableConfig serviceInstanceSerializableConfig)
Deserialize service instance content.void
deserializeContent(DeserializationContext deserializationContext, ServiceInstanceConfig serviceInstanceConfig)
Deserialize service instance content.SerializationMessageConfigNode
getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ServiceInstanceConfig serviceInstanceConfig)
Get aSerializationMessageConfigNode
object containing fully recursive information about a service instance.SerializationMessageConfigNode
getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ServiceInstanceConfig serviceInstanceConfig, java.util.EnumSet<SerializationMessageConfigNode.RecursionStopPoints> recursionStopPoints)
Get aSerializationMessageConfigNode
object containing partially recursive information about a service instance.ServiceInstanceSerializableConfig
serialize(SerializationContext serializationContext, java.lang.String serviceInstanceId)
Serialize a service instance.void
setupSerializationContext(BaseSerializationContext baseSerializationContext)
Set up a serialization context, defining settings such as class aliases, field aliases, transient fields, omitted collections etc.
-
-
-
Field Detail
-
foreignKeys
protected final java.util.List<ConfigForeignKey> foreignKeys
-
dependencyForeignKeys
protected final java.util.List<ConfigForeignKey> dependencyForeignKeys
-
-
Method Detail
-
deserialize
public void deserialize(DeserializationContext deserializationContext, ServiceInstanceSerializableConfig serviceInstanceSerializableConfig) throws PortalException
Description copied from interface:IServiceInstanceSerializationManager
Deserialize a service instance.- Specified by:
deserialize
in interfaceIServiceInstanceSerializationManager
- Throws:
PortalException
-
deserializeContent
public void deserializeContent(DeserializationContext deserializationContext, ServiceInstanceSerializableConfig serviceInstanceSerializableConfig) throws PortalException
Description copied from interface:IServiceInstanceSerializationManager
Deserialize service instance content.- Specified by:
deserializeContent
in interfaceIServiceInstanceSerializationManager
- Throws:
PortalException
-
deserializeContent
public void deserializeContent(DeserializationContext deserializationContext, ServiceInstanceConfig serviceInstanceConfig) throws PortalException
Description copied from interface:IServiceInstanceSerializationManager
Deserialize service instance content.- Specified by:
deserializeContent
in interfaceIServiceInstanceSerializationManager
- Throws:
PortalException
-
serialize
public ServiceInstanceSerializableConfig serialize(SerializationContext serializationContext, java.lang.String serviceInstanceId) throws PortalException
Description copied from interface:IServiceInstanceSerializationManager
Serialize a service instance.- Specified by:
serialize
in interfaceIServiceInstanceSerializationManager
- Returns:
- Throws:
PortalException
-
setupSerializationContext
public void setupSerializationContext(BaseSerializationContext baseSerializationContext)
Description copied from interface:IServiceInstanceSerializationManager
Set up a serialization context, defining settings such as class aliases, field aliases, transient fields, omitted collections etc.- Specified by:
setupSerializationContext
in interfaceIServiceInstanceSerializationManager
-
getSerializationMessageConfigNode
public SerializationMessageConfigNode getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ServiceInstanceConfig serviceInstanceConfig) throws PortalException
Description copied from interface:IServiceInstanceSerializationManager
Get aSerializationMessageConfigNode
object containing fully recursive information about a service instance.- Specified by:
getSerializationMessageConfigNode
in interfaceIServiceInstanceSerializationManager
- Returns:
- Throws:
PortalException
-
getSerializationMessageConfigNode
public SerializationMessageConfigNode getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ServiceInstanceConfig serviceInstanceConfig, java.util.EnumSet<SerializationMessageConfigNode.RecursionStopPoints> recursionStopPoints) throws PortalException
Description copied from interface:IServiceInstanceSerializationManager
Get aSerializationMessageConfigNode
object containing partially recursive information about a service instance.- Specified by:
getSerializationMessageConfigNode
in interfaceIServiceInstanceSerializationManager
- Returns:
- Throws:
PortalException
-
deleteConfig
public void deleteConfig(DeserializationContext deserializationContext, java.lang.String configId) throws PortalException
- Specified by:
deleteConfig
in interfaceIConfigDeleter
- Throws:
PortalException
-
-