Class ServiceInstanceDeserializationContext
- java.lang.Object
-
- lumis.portal.serviceinstance.serialization.ServiceInstanceBaseSerializationContext
-
- lumis.portal.serviceinstance.serialization.ServiceInstanceDeserializationContext
-
public class ServiceInstanceDeserializationContext extends ServiceInstanceBaseSerializationContext
Context class for service instances deserialization- Since:
- 4.0.8
- Version:
- $Revision: 9947 $ $Date: 2008-12-04 13:35:12 -0200 (Thu, 04 Dec 2008) $
-
-
Field Summary
-
Fields inherited from class lumis.portal.serviceinstance.serialization.ServiceInstanceBaseSerializationContext
serviceInstanceId, serviceInstanceName
-
-
Constructor Summary
Constructors Constructor Description ServiceInstanceDeserializationContext(DeserializationContext deserializationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyForeignKeyFieldIdMappings(java.lang.Object target, java.lang.String[] fieldNames)
void
applyPrimaryKeyFieldIdMappings(java.lang.Object target, java.lang.String[] fieldNames)
DependentConfigOperationCollection<ConfigPersistence>
getDependentConfigPersistences()
DeserializationContext
getDeserializationContext()
java.lang.String
getIdMapping(java.lang.String originalId)
java.lang.String
getMappedServiceInstanceId()
SessionConfig
getSessionConfig()
ITransaction
getTransaction()
boolean
isCreateNewIds()
boolean
isCreating()
Returns whether the service instance is being created or updated.boolean
isImportAsChild()
boolean
isMustRollBack()
boolean
isUpdateIfElementExists()
void
persistDependentConfigs(java.lang.String dependencyKey)
void
sendProgressFinalNotification(java.lang.String message, ProgressConfig.Type type)
void
sendProgressNotification(java.lang.String message, ProgressConfig.Type type)
void
sendProgressNotification(org.w3c.dom.Document messageDoc, java.lang.String styleFilename, ProgressConfig.Type type)
void
setCreating(boolean creating)
void
setMustRollBack()
-
Methods inherited from class lumis.portal.serviceinstance.serialization.ServiceInstanceBaseSerializationContext
finalizeInnerProgressBar, getDataDirectory, getIncludeContent, getProcessId, getSerializationSettings, getServiceInstanceId, getServiceInstanceName, getStructureDirectory, initializeInnerProgressBar, logDebug, logDebug, logDebug, setServiceInstanceId, setServiceInstanceName, updateInnerProgressBar
-
-
-
-
Constructor Detail
-
ServiceInstanceDeserializationContext
public ServiceInstanceDeserializationContext(DeserializationContext deserializationContext)
-
-
Method Detail
-
getDeserializationContext
public DeserializationContext getDeserializationContext()
-
getSessionConfig
public SessionConfig getSessionConfig()
- Specified by:
getSessionConfig
in classServiceInstanceBaseSerializationContext
-
getTransaction
public ITransaction getTransaction()
- Specified by:
getTransaction
in classServiceInstanceBaseSerializationContext
-
getIdMapping
public java.lang.String getIdMapping(java.lang.String originalId)
-
getMappedServiceInstanceId
public java.lang.String getMappedServiceInstanceId()
-
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
-
isCreateNewIds
public boolean isCreateNewIds()
-
isImportAsChild
public boolean isImportAsChild()
-
isUpdateIfElementExists
public boolean isUpdateIfElementExists()
-
sendProgressNotification
public void sendProgressNotification(java.lang.String message, ProgressConfig.Type type) throws PortalException
- Throws:
PortalException
-
sendProgressNotification
public void sendProgressNotification(org.w3c.dom.Document messageDoc, java.lang.String styleFilename, ProgressConfig.Type type) throws PortalException
- Throws:
PortalException
-
sendProgressFinalNotification
public void sendProgressFinalNotification(java.lang.String message, ProgressConfig.Type type) throws PortalException
- Throws:
PortalException
-
isMustRollBack
public boolean isMustRollBack()
-
setMustRollBack
public void setMustRollBack()
-
getDependentConfigPersistences
public DependentConfigOperationCollection<ConfigPersistence> getDependentConfigPersistences()
-
persistDependentConfigs
public void persistDependentConfigs(java.lang.String dependencyKey) throws PortalException
- Throws:
PortalException
-
isCreating
public boolean isCreating()
Returns whether the service instance is being created or updated.- Returns:
- true if being created.
- Since:
- 4.2.0
-
setCreating
public void setCreating(boolean creating)
-
-