Class ConfluenceUserPersister

    • 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 operation
        importedObject - 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.