| | |
| | | * otherwise. |
| | | */ |
| | | private boolean askWhatToDelete(UninstallUserData userData, |
| | | Set<String> outsideDbs, Set<String> outsideLogs) |
| | | Set<String> outsideDbs, Set<String> outsideLogs) throws UserDataException |
| | | { |
| | | boolean cancelled = false; |
| | | final int REMOVE_ALL = 1; |
| | |
| | | } |
| | | catch (CLIException ce) |
| | | { |
| | | choice = REMOVE_ALL; |
| | | cancelled = true; |
| | | LOG.log(Level.WARNING, "Error reading input: "+ce, ce); |
| | | if (ce.getMessageObject().getDescriptor().equals(ERR_TRIES_LIMIT_REACHED)) |
| | | { |
| | | println(ce.getMessageObject()); |
| | | } |
| | | throw new UserDataException(null, ce.getMessageObject(), ce); |
| | | } |
| | | |
| | | if (cancelled) |
| | |
| | | } |
| | | catch (CLIException ce) |
| | | { |
| | | println(ce.getMessageObject()); |
| | | println(); |
| | | cancelled = true; |
| | | throw new UserDataException(null, ce.getMessageObject(), ce); |
| | | } |
| | | |
| | | if (!cancelled) |
| | |
| | | } |
| | | catch (CLIException ce) |
| | | { |
| | | println(ce.getMessageObject()); |
| | | println(); |
| | | cancelled = true; |
| | | throw new UserDataException(null, ce.getMessageObject(), ce); |
| | | } |
| | | } |
| | | else |
| | |
| | | } |
| | | catch (CLIException ce) |
| | | { |
| | | println(ce.getMessageObject()); |
| | | println(); |
| | | cancelled = true; |
| | | throw new UserDataException(null, ce.getMessageObject(), ce); |
| | | } |
| | | } |
| | | else |
| | |
| | | } |
| | | catch (CLIException ce) |
| | | { |
| | | println(ce.getMessageObject()); |
| | | println(); |
| | | cancelled = true; |
| | | throw new UserDataException(null, ce.getMessageObject(), ce); |
| | | } |
| | | } |
| | | else |
| | |
| | | } |
| | | catch (CLIException ce) |
| | | { |
| | | println(ce.getMessageObject()); |
| | | println(); |
| | | cancelled = true; |
| | | throw new UserDataException(null, ce.getMessageObject(), ce); |
| | | } |
| | | } |
| | | } |
| | |
| | | * to update the remote servers. |
| | | * @return <CODE>true</CODE> if the user wants to continue and update the |
| | | * remote servers. <CODE>false</CODE> otherwise. |
| | | * @throws UserDataException if there is a problem with the information |
| | | * provided by the user. |
| | | */ |
| | | private boolean askForAuthenticationIfNeeded(UninstallUserData userData) |
| | | throws UserDataException |
| | | { |
| | | boolean accepted = true; |
| | | String uid = userData.getAdminUID(); |
| | |
| | | } |
| | | catch (CLIException ce) |
| | | { |
| | | println(ce.getMessageObject()); |
| | | println(); |
| | | accepted = false; |
| | | throw new UserDataException(null, ce.getMessageObject(), ce); |
| | | } |
| | | } |
| | | } |
| | |
| | | if (forceOnError) |
| | | { |
| | | println(ERR_UNINSTALL_ERROR_UPDATING_REMOTE_FORCE.get( |
| | | parser.getSecureArgsList().adminUidArg.getLongIdentifier(), |
| | | ToolConstants.OPTION_LONG_BINDPWD, |
| | | ToolConstants.OPTION_LONG_BINDPWD_FILE)); |
| | | "--"+parser.getSecureArgsList().adminUidArg.getLongIdentifier(), |
| | | "--"+ToolConstants.OPTION_LONG_BINDPWD, |
| | | "--"+ToolConstants.OPTION_LONG_BINDPWD_FILE)); |
| | | } |
| | | else |
| | | { |
| | | throw new UserDataException(null, |
| | | ERR_UNINSTALL_ERROR_UPDATING_REMOTE_NO_FORCE.get( |
| | | "--"+ |
| | | parser.getSecureArgsList().adminUidArg.getLongIdentifier(), |
| | | ToolConstants.OPTION_LONG_BINDPWD, |
| | | ToolConstants.OPTION_LONG_BINDPWD_FILE, |
| | | parser.forceOnErrorArg.getLongIdentifier())); |
| | | "--"+ToolConstants.OPTION_LONG_BINDPWD, |
| | | "--"+ToolConstants.OPTION_LONG_BINDPWD_FILE, |
| | | "--"+parser.forceOnErrorArg.getLongIdentifier())); |
| | | } |
| | | } |
| | | else |
| | |
| | | } |
| | | catch (CLIException ce) |
| | | { |
| | | println(ce.getMessageObject()); |
| | | accepted = false; |
| | | throw new UserDataException(null, ce.getMessageObject(), ce); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | catch (CLIException ce) |
| | | { |
| | | println(ce.getMessageObject()); |
| | | println(); |
| | | returnValue = false; |
| | | throw new UserDataException(null, ce.getMessageObject(), ce); |
| | | } |
| | | } |
| | | else if (reloadTopologyCache) |