Class ConfluenceUserPersister
- java.lang.Object
-
- com.atlassian.confluence.importexport.xmlimport.persister.AbstractObjectPersister
-
- com.atlassian.confluence.importexport.xmlimport.persister.ConfluenceUserPersister
-
- All Implemented Interfaces:
ObjectPersister
@Deprecated public class ConfluenceUserPersister extends AbstractObjectPersister
Deprecated.since 7.17.0aObjectPersister
implementation that handles importedConfluenceUserImpl
objects. It tries to match the imported object with existing user mappings. If it's unable to find a corresponding mapping, a new mapping entity is created.- Since:
- 6.15
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.importexport.xmlimport.persister.AbstractObjectPersister
entityPersister, importedObject, NAME_BUCKET_CLOB_STRING_TYPE, NAME_CRYPTOGRAPHIC_KEY_TYPE, NAME_CUSTOM_CLOB_TYPE, NAME_INSTANT_TYPE, NAME_NAMESPACE_USER_TYPE, NAME_SPOOLING_BLOB_INPUT_STREAM_TYPE, NAME_USER_KEY_TYPE, persisterOperations, unsatisfiedObjectDependencies
-
-
Constructor Summary
Constructors Constructor Description ConfluenceUserPersister(ConfluenceUserDao confluenceUserDao, com.atlassian.crowd.embedded.api.CrowdDirectoryService directoryService, InternalUserDao crowdUserDao)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<TransientHibernateHandle>
persist(ImportProcessorContext context, ImportedObject importedObject)
Deprecated.See this page for a chart explaining various cases covered by this method: https://extranet.atlassian.com/display/MEGALODON/How+does+Confluence+handle+user+import-
Methods inherited from class com.atlassian.confluence.importexport.xmlimport.persister.AbstractObjectPersister
getPrimitivePropertyValue, getReferencePropertyValue
-
-
-
-
Constructor Detail
-
ConfluenceUserPersister
public ConfluenceUserPersister(ConfluenceUserDao confluenceUserDao, com.atlassian.crowd.embedded.api.CrowdDirectoryService directoryService, InternalUserDao crowdUserDao)
Deprecated.
-
-
Method Detail
-
persist
public List<TransientHibernateHandle> persist(ImportProcessorContext context, ImportedObject importedObject) throws Exception
Deprecated.See this page for a chart explaining various cases covered by this method: https://extranet.atlassian.com/display/MEGALODON/How+does+Confluence+handle+user+import- Parameters:
context
- the context of the current import operationimportedObject
- the object to save.- Returns:
- a list of handles of the objects that were saved. If IDs are being rewritten on import, this list should still contain the pre-rewriting ID as it appears in the backup file
- Throws:
Exception
- if something goes wrong. To avoid duplication of "wrap everything in one exception type" code in every persister, it is assumed wrapping happens at a higher level.
-
-