Package lumis.portal.serialization
Class SerializationManager
- java.lang.Object
-
- lumis.portal.serialization.SerializationManager
-
- All Implemented Interfaces:
ISerializationManager
public class SerializationManager extends java.lang.Object implements ISerializationManager
Implements the serialization and deseralization of a channel tree.- Since:
- 4.0.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description SerializationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
deserialize(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction)
protected void
deserializeAccessControlLists(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, boolean onlyAddSimpleAcls, ITransaction transaction)
protected java.lang.String
deserializeChannels(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction)
protected void
deserializeChannelsSecondPass(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction)
protected void
deserializeCss(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction)
protected void
deserializeLocalGroups(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction)
protected void
deserializePages(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction)
protected void
deserializePageServiceInterfaceInstances(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction)
protected void
deserializePageTemplates(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, boolean firstDeserialization, ITransaction transaction)
protected void
deserializePageTemplateServiceInterfaceInstances(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction)
protected void
deserializeServiceInstanceDependencies(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction)
protected void
deserializeServiceInstances(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction)
protected void
deserializeServiceInterfaceInstances(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, boolean isTemplate, ITransaction transaction)
protected void
deserializeStyles(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction)
protected void
deserializeTemplateChannelLinks(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction)
protected void
loadChannelCssIdsRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.util.HashMap<java.lang.String,java.lang.String> cssIdMap, ITransaction transaction)
protected void
loadPageCssIdsRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.util.HashMap<java.lang.String,java.lang.String> cssIdMap, ITransaction transaction)
java.io.OutputStream
serialize(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeAccessControlLists(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeChannelAccessControlListRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeChannelLocalGroupAccessControlListRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeChannelLocalGroupsRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeChannelPageAccessControlListRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeChannelPagesRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeChannelRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeChannels(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeChannelServiceInstanceAccessControlListRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeChannelServiceInstancesRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeChannelServiceInterfaceInstancesRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeChannelTemplateLinks(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeChannelTemplateLinksRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeCss(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeLocalGroups(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializePage(SessionConfig sessionConfig, java.lang.String pageId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializePages(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializePageServiceInterfaceInstances(SessionConfig sessionConfig, java.lang.String pageId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeServiceInstance(SessionConfig sessionConfig, java.lang.String serviceInstanceId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeServiceInstanceDependencies(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeServiceInstanceDependenciesRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeServiceInstances(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeServiceInterfaceInstance(SessionConfig sessionConfig, java.lang.String serviceInterfaceInstanceId, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeServiceInterfaceInstances(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction)
protected void
serializeStyles(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction)
-
-
-
Method Detail
-
deserialize
public java.lang.String deserialize(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction) throws ManagerException, PortalException
- Specified by:
deserialize
in interfaceISerializationManager
- Returns:
- Throws:
ManagerException
PortalException
-
serialize
public java.io.OutputStream serialize(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Specified by:
serialize
in interfaceISerializationManager
- Returns:
- Throws:
ManagerException
PortalException
-
serializeChannels
protected void serializeChannels(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeChannelTemplateLinks
protected void serializeChannelTemplateLinks(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeAccessControlLists
protected void serializeAccessControlLists(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeChannelAccessControlListRecursively
protected void serializeChannelAccessControlListRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeChannelServiceInstanceAccessControlListRecursively
protected void serializeChannelServiceInstanceAccessControlListRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeChannelLocalGroupAccessControlListRecursively
protected void serializeChannelLocalGroupAccessControlListRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeChannelPageAccessControlListRecursively
protected void serializeChannelPageAccessControlListRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializeChannels
protected java.lang.String deserializeChannels(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializeChannelsSecondPass
protected void deserializeChannelsSecondPass(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializeTemplateChannelLinks
protected void deserializeTemplateChannelLinks(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializeAccessControlLists
protected void deserializeAccessControlLists(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, boolean onlyAddSimpleAcls, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializePages
protected void deserializePages(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializePageTemplateServiceInterfaceInstances
protected void deserializePageTemplateServiceInterfaceInstances(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializePageServiceInterfaceInstances
protected void deserializePageServiceInterfaceInstances(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializeServiceInterfaceInstances
protected void deserializeServiceInterfaceInstances(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, boolean isTemplate, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializePageTemplates
protected void deserializePageTemplates(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, boolean firstDeserialization, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializeServiceInstances
protected void deserializeServiceInstances(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializeLocalGroups
protected void deserializeLocalGroups(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeChannelRecursively
protected void serializeChannelRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeChannelTemplateLinksRecursively
protected void serializeChannelTemplateLinksRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializePages
protected void serializePages(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeChannelPagesRecursively
protected void serializeChannelPagesRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializePage
protected void serializePage(SessionConfig sessionConfig, java.lang.String pageId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeChannelServiceInterfaceInstancesRecursively
protected void serializeChannelServiceInterfaceInstancesRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeServiceInterfaceInstances
protected void serializeServiceInterfaceInstances(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializePageServiceInterfaceInstances
protected void serializePageServiceInterfaceInstances(SessionConfig sessionConfig, java.lang.String pageId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeServiceInterfaceInstance
protected void serializeServiceInterfaceInstance(SessionConfig sessionConfig, java.lang.String serviceInterfaceInstanceId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeLocalGroups
protected void serializeLocalGroups(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeChannelLocalGroupsRecursively
protected void serializeChannelLocalGroupsRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeServiceInstances
protected void serializeServiceInstances(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeChannelServiceInstancesRecursively
protected void serializeChannelServiceInstancesRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeServiceInstance
protected void serializeServiceInstance(SessionConfig sessionConfig, java.lang.String serviceInstanceId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializeCss
protected void deserializeCss(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeCss
protected void serializeCss(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
loadChannelCssIdsRecursively
protected void loadChannelCssIdsRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.util.HashMap<java.lang.String,java.lang.String> cssIdMap, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
loadPageCssIdsRecursively
protected void loadPageCssIdsRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.util.HashMap<java.lang.String,java.lang.String> cssIdMap, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeServiceInstanceDependencies
protected void serializeServiceInstanceDependencies(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeServiceInstanceDependenciesRecursively
protected void serializeServiceInstanceDependenciesRecursively(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.lang.String channelId, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializeServiceInstanceDependencies
protected void deserializeServiceInstanceDependencies(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
serializeStyles
protected void serializeStyles(SessionConfig sessionConfig, SerializationConfig serializationConfig, java.io.OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserializeStyles
protected void deserializeStyles(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, org.w3c.dom.Document importDocument, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
-