public class ConfluenceUserPersister extends AbstractObjectPersister
ObjectPersister
implementation that handles imported ConfluenceUserImpl
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.entityPersister, importedObject, persisterOperations, unsatisfiedObjectDependencies
Constructor and Description |
---|
ConfluenceUserPersister(ConfluenceUserDao confluenceUserDao,
com.atlassian.crowd.embedded.api.CrowdDirectoryService directoryService,
InternalUserDao crowdUserDao) |
Modifier and Type | Method and Description |
---|---|
List<TransientHibernateHandle> |
persist(ImportProcessorContext context,
ImportedObject importedObject)
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
|
getPrimitivePropertyValue, getReferencePropertyValue
public ConfluenceUserPersister(ConfluenceUserDao confluenceUserDao, com.atlassian.crowd.embedded.api.CrowdDirectoryService directoryService, InternalUserDao crowdUserDao)
public List<TransientHibernateHandle> persist(ImportProcessorContext context, ImportedObject importedObject) throws Exception
context
- the context of the current import operationimportedObject
- the object to save.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.Copyright © 2003–2023 Atlassian. All rights reserved.