Class ServiceInterfaceInstanceSerializationManager
- java.lang.Object
-
- lumis.portal.serviceinterfaceinstance.serialization.ServiceInterfaceInstanceSerializationManager
-
- All Implemented Interfaces:
IConfigPersister
,IServiceInterfaceInstanceSerializationManager
public class ServiceInterfaceInstanceSerializationManager extends java.lang.Object implements IServiceInterfaceInstanceSerializationManager
Manager for Service Interface Instance serialization- Since:
- 4.0.7
- Version:
- $Revision: 21182 $ $Date: 2018-04-16 21:37:06 -0300 (Mon, 16 Apr 2018) $
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ConfigForeignKey>
foreignKeys
-
Constructor Summary
Constructors Constructor Description ServiceInterfaceInstanceSerializationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deserialize(DeserializationContext deserializationContext, ServiceInterfaceInstanceSerializableConfig serviceInterfaceInstanceSerializableConfig)
Deserialize a service interface instance.void
deserialize(DeserializationContext deserializationContext, ServiceInterfaceInstanceSerializableConfig serviceInterfaceInstanceSerializableConfig, IDirectory directory, java.lang.String interfaceInstanceInputPath, java.lang.String customPropertiesInputPath)
Deserializes a service interface instance from specific output path.SerializationMessageConfigNode
getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
Get aSerializationMessageConfigNode
object containing fully recursive information about a service interface instance.SerializationMessageConfigNode
getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, java.util.EnumSet<SerializationMessageConfigNode.RecursionStopPoints> recursionStopPoints)
Get aSerializationMessageConfigNode
object containing partially recursive information about a service interface instance.boolean
persistConfig(DeserializationContext deserializationContext, java.lang.Object config, boolean firstPersistence)
Performs a config persistance (add or update) operationServiceInterfaceInstanceSerializableConfig
serialize(SerializationContext serializationContext, java.lang.String serviceInterfaceInstanceId)
Serialize a service interface instance.ServiceInterfaceInstanceSerializableConfig
serialize(SerializationContext serializationContext, java.lang.String serviceInterfaceInstanceId, IDirectory directory, java.lang.String interfaceInstanceOutputPath, java.lang.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.
-
-
-
Field Detail
-
foreignKeys
protected final java.util.List<ConfigForeignKey> foreignKeys
-
-
Method Detail
-
deserialize
public void deserialize(DeserializationContext deserializationContext, ServiceInterfaceInstanceSerializableConfig serviceInterfaceInstanceSerializableConfig) throws PortalException
Description copied from interface:IServiceInterfaceInstanceSerializationManager
Deserialize a service interface instance.- Specified by:
deserialize
in interfaceIServiceInterfaceInstanceSerializationManager
- Throws:
PortalException
-
deserialize
public void deserialize(DeserializationContext deserializationContext, ServiceInterfaceInstanceSerializableConfig serviceInterfaceInstanceSerializableConfig, IDirectory directory, java.lang.String interfaceInstanceInputPath, java.lang.String customPropertiesInputPath) throws PortalException
Description copied from interface:IServiceInterfaceInstanceSerializationManager
Deserializes a service interface instance from specific output path. This is usually used with orphan interface instances that must be deserialized from custom locations.- Specified by:
deserialize
in interfaceIServiceInterfaceInstanceSerializationManager
- Parameters:
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 todirectory
.customPropertiesInputPath
- the path where the service interface instance's custom properties (if any) will be deserialized from, relative todirectory
.- Throws:
PortalException
-
persistConfig
public boolean persistConfig(DeserializationContext deserializationContext, java.lang.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 ServiceInterfaceInstanceSerializableConfig serialize(SerializationContext serializationContext, java.lang.String serviceInterfaceInstanceId) throws PortalException
Description copied from interface:IServiceInterfaceInstanceSerializationManager
Serialize a service interface instance.- Specified by:
serialize
in interfaceIServiceInterfaceInstanceSerializationManager
- Returns:
- Throws:
PortalException
-
serialize
public ServiceInterfaceInstanceSerializableConfig serialize(SerializationContext serializationContext, java.lang.String serviceInterfaceInstanceId, IDirectory directory, java.lang.String interfaceInstanceOutputPath, java.lang.String customPropertiesOutputPath) throws PortalException
Description copied from interface:IServiceInterfaceInstanceSerializationManager
Serializes a service interface instance to specific output path. This is usually used with orphan interface instances that must be serialized to custom locations. To deserialize the service interface instance, use #deser- Specified by:
serialize
in interfaceIServiceInterfaceInstanceSerializationManager
- Parameters:
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 todirectory
.customPropertiesOutputPath
- the path where the service interface instance's custom properties (if any) will be serialized to, relative todirectory
.- Returns:
- the serializable object of the service interface instance.
- Throws:
PortalException
-
setupSerializationContext
public void setupSerializationContext(BaseSerializationContext baseSerializationContext)
Description copied from interface:IServiceInterfaceInstanceSerializationManager
Set up a serialization context, defining settings such as class aliases, field aliases, transient fields, omitted collections etc.- Specified by:
setupSerializationContext
in interfaceIServiceInterfaceInstanceSerializationManager
-
getSerializationMessageConfigNode
public SerializationMessageConfigNode getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig) throws PortalException
Description copied from interface:IServiceInterfaceInstanceSerializationManager
Get aSerializationMessageConfigNode
object containing fully recursive information about a service interface instance.- Specified by:
getSerializationMessageConfigNode
in interfaceIServiceInterfaceInstanceSerializationManager
- Returns:
- Throws:
PortalException
-
getSerializationMessageConfigNode
public SerializationMessageConfigNode getSerializationMessageConfigNode(BaseSerializationContext baseSerializationContext, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, java.util.EnumSet<SerializationMessageConfigNode.RecursionStopPoints> recursionStopPoints) throws PortalException
Description copied from interface:IServiceInterfaceInstanceSerializationManager
Get aSerializationMessageConfigNode
object containing partially recursive information about a service interface instance.- Specified by:
getSerializationMessageConfigNode
in interfaceIServiceInterfaceInstanceSerializationManager
- Returns:
- Throws:
PortalException
-
-