| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.quicksetup.installer; |
| | | |
| | |
| | | String sPort = qs.getFieldStringValue(FieldName.REMOTE_SERVER_PORT); |
| | | checkRemoteHostPortDnAndPwd(host, sPort, dn, pwd, qs, errorMsgs); |
| | | |
| | | if (errorMsgs.size() == 0) |
| | | if (errorMsgs.isEmpty()) |
| | | { |
| | | port = Integer.parseInt(sPort); |
| | | // Try to connect |
| | |
| | | type); |
| | | } |
| | | |
| | | if (errorMsgs.size() == 0) |
| | | if (errorMsgs.isEmpty()) |
| | | { |
| | | AuthenticationData auth = new AuthenticationData(); |
| | | auth.setHostName(host); |
| | |
| | | SuffixesToReplicateOptions.Type.REPLICATE_WITH_EXISTING_SUFFIXES) |
| | | { |
| | | Set<?> s = (Set<?>)qs.getFieldValue(FieldName.SUFFIXES_TO_REPLICATE); |
| | | if (s.size() == 0) |
| | | if (s.isEmpty()) |
| | | { |
| | | errorMsgs.add(INFO_NO_SUFFIXES_CHOSEN_TO_REPLICATE.get()); |
| | | qs.displayFieldInvalid(FieldName.SUFFIXES_TO_REPLICATE, true); |
| | |
| | | lastLoadedCache.setPreferredConnections(cnx); |
| | | lastLoadedCache.reloadTopology(); |
| | | Set<SuffixDescriptor> suffixes = lastLoadedCache.getSuffixes(); |
| | | |
| | | Set<SuffixDescriptor> moreSuffixes = null; |
| | | if (suf != null) |
| | | { |
| | | moreSuffixes = suf.getSuffixes(); |
| | | } |
| | | getUserData().setSuffixesToReplicateOptions( |
| | | new SuffixesToReplicateOptions(type, suffixes, suf.getSuffixes())); |
| | | new SuffixesToReplicateOptions(type, suffixes, moreSuffixes)); |
| | | |
| | | /* Analyze if we had any exception while loading servers. For the moment |
| | | * only throw the exception found if the user did not provide the |
| | |
| | | { |
| | | suffixes.add(replica.getSuffix()); |
| | | } |
| | | Set<SuffixDescriptor> moreSuffixes = null; |
| | | if (suf != null){ |
| | | moreSuffixes = suf.getSuffixes(); |
| | | } |
| | | getUserData().setSuffixesToReplicateOptions( |
| | | new SuffixesToReplicateOptions(type, suffixes, suf.getSuffixes())); |
| | | new SuffixesToReplicateOptions(type, suffixes, moreSuffixes)); |
| | | } |
| | | |
| | | /** |