lumis.portal.serialization
Class DeserializationContext

Package class diagram package DeserializationContext
java.lang.Object
  extended by lumis.portal.serialization.BaseSerializationContext
      extended by lumis.portal.serialization.DeserializationContext

public class DeserializationContext
extends BaseSerializationContext

Context class for portal objects deserialization

Since:
4.0.7

Nested Class Summary
static class DeserializationContext.ExistingStyleAction
           
 
Constructor Summary
DeserializationContext(SessionConfig sessionConfig, ITransaction transaction, String rootChannelId, IDirectory directory, boolean createNewIds, boolean updateIfElementExists, boolean importAccessControlLists, boolean importAsChild, boolean deleteExistingElements, boolean simulation, DeserializationContext.ExistingStyleAction existingStyleAction, boolean progressEnabled, boolean includeContent, boolean includeGlobalPrincipals)
           
 
Method Summary
 void addConfigDeletion(ConfigDeletion configDeletion)
           
 void addIdMapping(String id, String newId)
           
 void applyForeignKeyFieldIdMappings(Object target, List<ConfigForeignKey> foreignKeys)
           
 void applyForeignKeyFieldIdMappings(Object target, String[] fieldNames)
           
 void applyPrimaryKeyFieldIdMappings(Object target, String[] fieldNames)
           
 Map<String,ConfigDeletion> getConfigDeletions()
           
 DependentConfigOperationCollection<ConfigPersistence> getDependentConfigPersistences()
           
 DeserializationContext.ExistingStyleAction getExistingStyleAction()
           
 String getIdMapping(String originalId)
           
 ServiceInstanceDeserializationContext getServiceInstanceDeserializationContext()
           
 boolean hasIdMapping(String originalId)
           
 boolean isCreateNewIds()
           
 boolean isDeleteExistingElements()
           
 boolean isImportAccessControlLists()
           
 boolean isImportAsChild()
           
 boolean isMustRollBack()
           
 boolean isSimulation()
           
 boolean isUpdateIfElementExists()
           
 void persistAllDependentConfigs()
           
 void persistDependentConfigs(String dependencyKey)
           
 void removeConfigDeletion(String configId)
           
 void setMustRollBack()
           
 
Methods inherited from class lumis.portal.serialization.BaseSerializationContext
getCurrentChannelPath, getDirectory, getIncludeContent, getIncludeGlobalPrincipals, getItemProgressMax, getItemProgressValue, getOverallProgressMax, getOverallProgressValue, getProcessId, getProgressEnabled, getResource, getRootChannelId, getSerializationSettings, getSessionConfig, getStartTime, getTransaction, incrementItemProgressValue, incrementOverallProgressValue, logDebug, logDebug, logDebug, sendProgressFinalNotification, sendProgressNotification, sendProgressNotification, setCurrentChannelPath, setDirectory, setItemProgressMax, setItemProgressValue, setOverallProgressMax, setOverallProgressValue, setProcessId, setRootChannelId, setSerializationSettings, setStartTime, setTransaction, updateProgressBar, updateProgressBar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeserializationContext

public DeserializationContext(SessionConfig sessionConfig,
                              ITransaction transaction,
                              String rootChannelId,
                              IDirectory directory,
                              boolean createNewIds,
                              boolean updateIfElementExists,
                              boolean importAccessControlLists,
                              boolean importAsChild,
                              boolean deleteExistingElements,
                              boolean simulation,
                              DeserializationContext.ExistingStyleAction existingStyleAction,
                              boolean progressEnabled,
                              boolean includeContent,
                              boolean includeGlobalPrincipals)
Method Detail

isCreateNewIds

public boolean isCreateNewIds()

addIdMapping

public void addIdMapping(String id,
                         String newId)

getDependentConfigPersistences

public DependentConfigOperationCollection<ConfigPersistence> getDependentConfigPersistences()

isImportAccessControlLists

public boolean isImportAccessControlLists()

isUpdateIfElementExists

public boolean isUpdateIfElementExists()

isImportAsChild

public boolean isImportAsChild()

getIdMapping

public String getIdMapping(String originalId)

hasIdMapping

public boolean hasIdMapping(String originalId)

applyForeignKeyFieldIdMappings

public void applyForeignKeyFieldIdMappings(Object target,
                                           List<ConfigForeignKey> foreignKeys)
                                    throws SerializationException
Throws:
SerializationException

applyForeignKeyFieldIdMappings

public void applyForeignKeyFieldIdMappings(Object target,
                                           String[] fieldNames)
                                    throws SerializationException
Throws:
SerializationException

applyPrimaryKeyFieldIdMappings

public void applyPrimaryKeyFieldIdMappings(Object target,
                                           String[] fieldNames)
                                    throws SerializationException
Throws:
SerializationException

persistAllDependentConfigs

public void persistAllDependentConfigs()
                                throws PortalException
Throws:
PortalException

persistDependentConfigs

public void persistDependentConfigs(String dependencyKey)
                             throws PortalException
Throws:
PortalException

isMustRollBack

public boolean isMustRollBack()

setMustRollBack

public void setMustRollBack()

isDeleteExistingElements

public boolean isDeleteExistingElements()

isSimulation

public boolean isSimulation()

getExistingStyleAction

public DeserializationContext.ExistingStyleAction getExistingStyleAction()

getConfigDeletions

public Map<String,ConfigDeletion> getConfigDeletions()

addConfigDeletion

public void addConfigDeletion(ConfigDeletion configDeletion)

removeConfigDeletion

public void removeConfigDeletion(String configId)

getServiceInstanceDeserializationContext

public ServiceInstanceDeserializationContext getServiceInstanceDeserializationContext()


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.