public class ServiceInterfaceInstanceSerializationManager extends Object implements IServiceInterfaceInstanceSerializationManager
Modifier and Type | Field and Description |
---|---|
protected List<ConfigForeignKey> |
foreignKeys |
Constructor and Description |
---|
ServiceInterfaceInstanceSerializationManager() |
Modifier and Type | Method and Description |
---|---|
void |
deserialize(DeserializationContext deserializationContext,
ServiceInterfaceInstanceSerializableConfig serviceInterfaceInstanceSerializableConfig)
Deserialize a service interface instance.
|
void |
deserialize(DeserializationContext deserializationContext,
ServiceInterfaceInstanceSerializableConfig serviceInterfaceInstanceSerializableConfig,
IDirectory directory,
String interfaceInstanceInputPath,
String customPropertiesInputPath)
Deserializes a service interface instance from specific output path.
|
SerializationMessageConfigNode |
getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext,
ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
Get a
SerializationMessageConfigNode object containing fully recursive information about a service interface instance. |
SerializationMessageConfigNode |
getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext,
ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig,
EnumSet<SerializationMessageConfigNode.RecursionStopPoints> recursionStopPoints)
Get a
SerializationMessageConfigNode object containing partially recursive information about a service interface instance. |
boolean |
persistConfig(DeserializationContext deserializationContext,
Object config,
boolean firstPersistence)
Performs a config persistance (add or update) operation
|
ServiceInterfaceInstanceSerializableConfig |
serialize(SerializationContext serializationContext,
String serviceInterfaceInstanceId)
Serialize a service interface instance.
|
ServiceInterfaceInstanceSerializableConfig |
serialize(SerializationContext serializationContext,
String serviceInterfaceInstanceId,
IDirectory directory,
String interfaceInstanceOutputPath,
String customPropertiesOutputPath)
Serializes a service interface instance to specific output path.
|
void |
setupSerializationContext(BaseSerializationContext baseSerializationContext)
Set up a serialization context, defining settings such as class aliases, field aliases, transient fields, omitted collections etc.
|
protected final List<ConfigForeignKey> foreignKeys
public ServiceInterfaceInstanceSerializationManager()
public void deserialize(DeserializationContext deserializationContext, ServiceInterfaceInstanceSerializableConfig serviceInterfaceInstanceSerializableConfig) throws PortalException
IServiceInterfaceInstanceSerializationManager
deserialize
in interface IServiceInterfaceInstanceSerializationManager
PortalException
public void deserialize(DeserializationContext deserializationContext, ServiceInterfaceInstanceSerializableConfig serviceInterfaceInstanceSerializableConfig, IDirectory directory, String interfaceInstanceInputPath, String customPropertiesInputPath) throws PortalException
IServiceInterfaceInstanceSerializationManager
deserialize
in interface IServiceInterfaceInstanceSerializationManager
deserializationContext
- the deserialization context.directory
- the directory the paths are relative to.interfaceInstanceInputPath
- the path where the service interface instance will be deserialized from,
relative to directory
.customPropertiesInputPath
- the path where the service interface instance's custom properties (if any) will
be deserialized from, relative to directory
.PortalException
public boolean persistConfig(DeserializationContext deserializationContext, Object config, boolean firstPersistence) throws PortalException
IConfigPersister
persistConfig
in interface IConfigPersister
PortalException
public ServiceInterfaceInstanceSerializableConfig serialize(SerializationContext serializationContext, String serviceInterfaceInstanceId) throws PortalException
IServiceInterfaceInstanceSerializationManager
serialize
in interface IServiceInterfaceInstanceSerializationManager
PortalException
public ServiceInterfaceInstanceSerializableConfig serialize(SerializationContext serializationContext, String serviceInterfaceInstanceId, IDirectory directory, String interfaceInstanceOutputPath, String customPropertiesOutputPath) throws PortalException
IServiceInterfaceInstanceSerializationManager
serialize
in interface IServiceInterfaceInstanceSerializationManager
serializationContext
- the serialization context.serviceInterfaceInstanceId
- the service interface instance identifier.directory
- the directory the paths are relative to.interfaceInstanceOutputPath
- the path where the service interface instance will be serialized to, relative
to directory
.customPropertiesOutputPath
- the path where the service interface instance's custom properties (if any) will
be serialized to, relative to directory
.PortalException
public void setupSerializationContext(BaseSerializationContext baseSerializationContext)
IServiceInterfaceInstanceSerializationManager
setupSerializationContext
in interface IServiceInterfaceInstanceSerializationManager
public SerializationMessageConfigNode getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig) throws PortalException
IServiceInterfaceInstanceSerializationManager
SerializationMessageConfigNode
object containing fully recursive information about a service interface instance.getSerializationMessageConfigNode
in interface IServiceInterfaceInstanceSerializationManager
PortalException
public SerializationMessageConfigNode getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, EnumSet<SerializationMessageConfigNode.RecursionStopPoints> recursionStopPoints) throws PortalException
IServiceInterfaceInstanceSerializationManager
SerializationMessageConfigNode
object containing partially recursive information about a service interface instance.getSerializationMessageConfigNode
in interface IServiceInterfaceInstanceSerializationManager
PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.