| | |
| | | import org.opends.server.tasks.InitializeTargetTask; |
| | | import org.opends.server.tasks.InitializeTask; |
| | | import org.opends.server.tasks.TaskUtils; |
| | | import org.opends.server.types.ExistingFileBehavior; |
| | | import org.opends.server.types.AbstractOperation; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.AttributeType; |
| | |
| | | } |
| | | |
| | | /** |
| | | * Get the server ID. |
| | | * @return The server ID. |
| | | */ |
| | | public int getServerId() |
| | | { |
| | | return serverId; |
| | | } |
| | | |
| | | /** |
| | | * Check if the domain solve conflicts. |
| | | * |
| | | * @return a boolean indicating if the domain should sove conflicts. |
| | |
| | | importConfig.setAppendToExistingData(false); |
| | | |
| | | // TODO How to deal with rejected entries during the import |
| | | // importConfig.writeRejectedEntries("rejectedImport", |
| | | // ExistingFileBehavior.OVERWRITE); |
| | | importConfig.writeRejectedEntries("rejectedImport", |
| | | ExistingFileBehavior.OVERWRITE); |
| | | |
| | | // Process import |
| | | backend.importLDIF(importConfig); |