| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2015 ForgeRock AS. |
| | | * Portions Copyright 2014-2016 ForgeRock AS. |
| | | */ |
| | | package org.forgerock.opendj.config.dsconfig; |
| | | |
| | |
| | | return path.getRelationDefinition(); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public SubCommand getSubCommand() { |
| | | return subCommand; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public MenuResult<Integer> run(ConsoleApplication app, LDAPManagementContextFactory factory) |
| | | throws ArgumentException, ClientException { |
| | |
| | | DefaultBehaviorProviderVisitor<T, LocalizableMessage, Void> visitor |
| | | = new DefaultBehaviorProviderVisitor<T, LocalizableMessage, Void>() { |
| | | |
| | | @Override |
| | | public LocalizableMessage visitAbsoluteInherited(AbsoluteInheritedDefaultBehaviorProvider<T> d, |
| | | Void p) { |
| | | // Should not happen - inherited default values are |
| | |
| | | throw new IllegalStateException(); |
| | | } |
| | | |
| | | @Override |
| | | public LocalizableMessage visitAlias(AliasDefaultBehaviorProvider<T> d, Void p) { |
| | | if (app.isVerbose()) { |
| | | return d.getSynopsis(); |
| | |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public LocalizableMessage visitDefined(DefinedDefaultBehaviorProvider<T> d, Void p) { |
| | | // Should not happen - real default values are displayed as |
| | | // normal values. |
| | | throw new IllegalStateException(); |
| | | } |
| | | |
| | | @Override |
| | | public LocalizableMessage visitRelativeInherited(RelativeInheritedDefaultBehaviorProvider<T> d, |
| | | Void p) { |
| | | // Should not happen - inherited default values are |
| | |
| | | throw new IllegalStateException(); |
| | | } |
| | | |
| | | @Override |
| | | public LocalizableMessage visitUndefined(UndefinedDefaultBehaviorProvider<T> d, Void p) { |
| | | return null; |
| | | } |