| | |
| | | // Get the naming argument values. |
| | | List<String> names = getNamingArgValues(app, namingArgs); |
| | | |
| | | // Reset the command builder |
| | | getCommandBuilder().clearArguments(); |
| | | setCommandBuilderUseful(false); |
| | | |
| | | // Delete the child managed object. |
| | | ManagementContext context = factory.getManagementContext(app); |
| | | MenuResult<ManagedObject<?>> result; |
| | |
| | | } |
| | | |
| | | if (confirmDeletion(app)) { |
| | | setCommandBuilderUseful(true); |
| | | parent.removeChild(irelation, childName); |
| | | } else { |
| | | return MenuResult.cancel(); |
| | |
| | | (OptionalRelationDefinition<?, ?>) relation; |
| | | |
| | | if (confirmDeletion(app)) { |
| | | setCommandBuilderUseful(true); |
| | | |
| | | parent.removeChild(orelation); |
| | | } else { |
| | | return MenuResult.cancel(); |
| | |
| | | throw new ClientException(LDAPResultCode.CLIENT_SIDE_SERVER_DOWN, msg); |
| | | } |
| | | |
| | | // Add the naming arguments if they were provided. |
| | | for (StringArgument arg : namingArgs) |
| | | { |
| | | if (arg.isPresent()) |
| | | { |
| | | getCommandBuilder().addArgument(arg); |
| | | } |
| | | } |
| | | |
| | | // Output success message. |
| | | Message msg = INFO_DSCFG_CONFIRM_DELETE_SUCCESS.get(ufn); |
| | | app.printVerboseMessage(msg); |