Package lumis.portal.serialization
Class DeserializationContext
- java.lang.Object
-
- lumis.portal.serialization.BaseSerializationContext
-
- lumis.portal.serialization.DeserializationContext
-
public class DeserializationContext extends BaseSerializationContext
Context class for portal objects deserialization- Since:
- 4.0.7
- Version:
- $Revision: 16323 $ $Date: 2014-07-09 05:17:39 -0300 (Wed, 09 Jul 2014) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeserializationContext.ExistingStyleAction
static class
DeserializationContext.ImportMemberRules
-
Constructor Summary
Constructors Constructor Description DeserializationContext(SessionConfig sessionConfig, ITransaction transaction, java.lang.String rootChannelId, IDirectory directory, boolean createNewIds, boolean updateIfElementExists, boolean importAsChild, boolean deleteExistingElements, boolean simulation, DeserializationContext.ExistingStyleAction existingStyleAction, boolean progressEnabled, boolean includeContent)
-
Method Summary
-
Methods inherited from class lumis.portal.serialization.BaseSerializationContext
getCurrentChannelPath, getDefaultSerializer, getDirectory, getGlobalGroups, getIncludeContent, getItemProgressMax, getItemProgressValue, getOverallProgressMax, getOverallProgressValue, getProcessId, getProgressEnabled, getResource, getRootChannelId, getSerializationSettings, getSessionConfig, getStartTime, getTransaction, incrementItemProgressValue, incrementOverallProgressValue, isShallowSerialization, logDebug, logDebug, logDebug, sendProgressFinalNotification, sendProgressNotification, sendProgressNotification, setCurrentChannelPath, setDefaultSerializer, setDirectory, setItemProgressMax, setItemProgressValue, setOverallProgressMax, setOverallProgressValue, setProcessId, setRootChannelId, setSerializationSettings, setShallowSerialization, setStartTime, updateProgressBar, updateProgressBar
-
-
-
-
Constructor Detail
-
DeserializationContext
public DeserializationContext(SessionConfig sessionConfig, ITransaction transaction, java.lang.String rootChannelId, IDirectory directory, boolean createNewIds, boolean updateIfElementExists, boolean importAsChild, boolean deleteExistingElements, boolean simulation, DeserializationContext.ExistingStyleAction existingStyleAction, boolean progressEnabled, boolean includeContent)
-
-
Method Detail
-
setTransaction
public void setTransaction(ITransaction transaction)
- Overrides:
setTransaction
in classBaseSerializationContext
-
setImportMemberRules
public void setImportMemberRules(DeserializationContext.ImportMemberRules importMemberRules)
-
getImportMemberRules
public DeserializationContext.ImportMemberRules getImportMemberRules()
-
isCreateNewIds
public boolean isCreateNewIds()
-
addIdMapping
public void addIdMapping(java.lang.String id, java.lang.String newId)
-
getDependentConfigPersistences
public DependentConfigOperationCollection<ConfigPersistence> getDependentConfigPersistences()
-
isUpdateIfElementExists
public boolean isUpdateIfElementExists()
-
isImportAsChild
public boolean isImportAsChild()
-
getIdMapping
public java.lang.String getIdMapping(java.lang.String originalId)
-
hasIdMapping
public boolean hasIdMapping(java.lang.String originalId)
-
applyForeignKeyFieldIdMappings
public void applyForeignKeyFieldIdMappings(java.lang.Object target, java.util.List<ConfigForeignKey> foreignKeys) throws SerializationException
- Throws:
SerializationException
-
applyForeignKeyFieldIdMappings
public void applyForeignKeyFieldIdMappings(java.lang.Object target, java.lang.String[] fieldNames) throws SerializationException
- Throws:
SerializationException
-
applyPrimaryKeyFieldIdMappings
public void applyPrimaryKeyFieldIdMappings(java.lang.Object target, java.lang.String[] fieldNames) throws SerializationException
- Throws:
SerializationException
-
persistAllDependentConfigs
public void persistAllDependentConfigs() throws PortalException
- Throws:
PortalException
-
persistDependentConfigs
public void persistDependentConfigs(java.lang.String dependencyKey) throws PortalException
- Throws:
PortalException
-
isMustRollBack
public boolean isMustRollBack()
-
setMustRollBack
public void setMustRollBack()
-
isDeleteExistingElements
public boolean isDeleteExistingElements()
-
isSimulation
public boolean isSimulation()
-
setImportContentOnly
public void setImportContentOnly(boolean importContentOnly)
-
isImportContentOnly
public boolean isImportContentOnly()
-
getExistingStyleAction
public DeserializationContext.ExistingStyleAction getExistingStyleAction()
-
getConfigDeletions
public java.util.Map<java.lang.String,ConfigDeletion> getConfigDeletions()
-
addConfigDeletion
public void addConfigDeletion(ConfigDeletion configDeletion)
-
removeConfigDeletion
public void removeConfigDeletion(java.lang.String configId)
-
getServiceInstanceDeserializationContext
public ServiceInstanceDeserializationContext getServiceInstanceDeserializationContext()
-
addLocalGroupPrefixMapping
public void addLocalGroupPrefixMapping(java.lang.String original, java.lang.String mapped)
-
getLocalGroupPrefixMapping
public java.lang.String getLocalGroupPrefixMapping(java.lang.String original)
-
getOriginalGroupPrefix
public java.lang.String getOriginalGroupPrefix(java.lang.String mapping)
-
-